Skip to content
You are reading the development version documentation and some displayed features may not be available in the stable release. You can switch to stable version using the version box at screen bottom.
Last update: October 8, 2021

BaseWrapper

Functions

constructor

  function constructor(
  ) public

bestVault

  function bestVault(
  ) public returns (contract VaultAPI)
@notice Used to get the most revent vault for the token using the registry.

Return Values:

Name Type Description
An instance of a VaultAPI
### allVaults
  function allVaults(
  ) public returns (contract VaultAPI[])
@notice
Used to get all vaults from the registery for the token

Return Values:

Name Type Description
An array containing instances of VaultAPI
### totalVaultBalance
  function totalVaultBalance(
  ) public returns (uint256)
@notice
Used to get the balance of an account accross all the vaults for a token.
@dev will be used to get the wrapper balance using totalVaultBalance(address(this)).
@param account The address of the account.
@return balance of token for the account accross all the vaults.

totalAssets

  function totalAssets(
  ) public returns (uint256)
@notice Used to get the TVL on the underlying vaults. @return assets the sum of all the assets managed by the underlying vaults.

_deposit

  function _deposit(
  ) internal returns (uint256)

_withdraw

  function _withdraw(
  ) internal returns (uint256)

_migrate

  function _migrate(
  ) internal returns (uint256)

_migrate

  function _migrate(
  ) internal returns (uint256)

_migrate

  function _migrate(
  ) internal returns (uint256 migrated)
Questions or feedback? You can discuss issues and obtain free support on Yearn Vaults chat channel.
For SushiSwap community support, join the Discord Server None