💎Vault
Vault contract is used to protect funds and perform swaps.
Types
ActionType
enum ActionType {
DEPOSIT,
REBALANCE,
REDEEM
}SwapDataExecution
struct SwapDataExecution {
ActionType action;
bytes[] swapTxs;
uint256[] tokenBalancesBefore;
uint256[] currentPositions;
uint256 shareOrBaseTokenAmount;
uint256 totalShareSupply;
}Name
Type
Description
View Methods
getConstantProps
getHistoryProps
getConfigProps
getFeesProps
getSecurityProps
tokensLength
Type
Description
getLatestPrice
Name
Type
Description
Type
Description
getVaultBalances
Name
Type
Description
getVaultStatus
Name
Type
Description
getManagementFees
Name
Type
Description
getPerformanceFees
Name
Type
Description
Write Methods
deposit
Name
Type
Description
redeem
Name
Type
Description
redeemEach
Name
Type
Description
redeemForced
Name
Type
Description
rebalance
Type
Description
harvestManagementFees
harvestPerformanceFees
approveForSwap
Name
Type
Description
addVaultAsset
Name
Type
Description
setShareTransferability
Name
Type
Description
setConfigProps
setSecurityProps
setFeesProps
Last updated