IEthMultiVault.sol Functions
Documentation for the IEthMultiVault.sol Interface functions in our core EthMultiVault.sol smart contract.
Interface Information
Author: 0xIntuition
Functions described in the interface of the EthMultiVault contract, used for managing many ERC4626 style vaults in a single contract.
Functions
getTripleAtoms
Return the underlying atom vault ids given a Triple vault ID.
Inputs:
uint256 id
: Vault ID
Outputs:
uint256, uint256, uint256
: Underlying Atom vaults for the Triple.
isTriple
Mapping to designate if a vault ID is a Triple.
Inputs:
uint256 id
: Vault ID
Outputs:
bool
: True/false for whether vault ID is a Triple.
tripleAtomShares
Return Triple atom shares given Triple ID, Atom ID, and account address.
Inputs:
uint256 id
: Vault IDuint256 atomId
: Atom ID of the Atomaddress account
: Account address of the account.
Outputs:
uint256
: Triple Atom shares
assertTriple
Returns true
for Triple vaults and false
for Atom vaults. Designates if provided vault ID is a Triple.
Inputs:
uint256 id
: ID of the vault to check
Output:
bool
:true
if provided vault ID is a Triple;false
otherwise
getCounterIdFromTriple
Returns the Triple ID for the given counter-Triple ID.
Inputs:
uint256 id
: Counter Triple ID
Outputs:
uint256
: Triple ID
tripleHashFromAtoms
Returns the corresponding hash for the given RDF triple, given the Atoms that make up the Triple.
Inputs:
bytes memory subject
:bytes memory predicate
:bytes memory object
:
Outputs:
bytes32
: Corresponding hash for the given RDF Triple (subject, predicate, object)
convertToShares
Returns the amount of shares that would be exchanged with the vault for the amount of assets provided.
Inputs:
uint256 assets
: Amount of assetsuint256 id
: Vault ID
Outputs:
uint256 shares
: Amount of shares for the amount of assets provided.
convertToAssets
Returns the amount of assets that would be exchanged with the vault for the amount of shares provided.
Inputs:
uint256 shares
: Amount of sharesuint256 id
: Vault ID
Outputs:
uint256 assets
: Amount of assets for the amount of shares provided.
previewDeposit
Simulates the effects of depositing assets at the current block.
Inputs:
uint256 assets
: The amount of assets to deposit.uint256 id
: Vault ID
Outputs:
uint256 shares
: The amount of shares from depositing the amount of assets
previewRedeem
Simulates the effects of redeeming shares at the current block.
Inputs:
uint256 shares
: The amount of shares to redeem.uint256 id
: Vault ID
Outputs:
uint256 assets
: The amount of assets from redeeming the amount of sharesuint256 exitFees
: Any fees associated with redeeming the amount of shares.
maxRedeem
Max amount of shares that can be redeemed from the owner balance through a redeem call.
Inputs:
address owner
: The owner's addressuint256 id
: Vault ID
Outputs:
uint256 shares
: The max amount of shares that can be redeemed.
Last updated