Comment on page
MIMOVaultActions
The
MIMOVaultActions
actions contract is a mirror of the VaultsCore
owner access restricted functionalities. Its sole purpose is to provide a readable way for MIMOProxy
owners to interact with VaultsCore
through their MIMOProxy
All functions non payable functions of the
MIMOVaultActions can be reproduced through the MIMOProxyActions multicall() function.
Calls
VaultsCore
deposit()
.Param Name | Type | Description |
---|---|---|
collateral | IERC20 | The address of the collateral type to be deposited |
amount | uint256 | The amount of tokens to be deposited |
Calls
VaultsCore
depositETH()
.Calls
VaultsCore
depositAndBorrow()
.Param Name | Type | Description |
---|---|---|
_collateralType | address | The address of the collateral type to be deposited |
_depositAmount | uint256 | The amount of tokens to be deposited in WEI |
_ borrowAmount | uint256 | The amount of borrowed StableX tokens in WEI |
Calls
VaultsCore
depositETHAndBorrow()
.Param Name | Type | Description |
---|---|---|
borrowAmount | uint256 | The amount of borrowed StableX tokens in WEI |
Calls
VaultsCore
withdraw()
.Param Name | Type | Description |
---|---|---|
vaultId | uint256 | The id of the vault from which to withdraw the collateral |
amount | uint256 | The amount of ERC20 tokens to be withdrawn |
Calls
VaultsCore
withdrawETH()
.Param Name | Type | Description |
---|---|---|
vaultId | uint256 | The id of the vault from which to withdraw the collateral |
amount | uint256 | The amount of ETH to be withdrawn |
Calls
VaultsCore
borrow()
.Param Name | Type | Description |
---|---|---|
vaultId | uint256 | The id of the vault from which to borrow |
amount | uint256 | The amount of stableX to borrow |
Returns the
MIMOVaultActions
address. This is to access the contract address within the delegate call.Returns the
VaultsCore
address.Returns the
VaultsDataProvider
address.Returns the
stableX
address.Returns the
MIMOProxyFactory
address.Last modified 9mo ago