TransparentUpgradeableProxy
Verified contract
Proxy
Active on
Base with 10,146 txns
Unified storage
Map
Table
Raw
Constants and immutables
4
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
-
variable spans 48 additional slots
0x2278…dca6
0x9e37…935c
0xf428…d8b5
5 additional
variables
Balances ($34.30)
Native
Value
$34.3
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
Eth | Native | 0.01044 | $3,285.27 |
$34.3 |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 21678538 | 25 days ago | | | 0.00016 | 0.0000075472011 | |
| 20600398 | 2 months ago | | | 0.00018 | 0.0000055873355 | |
| 20599193 | 2 months ago | | | 0.00468 | 0.0000074657401 | |
| 20450074 | 2 months ago | | | 0.00018 | 0.0000074907360 | |
| 20160667 | 2 months ago | | | 0.00618 | 0.0000078327301 | |
| 20160652 | 2 months ago | | | 0.03018 | 0.0000078327301 | |
| 19199009 | 3 months ago | | | 0.03018 | 0.0000040086038 | |
| 18990067 | 3 months ago | | | 0.04018 | 0.0000084896362 | |
| 18953602 | 3 months ago | | | 0.00818 | 0.0000069650723 | |
| 18953587 | 3 months ago | | | 0.00018 | 0.0000075071087 |
ABI
ABI objects
Getter at block 22758549
ETH() view returns (address)
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
ETH_UNWRAPPER() view returns (address)
0xcf6094042e9dfeac407f25d7d4868691c46f6122
VERSION() view returns (uint8)
1
_ETH_UNWRAPPER() view returns (address)
0xcf6094042e9dfeac407f25d7d4868691c46f6122
bridgeController() view returns (address)
0x7c71a8b0ef49274d63f0ebc3c44b06d4ddf70e07
controller() view returns (address)
0x0000000000000000000000000000000000000000
enablePublicExecution() view returns (bool)
false
executionDelayTime() view returns (uint256)
1
executor() view returns (address)
0xcd9fb94e4c558de1d75e661e4761029bd58df513
minLeverageExecutionFee() view returns (uint256)
180000000000000
minSwapExecutionFee() view returns (uint256)
160000000000000
nextLeverageOrderId() view returns (uint256)
7701
nextSwapOrderId() view returns (uint256)
1322
oracle() view returns (address)
0x9e37206810b5af02f52728cf8df31ada8c57935c
orderHook() view returns (address)
0xf4287dd5c81ac89eb28781faea4f49c29181d8b5
owner() view returns (address)
0xe11aadb7bbc0c76a15bcd5b3afb9590bbcbfb865
pool() view returns (address)
0x22787c26bb0ab0d331eb840ff010855a70a0dca6
weth() view returns (address)
0x4200000000000000000000000000000000000006
Read-only
getOrders(address user, uint256 skip, uint256 take) view returns (uint256[] orderIds, uint256 total)
getSwapOrders(address user, uint256 skip, uint256 take) view returns (uint256[] orderIds, uint256 total)
isMarketSwap(uint256 orderId) view returns (bool)
leverageOrders(uint256 orderId) view returns (address owner, address indexToken, address collateralToken, uint8 status, bool triggerAboveThreshold, address payToken, uint256 price, uint256 executionFee, uint256 submissionBlock, uint256 expiresAt, uint256 submissionTimestamp)
swapOrders(uint256 orderId) view returns (address owner, address tokenIn, address tokenOut, uint8 status, uint256 amountIn, uint256 minAmountOut, uint256 price, uint256 executionFee, uint256 submissionBlock, uint256 submissionTimestamp)
updatePositionRequests(uint256 orderId) view returns (uint256 sizeChange, uint256 collateral, uint8 updateType, uint8 side)
userLeverageOrderCount(address user) view returns (uint256)
userLeverageOrders(address user, uint256) view returns (uint256)
userSwapOrderCount(address user) view returns (uint256)
userSwapOrders(address user, uint256) view returns (uint256)
State-modifying
Events cancelLeverageOrder(uint256 _orderId)
cancelSwapOrder(uint256 _orderId)
executeLeverageOrder(uint256 _orderId, address _feeTo)
executeSwapOrder(uint256 _orderId, address _feeTo)
initialize(address _weth, address _oracle, address _pool, uint256 _minLeverageExecutionFee, uint256 _minSwapExecutionFee, address _eth_unwrapper)
placeLeverageOrder(uint8 _updateType, uint8 _side, address _indexToken, address _collateralToken, uint8 _orderType, bytes data) payable returns (uint256 orderId)
placeLeverageOrderFromBridge(uint8 _updateType, uint8 _side, address _indexToken, address _collateralToken, uint8 _orderType, bytes data, address user) payable returns (uint256 orderId)
placeSwapOrder(address _tokenIn, address _tokenOut, uint256 _amountIn, uint256 _minOut, uint256 _price, uint8 _orderType, bytes _extradata) payable returns (uint256 orderId)
renounceOwnership()
setBridgeController(address _bridgeController)
setController(address _controller)
setEnablePublicExecution(bool _isEnable)
setExecutionDelayTime(uint256 _delay)
setExecutor(address _executor)
setMinExecutionFee(uint256 _leverageExecutionFee, uint256 _swapExecutionFee)
setOracle(address _oracle)
setOrderHook(address _hook)
swap(address _fromToken, address _toToken, uint256 _amountIn, uint256 _minAmountOut, bytes _extradata) payable
transferOwnership(address newOwner)
AdminChanged(address previousAdmin, address newAdmin)
BeaconUpgraded(address indexed beacon)
Upgraded(address indexed implementation)
BridgeControllerSet(address indexed bridgeController)
ControllerSet(address indexed controller)
ExecutorSet(address indexed executor)
Initialized(uint8 version)
LeverageOrderCancelled(uint256 indexed key)
LeverageOrderExecuted(uint256 indexed key, struct DataTypesLeverageOrder order, struct DataTypesUpdatePositionRequest request, uint256 fillPrice)
LeverageOrderExpired(uint256 indexed key)
LeverageOrderPlaced(uint256 indexed key, struct DataTypesLeverageOrder order, struct DataTypesUpdatePositionRequest request)
MinLeverageExecutionFeeSet(uint256 leverageExecutionFee)
MinSwapExecutionFeeSet(uint256 swapExecutionFee)
OracleChanged(address arg0)
OrderHookSet(address indexed hook)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
PoolSet(address indexed pool)
SetEnablePublicExecution(bool isEnable)
SetExecutionDelayTime(uint256 delay)
Swap(address indexed account, address indexed tokenIn, address indexed tokenOut, address pool, uint256 amountIn, uint256 amountOut)
SwapOrderCancelled(uint256 indexed key)
SwapOrderExecuted(uint256 indexed key, uint256 amountIn, uint256 amountOut)
SwapOrderExpired(uint256 indexed key)
SwapOrderPlaced(uint256 indexed key, struct DataTypesSwapOrder order)
SwapOrderTypeSet(uint256 indexed key, bool isMarket)
constructor(address _logic, address admin_, bytes _data)
fallback()
receive()
receive()
ExecutionDelay()
ExecutionFeeTooLow()
InvalidBridgeOrder()
InvalidExecutionFee()
InvalidLeverageTokenPair(address indexToken, address collateralToken)
InvalidPayToken()
InvalidPurchaseToken()
InvalidSwapPair()
OnlyBridgeController()
OnlyExecutor()
OnlyOrderOwner()
OnlyOwnerOrController()
OnlyWeth()
OrderNotOpen()
SameTokenSwap()
SlippageReached()
ZeroAddress()
ZeroPurchaseAmount()