PolicyBook

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x04193a40 at 14097763
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 43 additional slots
-
variable spans 49 additional slots
-
variable spans 48 additional slots
23 additional variables

No balances found for "PolicyBook"

No transactions found for "PolicyBook"


Functions
Getter at block 21196985
ANNUAL_COVERAGE_TOKENS(view returns (uint256)
1000000000000000000000
BASE_REWARD(view returns (uint256)
1000000000000000000000000000
DOMAIN_SEPARATOR(view returns (bytes32)
0xfad00cfd1d0891c7c9cedabfb9c5f53cf4654ffbb393e5a426c230a201a8e22d
EPOCH_DURATION(view returns (uint256)
604800
MAXIMUM_EPOCHS(view returns (uint256)
52
MAXIMUM_REWARD(view returns (uint256)
2000000000000000000000000000
MAX_PREMIUM_DISTRIBUTION_EPOCHS(view returns (uint256)
90
MINIMUM_REWARD(view returns (uint256)
150000000000000000000000000
MINUMUM_COVERAGE(view returns (uint256)
100000000000000000000
MODERATE_UTILIZATION_RATIO(view returns (uint256)
500000000000000000000000000
PREMIUM_DISTRIBUTION_EPOCH(view returns (uint256)
86400
PROTOCOL_PERCENTAGE(view returns (uint256)
200000000000000000000000000
READY_TO_WITHDRAW_PERIOD(view returns (uint256)
172800
RISKY_UTILIZATION_RATIO(view returns (uint256)
800000000000000000000000000
VIRTUAL_EPOCHS(view returns (uint256)
2
WITHDRAWAL_PERIOD(view returns (uint256)
691200
bmiCoverStaking(view returns (address)
0x0000000000000000000000000000000000000000
claimVoting(view returns (address)
0x0000000000000000000000000000000000000000
claimingRegistry(view returns (address)
0x0000000000000000000000000000000000000000
contractType(view returns (uint8)
0
decimals(view returns (uint8)
0
epochStartTime(view returns (uint256)
0
 
getAPY(view returns (uint256)
 
getNewCoverAndLiquidity(view returns (uint256 newTotalCoverTokensuint256 newTotalLiquidity)
info(view returns (string _symboladdress _insuredContractuint8 _contractTypebool _whitelisted)
(_symbol=, _insuredContract=0x0000000000000000000000000000000000000000, _contractType=0, _whitelisted=false)
injector(view returns (address _injector)
0x0000000000000000000000000000000000000000
insuranceContractAddress(view returns (address)
0x0000000000000000000000000000000000000000
lastDistributionEpoch(view returns (uint256)
0
lastPremiumDistributionAmount(view returns (int256)
0
lastPremiumDistributionEpoch(view returns (uint256)
0
liquidityBridgeAddress(view returns (address)
0x0000000000000000000000000000000000000000
liquidityMining(view returns (address)
0x0000000000000000000000000000000000000000
liquidityRegistry(view returns (address)
0x0000000000000000000000000000000000000000
name(view returns (string)
 
numberStats(view returns (uint256 _maxCapacitiesuint256 _totalSTBLLiquidityuint256 _stakedSTBLuint256 _annualProfitYieldsuint256 _annualInsuranceCostuint256 _bmiXRatio)
policyBookAdmin(view returns (address)
0x0000000000000000000000000000000000000000
policyBookFabricAddress(view returns (address)
0x0000000000000000000000000000000000000000
policyBookRegistry(view returns (address)
0x0000000000000000000000000000000000000000
policyQuote(view returns (address)
0x0000000000000000000000000000000000000000
policyRegistry(view returns (address)
0x0000000000000000000000000000000000000000
priceFeed(view returns (address)
0x0000000000000000000000000000000000000000
reinsurancePoolAddress(view returns (address)
0x0000000000000000000000000000000000000000
rewardsGenerator(view returns (address)
0x0000000000000000000000000000000000000000
secondsToEndCurrentEpoch(view returns (uint256)
426517
stblDecimals(view returns (uint256)
0
stblToken(view returns (address)
0x0000000000000000000000000000000000000000
symbol(view returns (string)
totalCoverTokens(view returns (uint256)
0
totalLiquidity(view returns (uint256)
0
totalSupply(view returns (uint256)
0
whitelisted(view returns (bool)
false
Read-only
allowance(address owneraddress spenderview returns (uint256)
balanceOf(address accountview returns (uint256)
convertBMIXToSTBL(uint256 _amountview returns (uint256)
convertSTBLToBMIX(uint256 _amountview returns (uint256)
epochAmounts(uint256view returns (uint256)
getAvailableBMIXWithdrawableAmount(address _userAddrview returns (uint256)
getClaimApprovalAmount(address userview returns (uint256)
getEpoch(uint256 timeview returns (uint256)
getPolicyPrice(uint256 _epochsNumberuint256 _coverTokensview returns (uint256 totalSecondsuint256 totalPrice)
getUserAvailableSTBL(address _userAddrview returns (uint256)
getUserBMIXStakeInfo(address _senderview returns (uint256 _totalBMXuint256 _totalSbl)
getWithdrawalStatus(address _userAddrview returns (uint8)
liquidityFromLM(addressview returns (uint256)
nonces(address ownerview returns (uint256)
policyHolders(addressview returns (uint256 coverTokensuint256 startEpochNumberuint256 endEpochNumberuint256 paid)
premiumDistributionDeltas(uint256view returns (int256)
userStats(address _userview returns (struct IPolicyBookPolicyHolder)
withdrawalsInfo(addressview returns (uint256 withdrawalAmountuint256 readyToWithdrawDatebool withdrawalAllowed)
State-modifying
__PolicyBook_init(address _insuranceContractuint8 _contractTypestring _descriptionstring _projectSymbol
addLiquidity(uint256 _liquidityAmount
addLiquidityAndStake(uint256 _liquidityAmountuint256 _stakeSTBLAmount
addLiquidityFor(address _liquidityHolderAddruint256 _liquidityAmount
approve(address spenderuint256 amountreturns (bool)
buyPolicy(uint256 _epochsNumberuint256 _coverTokens
buyPolicyFor(address _buyeruint256 _epochsNumberuint256 _coverTokens
commitClaim(address claimeruint256 claimAmountuint256 claimEndTimeuint8 status
decreaseAllowance(address spenderuint256 subtractedValuereturns (bool)
forceUpdateBMICoverStakingRewardMultiplier(
forwardUserLiquidity(address _useraddress _v2PolicyBookAddressuint256 _stblAmountStnd
increaseAllowance(address spenderuint256 addedValuereturns (bool)
migrateRequestWithdrawal(address _senderuint256 _bmixAmountreturns (uint256 _stblAmountTether)
permit(address owneraddress spenderuint256 valueuint256 deadlineuint8 vbytes32 rbytes32 s
requestWithdrawal(uint256 _tokensToWithdraw
requestWithdrawalWithPermit(uint256 _tokensToWithdrawuint8 _vbytes32 _rbytes32 _s
setDependencies(address _contractsRegistry
setForwardingAllowance(address _v2PolicyBookAddress
setInjector(address _injector
submitAppealAndInitializeVoting(string evidenceURI
submitClaimAndInitializeVoting(string evidenceURI
transfer(address recipientuint256 amountreturns (bool)
transferFrom(address senderaddress recipientuint256 amountreturns (bool)
unlockTokens(
updateEpochsInfo(
whitelist(bool _whitelisted
withdrawLiquidity(
withdrawSTBLTo(address to
Events
Approval(address indexed owneraddress indexed spenderuint256 value
CoverageChanged(uint256 _newTotalCoverTokens
LiquidityAdded(address _liquidityHolderuint256 _liquidityAmountuint256 _newTotalLiquidity
LiquidityWithdrawn(address _liquidityHolderuint256 _tokensToWithdrawuint256 _newTotalLiquidity
Liquidityforwarded(address useruint256 amount
PolicyBought(address _policyHolderuint256 _coverTokensuint256 _priceuint256 _newTotalCoverTokens
Transfer(address indexed fromaddress indexed touint256 value
WithdrawalRequested(address _liquidityHolderuint256 _tokensToWithdrawuint256 _readyToWithdrawDate
Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.