StabilityPool

Verified contract

Active on Ethereum with 6,084 txns
Deployed by via 0x70aba51a at 18029851
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $441,037.71
ERC-20
Value $277,786.5
ERC-20
Value $66,248.44
ERC-20
Value $58,314.45
ERC-20
Value $47,268.74
ERC-20
Value $171.62
ERC-20
--
0xbfd0566bd72e031a48ad479c41d110182fd6ac1817768604fa9f3ebfd8017f53
0x791cee89c95f67075c44a553a7f2521305929a4a4daebd6b4a11979400cd789b
0x034e187155209c5e86bcd3fcea1f3d7da3ac35189460aed35685271dad64517b
0x4ba49fa454caf27accbf7ec15a13223ec2193da32719956cd7aeeb6c352de2d6
0x5ccbb48af083ca5584bb12fc98bd31cd8fd37ab646ea46e612e59cd06125e75f
0x38cf48391654862898131e8734d8e685f4ad006101f2c4b781bdc9126c3274b5
From
0x4ad56b0c37860e7e78cb53be60130239480eaa2525d2bfece350d52a397dc3ec
0x89f6450a83dd78e4215a6363d3c31869afc4246965ffd9e0adf5acda3b056842
0x00740015732447d547f2d1ddcd139d8143941c5e8f1f06de1f145411338af8c5
0xab399de9d73f6d85e9e96773842be0fdb706a4b35ba9745b7f20f403d62ca9c1

Functions
Getter at block 21259259
DECIMAL_PRECISION(view returns (uint256)
1000000000000000000
P(view returns (uint256)
528714057880705002
PRISMA_CORE(view returns (address)
0x5d17ea085f2ff5da3e6979d5d26f1dbab664ccf8
SCALE_FACTOR(view returns (uint256)
1000000000
SUNSET_DURATION(view returns (uint128)
15552000
currentEpoch(view returns (uint128)
0
currentScale(view returns (uint128)
0
debtToken(view returns (address)
0x4591dbff62656e7859afe5e45f6f47d3669fbb28
emissionId(view returns (uint256)
0
factory(view returns (address)
0x70b66e20766b775b2e9ce5b718bbd285af59b7e1
getTotalDebtTokenDeposits(view returns (uint256)
443215671624201218706600
getWeek(view returns (uint256 week)
67
guardian(view returns (address)
0x7a28a80dce1733944db5dc50dc2c5147ec993c5a
lastCollateralError_Offset(view returns (uint256)
294624415903995775047771
lastDebtLossError_Offset(view returns (uint256)
274713748688208140635373
lastPrismaError(view returns (uint256)
7591005959032129948676
lastUpdate(view returns (uint32)
1732385903
liquidationManager(view returns (address)
0x5de309dfd7f94e9e2a18cb6ba61ca305abf8e9e2
owner(view returns (address)
0xc53baaaa8595a7a2e7fee71db7291b939f696734
periodFinish(view returns (uint32)
1732990703
rewardRate(view returns (uint128)
76414645588474077
vault(view returns (address)
0x06bdf212c290473dcacea9793890c5024c7eb02c
Read-only
accountDeposits(addressview returns (uint128 amountuint128 timestamp)
claimableReward(address _depositorview returns (uint256)
collateralGainsByDepositor(address depositoruint256view returns (uint80 gains)
collateralTokens(uint256view returns (address)
depositSnapshots(addressview returns (uint256 Puint256 Guint128 scaleuint128 epoch)
depositSums(addressuint256view returns (uint256)
epochToScaleToG(uint128uint128view returns (uint256)
epochToScaleToSums(uint128uint128uint256view returns (uint256)
getCompoundedDebtDeposit(address _depositorview returns (uint256)
getDepositorCollateralGain(address _depositorview returns (uint256[] collateralGains)
indexByCollateral(address collateralview returns (uint256 index)
State-modifying
claimCollateralGains(address recipientuint256[] collateralIndexes
claimReward(address recipientreturns (uint256 amount)
enableCollateral(address _collateral
offset(address collateraluint256 _debtToOffsetuint256 _collToAdd
provideToSP(uint256 _amount
startCollateralSunset(address collateral
vaultClaimReward(address claimantaddressreturns (uint256 amount)
withdrawFromSP(uint256 _amount
Events
CollateralGainWithdrawn(address indexed _depositoruint256[] _collateral
CollateralOverwritten(address oldCollateraladdress newCollateral
DepositSnapshotUpdated(address indexed _depositoruint256 _Puint256 _G
EpochUpdated(uint128 _currentEpoch
G_Updated(uint256 _Guint128 _epochuint128 _scale
P_Updated(uint256 _P
RewardClaimed(address indexed accountaddress indexed recipientuint256 claimed
S_Updated(uint256 idxuint256 _Suint128 _epochuint128 _scale
ScaleUpdated(uint128 _currentScale
StabilityPoolDebtBalanceUpdated(uint256 _newBalance
UserDepositChanged(address indexed _depositoruint256 _newDeposit
Constructor
constructor(address _prismaCoreaddress _debtTokenAddressaddress _vaultaddress _factoryaddress _liquidationManager
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.