Cover

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0xaba275ca at 20620539
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "Cover"

No transactions found for "Cover"


Functions
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 _globalCapacityRatiouint256 _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(uint256view returns (uint192 totalActiveCoverInAssetuint64 lastBucketUpdateId)
coverData(uint256 coverIdview returns (struct CoverData)
coverSegmentAllocations(uint256uint256uint256view returns (uint40 poolIduint96 coverAmountInNXMuint96 premiumInNXMuint24 allocationId)
coverSegmentWithRemainingAmount(uint256 coverIduint256 segmentIdview returns (struct CoverSegment)
coverSegments(uint256 coverIdview returns (struct CoverSegment[])
coverSegmentsCount(uint256 coverIdview returns (uint256)
internalContracts(uint256view returns (address)
stakingPool(uint256 poolIdview returns (address)
totalActiveCoverInAsset(uint256 assetIdview returns (uint256)
State-modifying
burnStake(uint256 coverIduint256 segmentIduint256 payoutAmountInAssetreturns (address)
buyCover(struct BuyCoverParams paramsstruct PoolAllocationRequest[] poolAllocationRequestspayable returns (uint256 coverId)
changeCoverNFTDescriptor(address _coverNFTDescriptor
changeDependentContractAddress(
changeMasterAddress(address masterAddress
changeStakingNFTDescriptor(address _stakingNFTDescriptor
changeStakingPoolFactoryOperator(
expireCover(uint256 coverId
multicall(bytes[] datareturns (bytes[] results)
recalculateActiveCoverInAsset(uint256 coverAsset
updateStakingPoolsRewardShares(uint256[][][] tokenIds
updateTotalActiveCoverAmount(uint256 coverAsset
Events
CoverEdited(uint256 indexed coverIduint256 indexed productIduint256 indexed segmentIdaddress buyerstring ipfsMetadata
Constructor
constructor(address _coverNFTaddress _stakingNFTaddress _stakingPoolFactoryaddress _stakingPoolImplementation
Fallback and receive

This contract contains no fallback and receive objects.

Errors
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(