SushiLPAssetGuard
Functions:
Events:
Function constructor(address _sushiStaking)
constructor(address _sushiStaking)
Initialise for the contract
Parameters:
_sushiStaking
: Sushi's staking MiniChefV2 contract
Function withdrawProcessing(address pool, address asset, uint256 portion, address to) → address withdrawAsset, uint256 withdrawBalance, struct IAssetGuard.MultiTransaction[] transactions
withdrawProcessing(address pool, address asset, uint256 portion, address to) → address withdrawAsset, uint256 withdrawBalance, struct IAssetGuard.MultiTransaction[] transactions
Creates transaction data for withdrawing staked tokens
Parameters:
pool
: Pool addressasset
: Staked assetportion
: The fraction of total staked asset to withdrawto
: The investor address to withdraw to
Return Values:
withdrawAsset and
withdrawBalance are used to withdraw portion of asset balance to investor
transactions is used to execute the staked withdrawal transaction in PoolLogic
Function getBalance(address pool, address asset) → uint256 balance
getBalance(address pool, address asset) → uint256 balance
Returns the balance of the managed asset
Parameters:
pool
: address of the poolasset
: address of the asset
Return Values:
balance The asset balance of given pool
Function setSushiPoolId(address lpToken, uint256 poolId)
setSushiPoolId(address lpToken, uint256 poolId)
Setting sushi pool Id
Parameters:
lpToken
: address of the LP TokenpoolId
: Id of LP pair pool
Last updated