APPROVE
: Approve the tokens for the strategy if strategy != address(0) otherwise approve to savingsAccountamount
: The number of tokens depositedasset
: The address of the asset deposited. address(0) for Etherstrategy
: Strategy into which the tokens should be deposited to. If tokens shouldn't be deposited to any strategy but held in the savings account specify as address(0)to
: Address to which deposit is madeRETURN
: Shares received after deposit to strategyArguments
_amount
: Number of tokens to transfer_token
: The token that is to be transferred. address(0) for Ether_strategy
: The strategy token is deposited in. If tokens which are held in the savings account are to be use, specify address(0)_to
: The address to which token is to be transferredArguments
_amount
: Number of tokens to withdraw_token
: The token that is to be withdrawn_strategy
: The strategy tokens are held in_to
: The address to which withdrawn tokens should be sent to_withdrawShares
: Flag that specifies if the shares have to be directly withdraw and sent to user or they are converted back to the tokens​
RETURN
: The number of tokens withdrawn_amount
: Allowance approved_token
: The token to be approved_to
: Address to which approval is done_amount
: Amount by which allowance is increased_token
: The token to be approved_to
: Address to which approval is done_amount
: Amount by which allowance is decreased_token
: The token to be approved_to
: Address to which approval is doneAPPROVE
: There should be allowance in savingsAccount from _from
to _to
for the _token
for atleast _amount
Arguments
_amount
: Number of tokens to transfer_token
: The token that is transferred_strategy
: The strategy from which tokens is to be transferred_from
: The address which provided the allowance_to
: The address to which transfer is to be madeAPPROVE
: There should be allowance from _from
to _to
for the _token
for atleast _amount
_amount
: Number of tokens to transfer_token
: The token that is withdrawn_strategy
: The strategy from which tokens is to be transferred_from
: The address which provided the allowance_to
: The address to which withdrawal is to be made_withdrawShares
: Flag that specifies if the shares have to be directly withdraw and sent to user or they are converted back to the tokensRETURN
: The number of tokens withdrawnArguments
_token
: Token that is to be withdrawnRETURN
: Total tokens received after withdrawalArguments
_amount
: Number of tokens to switch to _newStrategy
_token
: Token to the switched strategies_currentStrategy
: Strategy in which the tokens are invested in_newStrategy
: Strategy to which tokens are to be switched_user
: Address for which asset is queried_token
: Token for which asset is queried​
RETURN
: Number of tokens of the asset
that user
holds