View Source: contracts/interfaces/IVaultDelegate.sol
↗ Extends: IMember ↘ Derived Contracts: VaultDelegateBase
IVaultDelegate
- preAddLiquidity(address caller, bytes32 coverKey, uint256 amount, uint256 npmStake)
- postAddLiquidity(address caller, bytes32 coverKey, uint256 amount, uint256 npmStake)
- accrueInterestImplementation(address caller, bytes32 coverKey)
- preRemoveLiquidity(address caller, bytes32 coverKey, uint256 amount, uint256 npmStake, bool exit)
- postRemoveLiquidity(address caller, bytes32 coverKey, uint256 amount, uint256 npmStake, bool exit)
- preTransferGovernance(address caller, bytes32 coverKey, address to, uint256 amount)
- postTransferGovernance(address caller, bytes32 coverKey, address to, uint256 amount)
- preTransferToStrategy(address caller, IERC20 token, bytes32 coverKey, bytes32 strategyName, uint256 amount)
- postTransferToStrategy(address caller, IERC20 token, bytes32 coverKey, bytes32 strategyName, uint256 amount)
- preReceiveFromStrategy(address caller, IERC20 token, bytes32 coverKey, bytes32 strategyName, uint256 amount)
- postReceiveFromStrategy(address caller, IERC20 token, bytes32 coverKey, bytes32 strategyName, uint256 amount)
- preFlashLoan(address caller, bytes32 coverKey, IERC3156FlashBorrower receiver, address token, uint256 amount, bytes data)
- postFlashLoan(address caller, bytes32 coverKey, IERC3156FlashBorrower receiver, address token, uint256 amount, bytes data)
- calculatePodsImplementation(bytes32 coverKey, uint256 forStablecoinUnits)
- calculateLiquidityImplementation(bytes32 coverKey, uint256 podsToBurn)
- getInfoImplementation(bytes32 coverKey, address forAccount)
- getStablecoinBalanceOfImplementation(bytes32 coverKey)
- getFlashFee(address caller, bytes32 coverKey, address token, uint256 amount)
- getMaxFlashLoan(address caller, bytes32 coverKey, address token)
function preAddLiquidity(address caller, bytes32 coverKey, uint256 amount, uint256 npmStake) external nonpayable
returns(podsToMint uint256, previousNpmStake uint256)Arguments
| Name | Type | Description |
|---|---|---|
| caller | address | |
| coverKey | bytes32 | |
| amount | uint256 | |
| npmStake | uint256 |
Source Code
function preAddLiquidity(
address caller,
bytes32 coverKey,
uint256 amount,
uint256 npmStake
) external returns (uint256 podsToMint, uint256 previousNpmStake);function postAddLiquidity(address caller, bytes32 coverKey, uint256 amount, uint256 npmStake) external nonpayableArguments
| Name | Type | Description |
|---|---|---|
| caller | address | |
| coverKey | bytes32 | |
| amount | uint256 | |
| npmStake | uint256 |
Source Code
function postAddLiquidity(
address caller,
bytes32 coverKey,
uint256 amount,
uint256 npmStake
) external;function accrueInterestImplementation(address caller, bytes32 coverKey) external nonpayableArguments
| Name | Type | Description |
|---|---|---|
| caller | address | |
| coverKey | bytes32 |
Source Code
function accrueInterestImplementation(address caller, bytes32 coverKey) external;function preRemoveLiquidity(address caller, bytes32 coverKey, uint256 amount, uint256 npmStake, bool exit) external nonpayable
returns(stablecoin address, stableCoinToRelease uint256)Arguments
| Name | Type | Description |
|---|---|---|
| caller | address | |
| coverKey | bytes32 | |
| amount | uint256 | |
| npmStake | uint256 | |
| exit | bool |
Source Code
function preRemoveLiquidity(
address caller,
bytes32 coverKey,
uint256 amount,
uint256 npmStake,
bool exit
) external returns (address stablecoin, uint256 stableCoinToRelease);function postRemoveLiquidity(address caller, bytes32 coverKey, uint256 amount, uint256 npmStake, bool exit) external nonpayableArguments
| Name | Type | Description |
|---|---|---|
| caller | address | |
| coverKey | bytes32 | |
| amount | uint256 | |
| npmStake | uint256 | |
| exit | bool |
Source Code
function postRemoveLiquidity(
address caller,
bytes32 coverKey,
uint256 amount,
uint256 npmStake,
bool exit
) external;function preTransferGovernance(address caller, bytes32 coverKey, address to, uint256 amount) external nonpayable
returns(stablecoin address)Arguments
| Name | Type | Description |
|---|---|---|
| caller | address | |
| coverKey | bytes32 | |
| to | address | |
| amount | uint256 |
Source Code
function preTransferGovernance(
address caller,
bytes32 coverKey,
address to,
uint256 amount
) external returns (address stablecoin);function postTransferGovernance(address caller, bytes32 coverKey, address to, uint256 amount) external nonpayableArguments
| Name | Type | Description |
|---|---|---|
| caller | address | |
| coverKey | bytes32 | |
| to | address | |
| amount | uint256 |
Source Code
function postTransferGovernance(
address caller,
bytes32 coverKey,
address to,
uint256 amount
) external;function preTransferToStrategy(address caller, IERC20 token, bytes32 coverKey, bytes32 strategyName, uint256 amount) external nonpayableArguments
| Name | Type | Description |
|---|---|---|
| caller | address | |
| token | IERC20 | |
| coverKey | bytes32 | |
| strategyName | bytes32 | |
| amount | uint256 |
Source Code
function preTransferToStrategy(
address caller,
IERC20 token,
bytes32 coverKey,
bytes32 strategyName,
uint256 amount
) external;function postTransferToStrategy(address caller, IERC20 token, bytes32 coverKey, bytes32 strategyName, uint256 amount) external nonpayableArguments
| Name | Type | Description |
|---|---|---|
| caller | address | |
| token | IERC20 | |
| coverKey | bytes32 | |
| strategyName | bytes32 | |
| amount | uint256 |
Source Code
function postTransferToStrategy(
address caller,
IERC20 token,
bytes32 coverKey,
bytes32 strategyName,
uint256 amount
) external;function preReceiveFromStrategy(address caller, IERC20 token, bytes32 coverKey, bytes32 strategyName, uint256 amount) external nonpayableArguments
| Name | Type | Description |
|---|---|---|
| caller | address | |
| token | IERC20 | |
| coverKey | bytes32 | |
| strategyName | bytes32 | |
| amount | uint256 |
Source Code
function preReceiveFromStrategy(
address caller,
IERC20 token,
bytes32 coverKey,
bytes32 strategyName,
uint256 amount
) external;function postReceiveFromStrategy(address caller, IERC20 token, bytes32 coverKey, bytes32 strategyName, uint256 amount) external nonpayable
returns(income uint256, loss uint256)Arguments
| Name | Type | Description |
|---|---|---|
| caller | address | |
| token | IERC20 | |
| coverKey | bytes32 | |
| strategyName | bytes32 | |
| amount | uint256 |
Source Code
function postReceiveFromStrategy(
address caller,
IERC20 token,
bytes32 coverKey,
bytes32 strategyName,
uint256 amount
) external returns (uint256 income, uint256 loss);function preFlashLoan(address caller, bytes32 coverKey, IERC3156FlashBorrower receiver, address token, uint256 amount, bytes data) external nonpayable
returns(stablecoin contract IERC20, fee uint256, protocolFee uint256)Arguments
| Name | Type | Description |
|---|---|---|
| caller | address | |
| coverKey | bytes32 | |
| receiver | IERC3156FlashBorrower | |
| token | address | |
| amount | uint256 | |
| data | bytes |
Source Code
function preFlashLoan(
address caller,
bytes32 coverKey,
IERC3156FlashBorrower receiver,
address token,
uint256 amount,
bytes calldata data
)
external
returns (
IERC20 stablecoin,
uint256 fee,
uint256 protocolFee
);function postFlashLoan(address caller, bytes32 coverKey, IERC3156FlashBorrower receiver, address token, uint256 amount, bytes data) external nonpayableArguments
| Name | Type | Description |
|---|---|---|
| caller | address | |
| coverKey | bytes32 | |
| receiver | IERC3156FlashBorrower | |
| token | address | |
| amount | uint256 | |
| data | bytes |
Source Code
function postFlashLoan(
address caller,
bytes32 coverKey,
IERC3156FlashBorrower receiver,
address token,
uint256 amount,
bytes calldata data
) external;function calculatePodsImplementation(bytes32 coverKey, uint256 forStablecoinUnits) external view
returns(uint256)Arguments
| Name | Type | Description |
|---|---|---|
| coverKey | bytes32 | |
| forStablecoinUnits | uint256 |
Source Code
function calculatePodsImplementation(bytes32 coverKey, uint256 forStablecoinUnits) external view returns (uint256);function calculateLiquidityImplementation(bytes32 coverKey, uint256 podsToBurn) external view
returns(uint256)Arguments
| Name | Type | Description |
|---|---|---|
| coverKey | bytes32 | |
| podsToBurn | uint256 |
Source Code
function calculateLiquidityImplementation(bytes32 coverKey, uint256 podsToBurn) external view returns (uint256);function getInfoImplementation(bytes32 coverKey, address forAccount) external view
returns(struct IVault.VaultInfoType)Arguments
| Name | Type | Description |
|---|---|---|
| coverKey | bytes32 | |
| forAccount | address |
Source Code
function getInfoImplementation(bytes32 coverKey, address forAccount) external view returns (IVault.VaultInfoType memory);function getStablecoinBalanceOfImplementation(bytes32 coverKey) external view
returns(uint256)Arguments
| Name | Type | Description |
|---|---|---|
| coverKey | bytes32 |
Source Code
function getStablecoinBalanceOfImplementation(bytes32 coverKey) external view returns (uint256);function getFlashFee(address caller, bytes32 coverKey, address token, uint256 amount) external view
returns(uint256)Arguments
| Name | Type | Description |
|---|---|---|
| caller | address | |
| coverKey | bytes32 | |
| token | address | |
| amount | uint256 |
Source Code
function getFlashFee(
address caller,
bytes32 coverKey,
address token,
uint256 amount
) external view returns (uint256);function getMaxFlashLoan(address caller, bytes32 coverKey, address token) external view
returns(uint256)Arguments
| Name | Type | Description |
|---|---|---|
| caller | address | |
| coverKey | bytes32 | |
| token | address |
Source Code
function getMaxFlashLoan(
address caller,
bytes32 coverKey,
address token
) external view returns (uint256);- AaveStrategy
- AccessControl
- AccessControlLibV1
- Address
- BaseLibV1
- BokkyPooBahsDateTimeLibrary
- BondPool
- BondPoolBase
- BondPoolLibV1
- CompoundStrategy
- Context
- Cover
- CoverBase
- CoverLibV1
- CoverReassurance
- CoverStake
- CoverUtilV1
- cxToken
- cxTokenFactory
- cxTokenFactoryLibV1
- Delayable
- Destroyable
- ERC165
- ERC20
- FakeAaveLendingPool
- FakeCompoundStablecoinDelegator
- FakePriceOracle
- FakeRecoverable
- FakeStore
- FakeToken
- FakeUniswapPair
- FakeUniswapV2FactoryLike
- FakeUniswapV2PairLike
- FakeUniswapV2RouterLike
- FaultyAaveLendingPool
- FaultyCompoundStablecoinDelegator
- Finalization
- ForceEther
- Governance
- GovernanceUtilV1
- IAaveV2LendingPoolLike
- IAccessControl
- IBondPool
- IClaimsProcessor
- ICompoundERC20DelegatorLike
- ICover
- ICoverReassurance
- ICoverStake
- ICxToken
- ICxTokenFactory
- IERC165
- IERC20
- IERC20Detailed
- IERC20Metadata
- IERC3156FlashBorrower
- IERC3156FlashLender
- IFinalization
- IGovernance
- ILendingStrategy
- ILiquidityEngine
- IMember
- INeptuneRouterV1
- InvalidStrategy
- IPausable
- IPolicy
- IPolicyAdmin
- IPriceOracle
- IProtocol
- IRecoverable
- IReporter
- IResolution
- IResolvable
- IStakingPools
- IStore
- IStoreLike
- IUniswapV2FactoryLike
- IUniswapV2PairLike
- IUniswapV2RouterLike
- IUnstakable
- IVault
- IVaultDelegate
- IVaultFactory
- IWitness
- LiquidityEngine
- MaliciousToken
- MockAccessControlUser
- MockCoverUtilUser
- MockCxToken
- MockCxTokenPolicy
- MockCxTokenStore
- MockFlashBorrower
- MockLiquidityEngineUser
- MockProcessorStore
- MockProcessorStoreLib
- MockProtocol
- MockRegistryClient
- MockStore
- MockStoreKeyUtilUser
- MockValidationLibUser
- MockVault
- MockVaultLibUser
- NeptuneRouterV1
- NPM
- NpmDistributor
- NTransferUtilV2
- NTransferUtilV2Intermediate
- Ownable
- Pausable
- Policy
- PolicyAdmin
- PolicyHelperV1
- PoorMansERC20
- POT
- PriceLibV1
- Processor
- ProtoBase
- Protocol
- ProtoUtilV1
- Recoverable
- ReentrancyGuard
- RegistryLibV1
- Reporter
- Resolution
- Resolvable
- RoutineInvokerLibV1
- SafeERC20
- StakingPoolBase
- StakingPoolCoreLibV1
- StakingPoolInfo
- StakingPoolLibV1
- StakingPoolReward
- StakingPools
- Store
- StoreBase
- StoreKeyUtil
- StrategyLibV1
- Strings
- TimelockController
- Unstakable
- ValidationLibV1
- Vault
- VaultBase
- VaultDelegate
- VaultDelegateBase
- VaultDelegateWithFlashLoan
- VaultFactory
- VaultFactoryLibV1
- VaultLibV1
- VaultLiquidity
- VaultStrategy
- WithFlashLoan
- WithPausability
- WithRecovery
- Witness