Perpetual

Verified contract

Active on Ethereum with 368 txns
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 5 additional slots
ERC-20
Value $9,885.12
0xb8aefe84cbfcb8f417db285635b521163636984fba6aa2f6cdd59b2de25af7f2
0x18fa86414200c3b170f1430a32dae616b265db2e350ebce107d3566eb6378dd2
0x66d086321b01534c2934f42f79f0f566e3462bf60a77edd04f7f436ea5d690cf
0x40091f449ff72c5b9902d72f0b55b5e7f4a9033cb82a0b506d88f413249675ff
0x3edb05ec15465526c58f98e4220389810275b682bedd755f69a1f34368c56e43
0xd955d176be7b1887d447bf99f691d9f5a5e7604499d2cc3ecf9dcd2bdfadcc1b
0x601bd6afae25e9cd174b1561c4fb8a34589f8489a845ddfe98043be6f514b7ea
0x8da9bea8c8ef2ae0ae2e7b0547603b960179faddd9db60ff4a3f20159c01357e
0x8d528dc679edf593152204ee8045da5635c16cedbc529ec82953024f9e153b16
0xff9c4487559adb262324e32c10105420a5d4eedb42b07644c6ded7acc81d458a

Functions
Getter at block 21295173
collateralCurrency(view returns (address)
0x6b175474e89094c44da98b954eedeac495271d0f
collateralRequirement(view returns (uint256 rawValue)
1250000000000000000
configStore(view returns (address)
0xefbe67175387123f1851f8c2e8e04f3a27e2233d
cumulativeFeeMultiplier(view returns (uint256 rawValue)
995934240668673146
disputeBondPercentage(view returns (uint256 rawValue)
100000000000000000
disputerDisputeRewardPercentage(view returns (uint256 rawValue)
200000000000000000
emergencyShutdownPrice(view returns (uint256 rawValue)
0
emergencyShutdownTimestamp(view returns (uint256)
0
finder(view returns (address)
0x40f941e48a552bf496b154af6bf55725f18d77c3
fundingRate(view returns (struct FixedPointSigned ratebytes32 identifierstruct FixedPointUnsigned cumulativeMultiplieruint256 updateTimeuint256 applicationTimeuint256 proposalTime)
(rate=(-164000000000), identifier=0x4554484254435f46520000000000000000000000000000000000000000000000, cumulativeMultiplier=(5763765185624745806207), updateTime=1621363227, applicationTime=1621486787, proposalTime=0)
getCurrentTime(view returns (uint256)
1732905371
liquidationLiveness(view returns (uint256)
7200
minSponsorTokens(view returns (uint256 rawValue)
5000000000000000000
pfc(view returns (struct FixedPointUnsigned)
(9885117903525403670398)
priceIdentifier(view returns (bytes32)
0x4554482f42544300000000000000000000000000000000000000000000000000
rawLiquidationCollateral(view returns (uint256 rawValue)
1390
rawTotalPositionCollateral(view returns (uint256 rawValue)
9925472485902790887408
sponsorDisputeRewardPercentage(view returns (uint256 rawValue)
50000000000000000
timerAddress(view returns (address)
0x0000000000000000000000000000000000000000
tokenCurrency(view returns (address)
0xa32321af5bdaf3c6feba2da7da1d80f33435b73d
 
totalPositionCollateral(view returns (struct FixedPointUnsigned totalCollateral)
totalTokensOutstanding(view returns (uint256 rawValue)
6981244470000000000
withdrawalLiveness(view returns (uint256)
7200
Read-only
getCollateral(address sponsorview returns (struct FixedPointUnsigned collateralAmount)
getFundingRateAppliedTokenDebt(struct FixedPointUnsigned rawTokenDebtview returns (struct FixedPointUnsigned totalCollateral)
getLiquidations(address sponsorview returns (struct PerpetualLiquidatableLiquidationData[] liquidationData)
getOutstandingRegularFees(uint256 timeview returns (struct FixedPointUnsigned regularFeestruct FixedPointUnsigned latePenaltystruct FixedPointUnsigned totalPaid)
liquidations(addressuint256view returns (address sponsoraddress liquidatoruint8 stateuint256 liquidationTimestruct FixedPointUnsigned tokensOutstandingstruct FixedPointUnsigned lockedCollateralstruct FixedPointUnsigned liquidatedCollateralstruct FixedPointUnsigned rawUnitCollateraladdress disputerstruct FixedPointUnsigned settlementPricestruct FixedPointUnsigned finalFee)
positions(addressview returns (struct FixedPointUnsigned tokensOutstandinguint256 withdrawalRequestPassTimestampstruct FixedPointUnsigned withdrawalRequestAmountstruct FixedPointUnsigned rawCollateral)
State-modifying
applyFundingRate(
cancelWithdrawal(
create(struct FixedPointUnsigned collateralAmountstruct FixedPointUnsigned numTokens
createLiquidation(address sponsorstruct FixedPointUnsigned minCollateralPerTokenstruct FixedPointUnsigned maxCollateralPerTokenstruct FixedPointUnsigned maxTokensToLiquidateuint256 deadlinereturns (uint256 liquidationIdstruct FixedPointUnsigned tokensLiquidatedstruct FixedPointUnsigned finalFeeBond)
deposit(struct FixedPointUnsigned collateralAmount
depositTo(address sponsorstruct FixedPointUnsigned collateralAmount
dispute(uint256 liquidationIdaddress sponsorreturns (struct FixedPointUnsigned totalPaid)
emergencyShutdown(
gulp(
payRegularFees(returns (struct FixedPointUnsigned)
proposeFundingRate(struct FixedPointSigned rateuint256 timestampreturns (struct FixedPointUnsigned totalBond)
redeem(struct FixedPointUnsigned numTokensreturns (struct FixedPointUnsigned amountWithdrawn)
remargin(
repay(struct FixedPointUnsigned numTokens
requestWithdrawal(struct FixedPointUnsigned collateralAmount
setCurrentTime(uint256 time
settleEmergencyShutdown(returns (struct FixedPointUnsigned amountWithdrawn)
withdraw(struct FixedPointUnsigned collateralAmountreturns (struct FixedPointUnsigned amountWithdrawn)
withdrawLiquidation(uint256 liquidationIdaddress sponsorreturns (struct PerpetualLiquidatableRewardsData)
withdrawPassedRequest(returns (struct FixedPointUnsigned amountWithdrawn)
Events
Deposit(address indexed sponsoruint256 indexed collateralAmount
DisputeSettled(address indexed calleraddress indexed sponsoraddress indexed liquidatoraddress disputeruint256 liquidationIdbool disputeSucceeded
EmergencyShutdown(address indexed calleruint256 shutdownTimestamp
EndedSponsorPosition(address indexed sponsor
FinalFeesPaid(uint256 indexed amount
FundingRateUpdated(int256 newFundingRateuint256 indexed updateTimeuint256 reward
LiquidationCreated(address indexed sponsoraddress indexed liquidatoruint256 indexed liquidationIduint256 tokensOutstandinguint256 lockedCollateraluint256 liquidatedCollateraluint256 liquidationTime
LiquidationDisputed(address indexed sponsoraddress indexed liquidatoraddress indexed disputeruint256 liquidationIduint256 disputeBondAmount
LiquidationWithdrawn(address indexed calleruint256 paidToLiquidatoruint256 paidToDisputeruint256 paidToSponsoruint8 indexed liquidationStatusuint256 settlementPrice
NewSponsor(address indexed sponsor
PositionCreated(address indexed sponsoruint256 indexed collateralAmountuint256 indexed tokenAmount
Redeem(address indexed sponsoruint256 indexed collateralAmountuint256 indexed tokenAmount
RegularFeesPaid(uint256 indexed regularFeeuint256 indexed lateFee
Repay(address indexed sponsoruint256 indexed numTokensRepaiduint256 indexed newTokenCount
RequestWithdrawal(address indexed sponsoruint256 indexed collateralAmount
RequestWithdrawalCanceled(address indexed sponsoruint256 indexed collateralAmount
RequestWithdrawalExecuted(address indexed sponsoruint256 indexed collateralAmount
SettleEmergencyShutdown(address indexed calleruint256 indexed collateralReturneduint256 indexed tokensBurned
Withdrawal(address indexed sponsoruint256 indexed collateralAmount
Constructor
constructor(PerpetualLiquidatableConstructorParams params
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.