View Source: contracts/interfaces/IVault.sol
↗ Extends: IMember, IERC20 ↘ Derived Contracts: VaultBase
IVault
Events
event GovernanceTransfer(address indexed to, uint256 amount);
event PodsIssued(address indexed account, uint256 issued, uint256 liquidityAdded);
event PodsRedeemed(address indexed account, uint256 redeemed, uint256 liquidityReleased);
- addLiquidityInternal(bytes32 coverKey, address account, uint256 amount)
- addLiquidity(bytes32 coverKey, uint256 amount)
- removeLiquidity(bytes32 coverKey, uint256 amount)
- transferGovernance(bytes32 coverKey, address to, uint256 amount)
Adds liquidity to the specified cover contract
function addLiquidityInternal(bytes32 coverKey, address account, uint256 amount) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
coverKey | bytes32 | Enter the cover key |
account | address | Specify the account on behalf of which the liquidity is being added. |
amount | uint256 | Enter the amount of liquidity token to supply. |
Adds liquidity to the specified cover contract
function addLiquidity(bytes32 coverKey, uint256 amount) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
coverKey | bytes32 | Enter the cover key |
amount | uint256 | Enter the amount of liquidity token to supply. |
Removes liquidity from the specified cover contract
function removeLiquidity(bytes32 coverKey, uint256 amount) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
coverKey | bytes32 | Enter the cover key |
amount | uint256 | Enter the amount of liquidity token to remove. |
Transfers liquidity to governance contract.
function transferGovernance(bytes32 coverKey, address to, uint256 amount) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
coverKey | bytes32 | Enter the cover key |
to | address | Enter the destination account |
amount | uint256 | Enter the amount of liquidity token to transfer. |
- AccessControl
- AccessControlLibV1
- Address
- BaseLibV1
- BokkyPooBahsDateTimeLibrary
- Commission
- Context
- Controller
- Cover
- CoverAssurance
- CoverBase
- CoverProvision
- CoverStake
- CoverUtilV1
- cToken
- cTokenFactory
- cTokenFactoryLibV1
- Destroyable
- ERC165
- ERC20
- FakeRecoverable
- FakeStore
- FakeToken
- FakeUniswapV2RouterLike
- Governance
- GovernanceUtilV1
- IAccessControl
- IClaimsProcessor
- ICommission
- ICover
- ICoverAssurance
- ICoverProvision
- ICoverStake
- ICToken
- ICTokenFactory
- IERC165
- IERC20
- IERC20Metadata
- IGovernance
- IMember
- IPausable
- IPolicy
- IPolicyAdmin
- IPriceDiscovery
- IProtocol
- IReporter
- IStore
- IUniswapV2PairLike
- IUniswapV2RouterLike
- IVault
- IVaultFactory
- IWitness
- MaliciousToken
- Migrations
- NTransferUtilV2
- NTransferUtilV2Intermediate
- Ownable
- Pausable
- Policy
- PolicyAdmin
- PolicyManager
- PriceDiscovery
- Processor
- ProtoBase
- Protocol
- ProtoUtilV1
- Recoverable
- ReentrancyGuard
- RegistryLibV1
- Reporter
- SafeERC20
- SafeMath
- Store
- StoreBase
- StoreKeyUtil
- Strings
- ValidationLibV1
- Vault
- VaultBase
- VaultFactory
- VaultFactoryLibV1
- VaultLibV1
- Witness