InsurancePool

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x9b6a6c26 at 20717380
Slot
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

No balances found for "InsurancePool"

No transactions found for "InsurancePool"


Functions
Getter at block 20897228
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
 
getActiveRedeemEpochId(view returns (uint256)
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 tokenview returns (uint256)
getCDP(uint256 cdpIdview returns (struct IInsurancePoolCDP)
getCDPOpenQuota(address auctionaddress tokenview returns (uint256)
getCollateral(address tokenview returns (uint256)
getCollateralRedeemQuota(uint256 epochIdaddress tokenview returns (uint256 quotauint256 redeemed)
getMaturitySeconds(uint8 maturitypure returns (uint32)
getPortfolio(address tokenview returns (uint256)
getRedeemEpochPeriod(uint256 epochIdview returns (uint48 startTimeuint48 endTime)
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
closeCDP(uint256 cdpId
depositCollateral(address tokenuint256 amount
depositCollateralFromAuction(address tokenuint256 amount
grantRole(bytes32 roleaddress account
initialize(struct IInsurancePoolInitializeConfig config_
openCDP(address provideraddress collateralTokenuint256 collateraluint256 debtPriceuint8 maturityuint48 startTimereturns (uint256 cdpId)
pause(
receivePortfolio(address tokenuint256 amount
redeemCDP(uint256 cdpIduint256 redeemAmount
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
sendPortfolio(address tokenaddress receiveruint256 amount
setOracle(address newOracle
setRedeemConfig(struct IInsurancePoolRedeemConfig config
setReservePool(address newReservePool
setTokenManager(address newTokenManager
setTotalAvailableBalanceRatioThreshold(uint256 newThreshold
unpause(
updateRedeemEpoch(uint32 durationaddress[] tokensuint256[] quotasreturns (uint256 epochId)
withdrawCollateral(address tokenuint256 amount
Events
BalanceUpdated(address indexed tokenuint256 newBalance
CDPOpenQuotaUpdated(address indexed tokenaddress indexed auctionuint256 newQuota
CDPOpened(uint256 indexed cdpIdaddress indexed provideraddress indexed collateralTokenuint256 collateraluint256 debtuint256 debtPriceuint8 maturityuint48 startTimeuint48 endTime
CDPRedeemed(uint256 indexed cdpIdaddress indexed providerbool indexed closeduint256 redeemAmountuint256 burnAmountuint256 remainingCollateral
CollateralDeposited(address indexed tokenaddress indexed senderuint256 amount
CollateralWithdrawn(address indexed tokenaddress indexed receiveruint256 amount
Initialized(uint8 version
OracleUpdated(address indexed newOracle
Paused(address account
PortfolioReceived(address indexed tokenaddress indexed senderuint256 amount
PortfolioSent(address indexed tokenaddress indexed receiveruint256 amount
PortfolioUpdated(address indexed tokenuint256 newPortfolio
RedeemConfigUpdated(uint32 minDurationuint32 maxDurationuint32 notBefore
RedeemEpochCreated(uint256 indexed epochIduint48 startTimeuint48 endTime
RedeemEpochQuotaUpdated(uint256 indexed epochIdaddress indexed tokenuint256 quotauint256 redeemed
ReservePoolUpdated(address indexed newReservePool
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
TokenManagerUpdated(address indexed newTokenManager
TotalAvailableBalanceRatioThresholdUpdated(uint256 newThreshold
Unpaused(address account
Constructor
constructor(address debtToken_
Fallback and receive

This contract contains no fallback and receive objects.

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