OrderManager
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
9
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
5 additional
variables
Balances ($0.00)
No balances found for "OrderManager"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "OrderManager"
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)
0x0000000000000000000000000000000000000000
bridgeController() view returns (address)
0x0000000000000000000000000000000000000000
controller() view returns (address)
0x0000000000000000000000000000000000000000
enablePublicExecution() view returns (bool)
false
executionDelayTime() view returns (uint256)
0
executor() view returns (address)
0x0000000000000000000000000000000000000000
minLeverageExecutionFee() view returns (uint256)
0
minSwapExecutionFee() view returns (uint256)
0
nextLeverageOrderId() view returns (uint256)
0
nextSwapOrderId() view returns (uint256)
0
oracle() view returns (address)
0x0000000000000000000000000000000000000000
orderHook() view returns (address)
0x0000000000000000000000000000000000000000
owner() view returns (address)
0x0000000000000000000000000000000000000000
pool() view returns (address)
0x0000000000000000000000000000000000000000
weth() view returns (address)
0x0000000000000000000000000000000000000000
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)
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()
receive()
ExecutionDelay()
ExecutionFeeTooLow()
InvalidBridgeOrder()
InvalidExecutionFee()
InvalidLeverageTokenPair(address indexToken, address collateralToken)
InvalidPayToken()
InvalidPurchaseToken()
InvalidSwapPair()
OnlyBridgeController()
OnlyExecutor()
OnlyOrderOwner()
OnlyOwnerOrController()
OnlyWeth()
OrderNotOpen()
SameTokenSwap()
SlippageReached()
ZeroAddress()
ZeroPurchaseAmount()