AdminInceptionVault
This contract acts as an intermediary between the inception vault owner and the MIMO protocol. It allows the owner to perform the following operations on VaultsCore :
- Depositing
- Borrowing
- Repaying
- Withdrawing
The contract also stores and lends out the minted PAR from the MIMO protocol.
There is also a
claimMimo()
function enabling the contract to claim earned MIMO through PAR minting.Initializer function to set state variables upon cloning.
Param Name | Type | Description |
---|---|---|
_owner | address | AdminInceptionVault owner address |
addressProvider | IAddressProvider | AddressProvider address |
debtNotifier | IDebtNotifier | DebtNotifier address |
weth | IWETH | WETH address |
mimo | IERC20 | MIMO address |
inceptionVaultsCore | IInceptionVaultsCore | InceptionVaultsCore address |
Calls
VaultsCore
depositETH()
.Calls
VaultsCore
depositETHAndBorrow()
.Param Name | Type | Description |
---|---|---|
borrowAmount | uint256 | The amount of borrowed StableX tokens in WEI |
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
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 |
Releases the outstanding
MIMO
balance.Lends PAR to an
InceptionVault
user.Param Name | Type | Description |
---|---|---|
_amount | uint256 | The amount of PAR to be lent |
_to | address | The address of the InceptionVault user |
Transfers MIMO from the
AdminInceptionVault
to the _to
address.Param Name | Type | Description |
---|---|---|
_amount | uint256 | Amount of MIMO to transfer |
_to | address | Address to transfer MIMOs to |
Transfers PAR from the
AdminInceptionVault
to the _to
address.Param Name | Type | Description |
---|---|---|
_amount | uint256 | Amount of PAR to transfer |
_to | address | Address to transfer PARs to |
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
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
AddressProvider
address.Returns the
DebtNotifier
address.Returns the
WETH
address.Returns the
MIMO
address.Returns the
InceptionVaultsCore
address.Returns the number of collaterals used to borrow PAR.
Returns the address of a collateral for a specific id.
Call Params
Name | Type | Description |
---|---|---|
_id | uint256 | Collateral id |
Return Values
Name | Type | Description |
---|---|---|
NA | address | Collateral address |
Returns a collateral id for a specific collateral address.
Call Params
Name | Type | Description |
---|---|---|
_collateral | address | Address of the collateral |
Return Values
Name | Type | Description |
---|---|---|
NA | uint256 | Collateral id |
Last modified 7mo ago