Skip to main content

MockVault

MockVault

storedTotalValue

uint256 storedTotalValue

setTotalValue

function setTotalValue(uint256 _value) public

totalValue

function totalValue() external view returns (uint256)

Determine the total value of assets held by the vault and its strategies.

Return Values

NameTypeDescription
[0]uint256

_totalValue

function _totalValue() internal view returns (uint256)

Internal Calculate the total value of the assets held by the vault and its strategies.

Return Values

NameTypeDescription
[0]uint256

_checkBalance

function _checkBalance(address _asset) internal view returns (uint256 balance)

Get the balance of an asset held in Vault and all strategies.

Parameters

NameTypeDescription
_assetaddressAddress of asset

Return Values

NameTypeDescription
balanceuint256Balance of asset in decimals of asset

setMaxSupplyDiff

function setMaxSupplyDiff(uint256 _maxSupplyDiff) external