View Source: contracts/interfaces/ICoverProvision.sol
↗ Extends: IMember ↘ Derived Contracts: CoverProvision
ICoverProvision
Events
event ProvisionIncreased(bytes32 key, uint256 previous, uint256 current);
event ProvisionDecreased(bytes32 key, uint256 previous, uint256 current);
- increaseProvision(bytes32 key, uint256 amount)
- decreaseProvision(bytes32 key, uint256 amount)
- getProvision(bytes32 key)
Increases NPM provision for the given cover key. This feature is accessible only to the contract owner (governance).
function increaseProvision(bytes32 key, uint256 amount) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
key | bytes32 | Provide the cover key you wish to increase the provision of |
amount | uint256 | Specify the amount of NPM tokens you would like to add |
Source Code
function increaseProvision(bytes32 key, uint256 amount) external;
Decreases NPM provision for the given cover key This feature is accessible only to the contract owner (governance).
function decreaseProvision(bytes32 key, uint256 amount) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
key | bytes32 | Provide the cover key you wish to decrease the provision from |
amount | uint256 | Specify the amount of NPM tokens you would like to decrease |
Source Code
function decreaseProvision(bytes32 key, uint256 amount) external;
Gets the NPM provision amount for the given cover key
function getProvision(bytes32 key) external view
returns(uint256)
Arguments
Name | Type | Description |
---|---|---|
key | bytes32 | Enter the cover key to get the provision |
Source Code
function getProvision(bytes32 key) external view returns (uint256);
- AaveStrategy
- AccessControl
- AccessControlLibV1
- Address
- BaseLibV1
- BokkyPooBahsDateTimeLibrary
- BondPool
- BondPoolBase
- BondPoolLibV1
- CompoundStrategy
- Context
- Controller
- Cover
- CoverBase
- CoverLibV1
- CoverProvision
- CoverReassurance
- CoverStake
- CoverUtilV1
- cxToken
- cxTokenFactory
- cxTokenFactoryLibV1
- Destroyable
- ERC165
- ERC20
- FakeAaveLendingPool
- FakeCompoundERC20Delegator
- FakeRecoverable
- FakeStore
- FakeToken
- FakeUniswapPair
- FakeUniswapV2FactoryLike
- FakeUniswapV2PairLike
- FakeUniswapV2RouterLike
- Finalization
- Governance
- GovernanceUtilV1
- IAaveV2LendingPoolLike
- IAccessControl
- IBondPool
- IClaimsProcessor
- ICommission
- ICompoundERC20DelegatorLike
- ICover
- ICoverProvision
- ICoverReassurance
- ICoverStake
- ICxToken
- ICxTokenFactory
- IERC165
- IERC20
- IERC20Detailed
- IERC20Metadata
- IERC3156FlashBorrower
- IERC3156FlashLender
- IFinalization
- IGovernance
- ILendingStrategy
- IMember
- IPausable
- IPolicy
- IPolicyAdmin
- IPriceDiscovery
- IProtocol
- IRecoverable
- IReporter
- IResolution
- IResolvable
- IStakingPools
- IStore
- IUniswapV2FactoryLike
- IUniswapV2PairLike
- IUniswapV2RouterLike
- IUnstakable
- IVault
- IVaultFactory
- IWitness
- LiquidityEngine
- MaliciousToken
- Migrations
- MockCxToken
- MockCxTokenPolicy
- MockCxTokenStore
- MockProcessorStore
- MockProcessorStoreLib
- MockProtocol
- MockStore
- MockVault
- NTransferUtilV2
- NTransferUtilV2Intermediate
- Ownable
- Pausable
- Policy
- PolicyAdmin
- PolicyHelperV1
- PriceDiscovery
- PriceLibV1
- Processor
- ProtoBase
- Protocol
- ProtoUtilV1
- Recoverable
- ReentrancyGuard
- RegistryLibV1
- Reporter
- Resolution
- Resolvable
- RoutineInvokerLibV1
- SafeERC20
- StakingPoolBase
- StakingPoolCoreLibV1
- StakingPoolInfo
- StakingPoolLibV1
- StakingPoolReward
- StakingPools
- Store
- StoreBase
- StoreKeyUtil
- StrategyLibV1
- Strings
- Unstakable
- ValidationLibV1
- Vault
- VaultBase
- VaultFactory
- VaultFactoryLibV1
- VaultLibV1
- WithFlashLoan
- Witness