Perpetual

Verified contract

Active on Ethereum with 3,858 txns
Deployed by via 0x2a542ab7 at 10289326
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 7 additional slots
-
variable spans 2 additional slots
-
variable spans 2 additional slots
Native
Value $1,756,569.66
ERC-20
--
ERC-20
--
ERC-20
--
0x059c8fb73ca6b9d2bbe6dd73f6006ce2aa0e235cac38fc3361e210d667692be8
0x2b8459e6d214efd214f10106b17a537efe6d81e6ae3b3360e76c0f89273bf56f
0x7aed4fb18774db68fd8117bf42a763992c4cddbc131695215ef3d3b45f665b09
0x973cbcaf30877c1d0f4d87df736e53dd453181f922690c698497c55e30f9afc6
0x06500fec6ca7179f5205393ff1b92b0ff1832bb7cdcf61f8d01e38dc5715b374
0x5118c7abc4c26a527f0bbfb06e464f30602a0aa03ffeea9b531fefa576222517
0x279ecc7a47441e851306c18c7673f8c31962144ff3872d0899404abf5377841e
0x6c495c1b1646d61cd2c02194729ef79b6c24ab62a138a7913bbfa53ee161f8ec
0x27a79fa25d884690d1a11e18180665ca515fa3d954a5edfd007753dd49a71d31
0x9460b8b86f22bab39402a4e05f264c812b77687ad7daed910ecbd02c756f313d

Functions
Getter at block 21086481
amm(view returns (address)
0xaaac8434217575643b2d2ab6f12ce8600c625520
collateral(view returns (address)
0x0000000000000000000000000000000000000000
devAddress(view returns (address)
0x904b5993fc92979eeedc19ccc58bed6b7216667c
getGovernance(view returns (struct LibTypesPerpGovernanceConfig)
(100000000000000000, 75000000000000000, 45000000000000000, 30000000000000000, 0, 0, 10000000000000000000, 10000000000000000000)
globalConfig(view returns (address)
0x71e77ffbbfd4418ed47981927738b5425c187f64
insuranceFundBalance(view returns (int256)
0
paused(view returns (bool)
false
settlementPrice(view returns (uint256)
638267995966146
status(view returns (uint8)
2
totalAccounts(view returns (uint256)
815
withdrawDisabled(view returns (bool)
false
Read-only
accountList(uint256view returns (address)
getMarginAccount(address traderview returns (struct LibTypesMarginAccount)
isValidLotSize(uint256 amountview returns (bool)
isValidTradingLotSize(uint256 amountview returns (bool)
socialLossPerContract(uint8 sideview returns (int256)
totalSize(uint8 sideview returns (uint256)
State-modifying
availableMargin(address traderreturns (int256)
beginGlobalSettlement(uint256 price
calculateLiquidateAmount(address traderuint256 liquidationPricereturns (uint256)
decreaseCashBalance(address traderuint256 amount
deposit(uint256 rawAmountpayable 
depositFor(address traderuint256 rawAmountpayable 
depositToInsuranceFund(uint256 rawAmountpayable 
disableWithdraw(
enableWithdraw(
endGlobalSettlement(
increaseCashBalance(address traderuint256 amount
isBankrupt(address traderreturns (bool)
isIMSafe(address traderreturns (bool)
isIMSafeWithPrice(address traderuint256 currentMarkPricereturns (bool)
isSafe(address traderreturns (bool)
isSafeWithPrice(address traderuint256 currentMarkPricereturns (bool)
liquidate(address traderuint256 maxAmountreturns (uint256uint256)
maintenanceMargin(address traderreturns (uint256)
marginBalance(address traderreturns (int256)
markPrice(returns (uint256)
pause(
pnl(address traderreturns (int256)
positionMargin(address traderreturns (uint256)
setGovernanceAddress(bytes32 keyaddress value
setGovernanceParameter(bytes32 keyint256 value
settle(
tradePosition(address takeraddress makeruint8 sideuint256 priceuint256 amountreturns (uint256 takerOpeneduint256 makerOpened)
transferCashBalance(address fromaddress touint256 amount
unpause(
withdraw(uint256 rawAmount
withdrawFor(address traderuint256 rawAmount
withdrawFromInsuranceFund(uint256 rawAmount
Events
CreateAccount(uint256 indexed idaddress indexed trader
CreatePerpetual(
Deposit(address indexed traderint256 wadAmountint256 balance
DisableWithdraw(address indexed caller
EnableWithdraw(address indexed caller
EnterEmergencyStatus(uint256 price
EnterSettledStatus(uint256 price
InternalUpdateBalance(address indexed traderint256 wadAmountint256 balance
Liquidate(address indexed keeperaddress indexed traderuint256 priceuint256 amount
Paused(address indexed caller
SocialLoss(uint8 sideint256 newVal
Trade(address indexed traderuint8 sideuint256 priceuint256 amount
Transfer(address indexed fromaddress indexed toint256 wadAmountint256 balanceFromint256 balanceTo
Unpaused(address indexed caller
UpdateGovernanceAddress(bytes32 indexed keyaddress value
UpdateGovernanceParameter(bytes32 indexed keyint256 value
UpdateInsuranceFund(int256 newVal
UpdatePositionAccount(address indexed traderstruct LibTypesMarginAccount accountuint256 perpetualTotalSizeuint256 price
Withdraw(address indexed traderint256 wadAmountint256 balance
Constructor
constructor(address _globalConfigaddress _devAddressaddress _collateraluint256 _collateralDecimals
Fallback and receive
fallback(
Errors

This contract contains no error objects.