IVault
IVault
AssetSupported
event AssetSupported(address _asset)
AssetDefaultStrategyUpdated
event AssetDefaultStrategyUpdated(address _asset, address _strategy)
AssetAllocated
event AssetAllocated(address _asset, address _strategy, uint256 _amount)
StrategyApproved
event StrategyApproved(address _addr)
StrategyRemoved
event StrategyRemoved(address _addr)
Mint
event Mint(address _addr, uint256 _value)
Redeem
event Redeem(address _addr, uint256 _value)
CapitalPaused
event CapitalPaused()
CapitalUnpaused
event CapitalUnpaused()
RebasePaused
event RebasePaused()
RebaseUnpaused
event RebaseUnpaused()
VaultBufferUpdated
event VaultBufferUpdated(uint256 _vaultBuffer)
RedeemFeeUpdated
event RedeemFeeUpdated(uint256 _redeemFeeBps)
PriceProviderUpdated
event PriceProviderUpdated(address _priceProvider)
AllocateThresholdUpdated
event AllocateThresholdUpdated(uint256 _threshold)
RebaseThresholdUpdated
event RebaseThresholdUpdated(uint256 _threshold)
StrategistUpdated
event StrategistUpdated(address _address)
MaxSupplyDiffChanged
event MaxSupplyDiffChanged(uint256 maxSupplyDiff)
YieldDistribution
event YieldDistribution(address _to, uint256 _yield, uint256 _fee)
TrusteeFeeBpsChanged
event TrusteeFeeBpsChanged(uint256 _basis)
TrusteeAddressChanged
event TrusteeAddressChanged(address _address)
SwapperChanged
event SwapperChanged(address _address)
SwapAllowedUndervalueChanged
event SwapAllowedUndervalueChanged(uint256 _basis)
SwapSlippageChanged
event SwapSlippageChanged(address _asset, uint256 _basis)
Swapped
event Swapped(address _fromAsset, address _toAsset, uint256 _fromAssetAmount, uint256 _toAssetAmount)
transferGovernance
function transferGovernance(address _newGovernor) external
claimGovernance
function claimGovernance() external
governor
function governor() external view returns (address)
setPriceProvider
function setPriceProvider(address _priceProvider) external
priceProvider
function priceProvider() external view returns (address)
setRedeemFeeBps
function setRedeemFeeBps(uint256 _redeemFeeBps) external
redeemFeeBps
function redeemFeeBps() external view returns (uint256)
setVaultBuffer
function setVaultBuffer(uint256 _vaultBuffer) external
vaultBuffer
function vaultBuffer() external view returns (uint256)
setAutoAllocateThreshold
function setAutoAllocateThreshold(uint256 _threshold) external
autoAllocateThreshold
function autoAllocateThreshold() external view returns (uint256)
setRebaseThreshold
function setRebaseThreshold(uint256 _threshold) external
rebaseThreshold
function rebaseThreshold() external view returns (uint256)
setStrategistAddr
function setStrategistAddr(address _address) external
strategistAddr
function strategistAddr() external view returns (address)
setMaxSupplyDiff
function setMaxSupplyDiff(uint256 _maxSupplyDiff) external
maxSupplyDiff
function maxSupplyDiff() external view returns (uint256)
setTrusteeAddress
function setTrusteeAddress(address _address) external
trusteeAddress
function trusteeAddress() external view returns (address)
setTrusteeFeeBps
function setTrusteeFeeBps(uint256 _basis) external
trusteeFeeBps
function trusteeFeeBps() external view returns (uint256)
ousdMetaStrategy
function ousdMetaStrategy() external view returns (address)
setSwapper
function setSwapper(address _swapperAddr) external
setSwapAllowedUndervalue
function setSwapAllowedUndervalue(uint16 _percentageBps) external
setOracleSlippage
function setOracleSlippage(address _asset, uint16 _allowedOracleSlippageBps) external
supportAsset
function supportAsset(address _asset, uint8 _supportsAsset) external
approveStrategy
function approveStrategy(address _addr) external
removeStrategy
function removeStrategy(address _addr) external
setAssetDefaultStrategy
function setAssetDefaultStrategy(address _asset, address _strategy) external
assetDefaultStrategies
function assetDefaultStrategies(address _asset) external view returns (address)
pauseRebase
function pauseRebase() external
unpauseRebase
function unpauseRebase() external
rebasePaused
function rebasePaused() external view returns (bool)
pauseCapital
function pauseCapital() external
unpauseCapital
function unpauseCapital() external
capitalPaused
function capitalPaused() external view returns (bool)
transferToken
function transferToken(address _asset, uint256 _amount) external
priceUnitMint
function priceUnitMint(address asset) external view returns (uint256)
priceUnitRedeem
function priceUnitRedeem(address asset) external view returns (uint256)
withdrawAllFromStrategy
function withdrawAllFromStrategy(address _strategyAddr) external
withdrawAllFromStrategies
function withdrawAllFromStrategies() external
withdrawFromStrategy
function withdrawFromStrategy(address _strategyFromAddress, address[] _assets, uint256[] _amounts) external
depositToStrategy
function depositToStrategy(address _strategyToAddress, address[] _assets, uint256[] _amounts) external
mint
function mint(address _asset, uint256 _amount, uint256 _minimumOusdAmount) external
mintForStrategy
function mintForStrategy(uint256 _amount) external
redeem
function redeem(uint256 _amount, uint256 _minimumUnitAmount) external
burnForStrategy
function burnForStrategy(uint256 _amount) external
redeemAll
function redeemAll(uint256 _minimumUnitAmount) external
allocate
function allocate() external
rebase
function rebase() external
swapCollateral
function swapCollateral(address fromAsset, address toAsset, uint256 fromAssetAmount, uint256 minToAssetAmount, bytes data) external returns (uint256 toAssetAmount)
totalValue
function totalValue() external view returns (uint256 value)
checkBalance
function checkBalance(address _asset) external view returns (uint256)
calculateRedeemOutputs
function calculateRedeemOutputs(uint256 _amount) external view returns (uint256[])
getAssetCount
function getAssetCount() external view returns (uint256)
getAssetConfig
function getAssetConfig(address _asset) external view returns (struct VaultStorage.Asset config)
getAllAssets
function getAllAssets() external view returns (address[])
getStrategyCount
function getStrategyCount() external view returns (uint256)
swapper
function swapper() external view returns (address)
allowedSwapUndervalue
function allowedSwapUndervalue() external view returns (uint256)
getAllStrategies
function getAllStrategies() external view returns (address[])
isSupportedAsset
function isSupportedAsset(address _asset) external view returns (bool)
netOusdMintForStrategyThreshold
function netOusdMintForStrategyThreshold() external view returns (uint256)
setOusdMetaStrategy
function setOusdMetaStrategy(address _ousdMetaStrategy) external
setNetOusdMintForStrategyThreshold
function setNetOusdMintForStrategyThreshold(uint256 _threshold) external
netOusdMintedForStrategy
function netOusdMintedForStrategy() external view returns (int256)