InsurancePool
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
12
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 48 additional slots
-
variable spans 49 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 47 additional slots
Balances ($0.00)
No balances found for "InsurancePool"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "InsurancePool"
ABI
ABI objects
Getter at block 20897228 getActiveRedeemEpochId() view returns (uint256)
AUCTION_ROLE() view returns (bytes32)
0xc5e2d1653feba496cf5ce3a744b90ea18acf0df3d036aba9b2f85992a1467906
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
GOVERNOR_ROLE() view returns (bytes32)
0x7935bd0ae54bc31f548c14dba4d37c5c64b3f8ca900cb468fb8abd54d5894f55
GUARDIAN_ROLE() view returns (bytes32)
0x55435dd261a4b9b3364963f7738a7a662ad9c84396d64be3365284bb7f0a5041
PORTFOLIO_ROLE() view returns (bytes32)
0x1d50976edc1432445f9223817a5ecab5a6209f7409c50d49256d543e73292a9b
TASK_EXECUTOR_ROLE() view returns (bytes32)
0x21c3fd62db9fab2c0a0c31b0f514b69c6d65d2cdd618006a3a732126fe377d12
TIMELOCK_ROLE() view returns (bytes32)
0xf66846415d2bf9eabda9e84793ff9c0ea96d87f50fc41e66aa16469c6a442f05
debtToken() view returns (address)
0x9ef264e3222d115fcb24026f30490755930e6327
getCDPId() view returns (uint256)
0
getRedeemConfig() view returns (struct IInsurancePoolRedeemConfig)
(0, 0, 0)
getRedeemEpochId() view returns (uint256)
0
getTotalAvailableBalanceRatioThreshold() view returns (uint256)
0
oracle() view returns (address)
0x0000000000000000000000000000000000000000
paused() view returns (bool)
false
reservePool() view returns (address)
0x0000000000000000000000000000000000000000
tokenManager() view returns (address)
0x0000000000000000000000000000000000000000
Read-only
getAvailableBalance(address token) view returns (uint256)
getCDP(uint256 cdpId) view returns (struct IInsurancePoolCDP)
getCDPOpenQuota(address auction, address token) view returns (uint256)
getCollateral(address token) view returns (uint256)
getCollateralRedeemQuota(uint256 epochId, address token) view returns (uint256 quota, uint256 redeemed)
getMaturitySeconds(uint8 maturity) pure returns (uint32)
getPortfolio(address token) view returns (uint256)
getRedeemEpochPeriod(uint256 epochId) view returns (uint48 startTime, uint48 endTime)
getRoleAdmin(bytes32 role) view returns (bytes32)
hasRole(bytes32 role, address account) view returns (bool)
supportsInterface(bytes4 interfaceId) view returns (bool)
State-modifying
Events closeCDP(uint256 cdpId)
depositCollateral(address token, uint256 amount)
depositCollateralFromAuction(address token, uint256 amount)
grantRole(bytes32 role, address account)
initialize(struct IInsurancePoolInitializeConfig config_)
openCDP(address provider, address collateralToken, uint256 collateral, uint256 debtPrice, uint8 maturity, uint48 startTime) returns (uint256 cdpId)
pause()
receivePortfolio(address token, uint256 amount)
redeemCDP(uint256 cdpId, uint256 redeemAmount)
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
sendPortfolio(address token, address receiver, uint256 amount)
setOracle(address newOracle)
setRedeemConfig(struct IInsurancePoolRedeemConfig config)
setReservePool(address newReservePool)
setTokenManager(address newTokenManager)
setTotalAvailableBalanceRatioThreshold(uint256 newThreshold)
unpause()
updateRedeemEpoch(uint32 duration, address[] tokens, uint256[] quotas) returns (uint256 epochId)
withdrawCollateral(address token, uint256 amount)
BalanceUpdated(address indexed token, uint256 newBalance)
CDPOpenQuotaUpdated(address indexed token, address indexed auction, uint256 newQuota)
CDPOpened(uint256 indexed cdpId, address indexed provider, address indexed collateralToken, uint256 collateral, uint256 debt, uint256 debtPrice, uint8 maturity, uint48 startTime, uint48 endTime)
CDPRedeemed(uint256 indexed cdpId, address indexed provider, bool indexed closed, uint256 redeemAmount, uint256 burnAmount, uint256 remainingCollateral)
CollateralDeposited(address indexed token, address indexed sender, uint256 amount)
CollateralWithdrawn(address indexed token, address indexed receiver, uint256 amount)
Initialized(uint8 version)
OracleUpdated(address indexed newOracle)
Paused(address account)
PortfolioReceived(address indexed token, address indexed sender, uint256 amount)
PortfolioSent(address indexed token, address indexed receiver, uint256 amount)
PortfolioUpdated(address indexed token, uint256 newPortfolio)
RedeemConfigUpdated(uint32 minDuration, uint32 maxDuration, uint32 notBefore)
RedeemEpochCreated(uint256 indexed epochId, uint48 startTime, uint48 endTime)
RedeemEpochQuotaUpdated(uint256 indexed epochId, address indexed token, uint256 quota, uint256 redeemed)
ReservePoolUpdated(address indexed newReservePool)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
TokenManagerUpdated(address indexed newTokenManager)
TotalAvailableBalanceRatioThresholdUpdated(uint256 newThreshold)
Unpaused(address account)
constructor(address debtToken_)
This contract contains no fallback and receive objects.
AddressCodeSizeZero()
AddressZero()
AmountInvalid()
CDPAlreadyClosed()
CDPNotExpired()
CollateralInvalid()
DebtInvalid()
DebtPriceInvalid()
DurationInvalid()
LengthMismatched()
MaturityInvalid()
MaxDurationInvalid()
MinDurationInvalid()
NoActiveRedeemEpoch()
NoNeedToCreateCDPRedeemEpoch()
NotAssetToken(address token)
NotBeforeInvalid()
NotCDPProvider()
NotReservePool()
PoolBalanceInsufficient()
ReceiverInvalid()
RedeemAmountExceededLimit(uint256 remaining)
RedeemAmountTooSmall()
ReserveRatioInsufficient()
SenderInvalid()
ThresholdInvalid()