PerpEngine

Verified contract

Implementation

Active on Base with 1 txns
Deployed by via 0x7bbd8133 at 23279656
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

No balances found for "PerpEngine"

0xc678f6224c9c22aaab84cc6ab826a72337a54d9a54a46ee7451cfea7ed77b6d2

Functions
Getter at block 23774813
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(uint32bytes32view returns (int128 amountint128 vQuoteBalanceint128 lastCumulativeFundingX18)
getBalance(uint32 productIdbytes32 subaccountview returns (struct IPerpEngineBalance)
getCoreRisk(bytes32 subaccountuint32 productIduint8 healthTypeview returns (struct IProductEngineCoreRisk)
getHealthContribution(bytes32 subaccountuint8 healthTypeview returns (int128 health)
getPositionPnl(uint32 productIdbytes32 subaccountview returns (int128)
getRisk(uint32 productIdview returns (struct RiskHelperRisk)
getSettlementState(uint32 productIdbytes32 subaccountview returns (int128 availableSettlestruct IPerpEngineLpState lpStatestruct IPerpEngineLpBalance lpBalancestruct IPerpEngineState statestruct IPerpEngineBalance balance)
getStateAndBalance(uint32 productIdbytes32 subaccountview returns (struct IPerpEngineStatestruct IPerpEngineBalance)
getStatesAndBalances(uint32 productIdbytes32 subaccountview returns (struct IPerpEngineLpStatestruct IPerpEngineLpBalancestruct IPerpEngineStatestruct IPerpEngineBalance)
lpBalances(uint32bytes32view returns (int128 amountint128 lastCumulativeFundingX18)
lpStates(uint32view returns (int128 supplyint128 lastCumulativeFundingX18int128 cumulativeFundingPerLpX18int128 baseint128 quote)
manualAssert(int128[] openInterestsview 
states(uint32view returns (int128 cumulativeFundingLongX18int128 cumulativeFundingShortX18int128 availableSettleint128 openInterest)
State-modifying
addProduct(uint32 productIdaddress bookint128 sizeIncrementint128 minSizeint128 lpSpreadX18struct RiskHelperRiskStore riskStore
burnLp(uint32 productIdbytes32 subaccountint128 amountLpreturns (int128 amountBaseint128 amountQuote)
decomposeLps(bytes32 liquidateebytes32 liquidatorreturns (int128 liquidationFees)
initialize(address _clearinghouseaddress _offchainExchangeaddressaddress _endpointaddress _admin
mintLp(uint32 productIdbytes32 subaccountint128 amountBaseint128 quoteAmountLowint128 quoteAmountHigh
renounceOwnership(
settlePnl(bytes32 subaccountuint256 productIdsreturns (int128)
socializeSubaccount(bytes32 subaccountint128 insurancereturns (int128)
swapLp(uint32 productIdint128 baseDeltaint128 quoteDeltareturns (int128int128)
transferOwnership(address newOwner
updateBalance(uint32 productIdbytes32 subaccountint128 amountDeltaint128 vQuoteDelta
updatePrice(uint32 productIdint128 priceX18
updateProduct(bytes rawTxn
updateRisk(uint32 productIdstruct RiskHelperRiskStore riskStore
updateStates(uint128 dtint128[] avgPriceDiffs
Events
AddProduct(uint32 productId
BalanceUpdate(uint32 productIdbytes32 subaccount
FundingPayment(uint32 productIduint128 dtint128 openInterestint128 payment
Initialized(uint8 version
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
ProductUpdate(uint32 productId
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.