Cover
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
25
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($0.00)
No balances found for "Cover"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "Cover"
ABI
ABI objects
Getter at block 21207294
GLOBAL_MIN_PRICE_RATIO() view returns (uint256)
100
MAX_COMMISSION_RATIO() view returns (uint256)
3000
NXM_PER_ALLOCATION_UNIT() view returns (uint256)
10000000000000000
coverDataCount() view returns (uint256)
1528
coverNFT() view returns (address)
0xcafeaca76be547f14d0220482667b42d8e7bc3eb
getGlobalCapacityAndPriceRatios() pure returns (uint256 _globalCapacityRatio, uint256 _globalMinPriceRatio)
(_globalCapacityRatio=20000, _globalMinPriceRatio=100)
getGlobalCapacityRatio() pure returns (uint256)
20000
getGlobalMinPriceRatio() pure returns (uint256)
100
getGlobalRewardsRatio() pure returns (uint256)
5000
master() view returns (address)
0x0000000000000000000000000000000000000000
stakingNFT() view returns (address)
0xcafea508a477d94c502c253a58239fb8f948e97f
stakingPoolFactory() view returns (address)
0xcafeafb97bf8831d95c0fc659b8eb3946b101cb3
stakingPoolImplementation() view returns (address)
0xcafea95d5e0256418186872a41127f1ae087e5c8
Read-only
activeCover(uint256) view returns (uint192 totalActiveCoverInAsset, uint64 lastBucketUpdateId)
coverData(uint256 coverId) view returns (struct CoverData)
coverSegmentAllocations(uint256, uint256, uint256) view returns (uint40 poolId, uint96 coverAmountInNXM, uint96 premiumInNXM, uint24 allocationId)
coverSegmentWithRemainingAmount(uint256 coverId, uint256 segmentId) view returns (struct CoverSegment)
coverSegments(uint256 coverId) view returns (struct CoverSegment[])
coverSegmentsCount(uint256 coverId) view returns (uint256)
internalContracts(uint256) view returns (address)
stakingPool(uint256 poolId) view returns (address)
totalActiveCoverInAsset(uint256 assetId) view returns (uint256)
State-modifying
Events burnStake(uint256 coverId, uint256 segmentId, uint256 payoutAmountInAsset) returns (address)
buyCover(struct BuyCoverParams params, struct PoolAllocationRequest[] poolAllocationRequests) payable returns (uint256 coverId)
changeCoverNFTDescriptor(address _coverNFTDescriptor)
changeDependentContractAddress()
changeMasterAddress(address masterAddress)
changeStakingNFTDescriptor(address _stakingNFTDescriptor)
changeStakingPoolFactoryOperator()
expireCover(uint256 coverId)
multicall(bytes[] data) returns (bytes[] results)
recalculateActiveCoverInAsset(uint256 coverAsset)
updateStakingPoolsRewardShares(uint256[][][] tokenIds)
updateTotalActiveCoverAmount(uint256 coverAsset)
CoverEdited(uint256 indexed coverId, uint256 indexed productId, uint256 indexed segmentId, address buyer, string ipfsMetadata)
constructor(address _coverNFT, address _stakingNFT, address _stakingPoolFactory, address _stakingPoolImplementation)
This contract contains no fallback and receive objects.
CommissionRateTooHigh()
CoverAmountIsZero()
CoverAssetNotSupported()
CoverNotYetExpired(uint256 coverId)
CoverOutsideOfTheGracePeriod()
CoverPeriodTooLong()
CoverPeriodTooShort()
EditNotSupported()
ExpiredCoversCannotBeEdited()
InsufficientCoverAmountAllocated()
InsufficientEthSent()
InvalidPaymentAsset()
OnlyOwnerOrApproved()
OnlySwapOperator()
PriceExceedsMaxPremiumInAsset()
ProductDeprecated()
ProductNotFound()
ReturningEthRemainderToSenderFailed()
RevertedWithoutReason(uint256 index)
SendingEthToCommissionDestinationFailed()
SendingEthToPoolFailed()
UnexpectedCoverAsset()
UnexpectedEthSent()
UnexpectedPoolId()
UnexpectedProductId()