PerpetualProxy

Verified contract

Proxy

Active on Ethereum with 35,887 txns
Deployed by via 0xf52e1f15 at 10506362
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $2,445,488.13
ERC-20
Value $0.01
0x75777ef543f2002e6fe0d67bef45e99c7d7da940d957d86dcb190845c4d1643d
0x90ca0c277bf42e2e14523be48584d7d29ab487dcc28272d2c2ec73f10ca3b3a3
0x9e209fa7fb80801ff52b2eaf77ef58ad1bdecda7f59f1b138d1356260ddd4421
0x1d866e9f233e2ff507e2ea5eff8c06443f1048f46d70b8ccf57f1f5c9d5b1fc0
0xe3155e74292c59ed3efdc888d4eac17e6db25843ecec41fc347c0d8bf6145ffc
0x9338eae5a404f4ac99d66e8925ae915313ddc47b3cc99e5d37d42ddf313c8364
0xcda6e1a2ed0596e041dff423cd749d81764d5560189ac20d61d7678f784a4c05
0x988337e8347d659e15b158ad3982eac64abffdcc31c232be369950e0c4a12ded
0x8c3c54548ac386465ced4002d7754380b811dab9a1c3f176b34bde96b8f93905
0x78a120af5464b736e7214d3caadc95729cb30152168c39da7f534c235b5b05d9

Functions
Getter at block 21264421
getAdmin(view returns (address)
0xba2906b18b069b40c6d2cafd392e76ad479b1b53
getFinalSettlementEnabled(view returns (bool)
true
getFunderContract(view returns (address)
0x5ddc23dee470aec28d51721b4e3a25f9399166ec
getGlobalIndex(view returns (struct P1TypesIndex)
(1618945404, false, 571208983547895856526599730)
getMinCollateral(view returns (uint256)
1075000000000000000
getOracleContract(view returns (address)
0xcd37221c53b5208a2d7eabc7d5051b98d8030424
 
getOraclePrice(view returns (uint256)
getTokenContract(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Read-only
getAccountBalance(address accountview returns (struct P1TypesBalance)
getAccountIndex(address accountview returns (struct P1TypesIndex)
getIsGlobalOperator(address operatorview returns (bool)
getIsLocalOperator(address accountaddress operatorview returns (bool)
hasAccountPermissions(address accountaddress operatorview returns (bool)
State-modifying
admin(returns (address)
changeAdmin(address newAdmin
implementation(returns (address)
upgradeTo(address newImplementation
upgradeToAndCall(address newImplementationbytes datapayable 
deposit(address accountuint256 amount
enableFinalSettlement(uint256 priceLowerBounduint256 priceUpperBound
initializeV1(address tokenaddress oracleaddress funderuint256 minCollateral
setFunder(address funder
setGlobalOperator(address operatorbool approved
setLocalOperator(address operatorbool approved
setMinCollateral(uint256 minCollateral
setOracle(address oracle
trade(address[] accountsstruct P1TradeTradeArg[] trades
withdraw(address accountaddress destinationuint256 amount
withdrawFinalSettlement(
Events
AdminChanged(address previousAdminaddress newAdmin
Upgraded(address indexed implementation
LogAccountSettled(address indexed accountbool isPositiveuint256 amountbytes32 balance
LogDeposit(address indexed accountuint256 amountbytes32 balance
LogFinalSettlementEnabled(uint256 settlementPrice
LogIndex(bytes32 index
LogSetFunder(address funder
LogSetGlobalOperator(address operatorbool approved
LogSetLocalOperator(address indexed senderaddress operatorbool approved
LogSetMinCollateral(uint256 minCollateral
LogSetOracle(address oracle
LogTrade(address indexed makeraddress indexed takeraddress traderuint256 marginAmountuint256 positionAmountbool isBuybytes32 makerBalancebytes32 takerBalance
LogWithdraw(address indexed accountaddress destinationuint256 amountbytes32 balance
LogWithdrawFinalSettlement(address indexed accountuint256 amountbytes32 balance
Constructor
constructor(address logicaddress adminbytes data
Fallback and receive
fallback(
Errors

This contract contains no error objects.