Skip to content

Latest commit

 

History

History
171 lines (142 loc) · 5.11 KB

IVault.md

File metadata and controls

171 lines (142 loc) · 5.11 KB

IVault.sol

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);

Functions

addLiquidityInternal

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.

addLiquidity

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.

removeLiquidity

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.

transferGovernance

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.

Contracts