PerpEngine
Verified contract
Implementation
Active on
Base with 1 txns
Storage
Map
Table
Raw
Constants and immutables
6
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
0xe46c…48ae
Balances ($0.00)
No balances found for "PerpEngine"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 23279659 | 11 days ago | | | 0 | 0.0000036974800 |
ABI
ABI objects
Getter at block 23769901
getClearinghouse() view returns (address)
0xe46cb729f92d287f6459bda6899434e22ecc48ae
getEndpoint() view returns (address)
0x92c2201d48481e2d42772da02485084a4407bbe2
getEngineType() pure returns (uint8)
1
getProductIds() view returns (uint32[])
[]
owner() view returns (address)
0xece5f68e5fae5cff2f231c185ac4db83d50abe0c
Read-only
balances(uint32, bytes32) view returns (int128 amount, int128 vQuoteBalance, int128 lastCumulativeFundingX18)
getBalance(uint32 productId, bytes32 subaccount) view returns (struct IPerpEngineBalance)
getCoreRisk(bytes32 subaccount, uint32 productId, uint8 healthType) view returns (struct IProductEngineCoreRisk)
getHealthContribution(bytes32 subaccount, uint8 healthType) view returns (int128 health)
getPositionPnl(uint32 productId, bytes32 subaccount) view returns (int128)
getRisk(uint32 productId) view returns (struct RiskHelperRisk)
getSettlementState(uint32 productId, bytes32 subaccount) view returns (int128 availableSettle, struct IPerpEngineLpState lpState, struct IPerpEngineLpBalance lpBalance, struct IPerpEngineState state, struct IPerpEngineBalance balance)
getStateAndBalance(uint32 productId, bytes32 subaccount) view returns (struct IPerpEngineState, struct IPerpEngineBalance)
getStatesAndBalances(uint32 productId, bytes32 subaccount) view returns (struct IPerpEngineLpState, struct IPerpEngineLpBalance, struct IPerpEngineState, struct IPerpEngineBalance)
lpBalances(uint32, bytes32) view returns (int128 amount, int128 lastCumulativeFundingX18)
lpStates(uint32) view returns (int128 supply, int128 lastCumulativeFundingX18, int128 cumulativeFundingPerLpX18, int128 base, int128 quote)
manualAssert(int128[] openInterests) view
states(uint32) view returns (int128 cumulativeFundingLongX18, int128 cumulativeFundingShortX18, int128 availableSettle, int128 openInterest)
State-modifying
Events addProduct(uint32 productId, address book, int128 sizeIncrement, int128 minSize, int128 lpSpreadX18, struct RiskHelperRiskStore riskStore)
burnLp(uint32 productId, bytes32 subaccount, int128 amountLp) returns (int128 amountBase, int128 amountQuote)
decomposeLps(bytes32 liquidatee, bytes32 liquidator) returns (int128 liquidationFees)
initialize(address _clearinghouse, address _offchainExchange, address, address _endpoint, address _admin)
mintLp(uint32 productId, bytes32 subaccount, int128 amountBase, int128 quoteAmountLow, int128 quoteAmountHigh)
renounceOwnership()
settlePnl(bytes32 subaccount, uint256 productIds) returns (int128)
socializeSubaccount(bytes32 subaccount, int128 insurance) returns (int128)
swapLp(uint32 productId, int128 baseDelta, int128 quoteDelta) returns (int128, int128)
transferOwnership(address newOwner)
updateBalance(uint32 productId, bytes32 subaccount, int128 amountDelta, int128 vQuoteDelta)
updatePrice(uint32 productId, int128 priceX18)
updateProduct(bytes rawTxn)
updateRisk(uint32 productId, struct RiskHelperRiskStore riskStore)
updateStates(uint128 dt, int128[] avgPriceDiffs)
AddProduct(uint32 productId)
BalanceUpdate(uint32 productId, bytes32 subaccount)
FundingPayment(uint32 productId, uint128 dt, int128 openInterest, int128 payment)
Initialized(uint8 version)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
ProductUpdate(uint32 productId)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
This contract contains no error objects.