View Source: contracts/interfaces/ICoverStake.sol
↗ Extends: IMember ↘ Derived Contracts: CoverStake
ICoverStake
Events
event StakeAdded(bytes32 indexed coverKey, address indexed account, uint256 amount);
event StakeRemoved(bytes32 indexed coverKey, address indexed account, uint256 amount);
event FeeBurned(bytes32 indexed coverKey, uint256 amount);
- increaseStake(bytes32 coverKey, address account, uint256 amount, uint256 fee)
- decreaseStake(bytes32 coverKey, uint256 amount)
- stakeOf(bytes32 coverKey, address account)
Increase the stake of the given cover pool
function increaseStake(bytes32 coverKey, address account, uint256 amount, uint256 fee) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
coverKey | bytes32 | Enter the cover key |
account | address | Enter the account from where the NPM tokens will be transferred |
amount | uint256 | Enter the amount of stake |
fee | uint256 | Enter the fee amount. Note: do not enter the fee if you are directly calling this function. |
Source Code
function increaseStake(
bytes32 coverKey,
address account,
uint256 amount,
uint256 fee
) external;
Decreases the stake from the given cover pool
function decreaseStake(bytes32 coverKey, uint256 amount) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
coverKey | bytes32 | Enter the cover key |
amount | uint256 | Enter the amount of stake to decrease |
Source Code
function decreaseStake(bytes32 coverKey, uint256 amount) external;
Gets the stake of an account for the given cover key
function stakeOf(bytes32 coverKey, address account) external view
returns(uint256)
Arguments
Name | Type | Description |
---|---|---|
coverKey | bytes32 | Enter the cover key |
account | address | Specify the account to obtain the stake of |
Returns
Returns the total stake of the specified account on the given cover key
Source Code
function stakeOf(bytes32 coverKey, address account) 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