OrderManager
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
7
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
1 additional
variable
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 22766677
ORDER_VERSION() view returns (uint256)
2
VERSION() view returns (uint8)
4
controller() view returns (address)
0x0000000000000000000000000000000000000000
enablePublicExecution() view returns (bool)
false
ethUnwrapper() view returns (address)
0x0000000000000000000000000000000000000000
executor() view returns (address)
0x0000000000000000000000000000000000000000
minPerpetualExecutionFee() view returns (uint256)
0
minSwapExecutionFee() view returns (uint256)
0
nextOrderId() 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
getOrderIds(address user, uint256 skip, uint256 take) view returns (uint256[] orderIds, uint256 total)
getOrders(address user, uint256 skip, uint256 take) view returns (uint256[] orderIds, struct Order[] takeOrders, struct UpdatePositionRequest[] takeRequests, uint256 total)
getSwapOrders(address user, uint256 skip, uint256 take) view returns (uint256[] orderIds, uint256 total)
orderVersions(uint256) view returns (uint256)
orders(uint256) view returns (address pool, address owner, address indexToken, address collateralToken, address payToken, uint256 expiresAt, uint256 submissionBlock, uint256 price, uint256 executionFee, bool triggerAboveThreshold)
requests(uint256) view returns (uint8 side, uint256 sizeChange, uint256 collateral, uint8 updateType)
swapOrders(uint256) view returns (address pool, address owner, address tokenIn, address tokenOut, uint256 amountIn, uint256 minAmountOut, uint256 price, uint256 executionFee)
userOrders(address, uint256) view returns (uint256)
userSwapOrders(address, uint256) view returns (uint256)
State-modifying
Events cancelOrder(uint256 _orderId)
cancelSwapOrder(uint256 _orderId)
executeOrder(uint256 _orderId, address _feeTo)
executeSwapOrder(uint256 _orderId, address _feeTo)
initialize(address _weth, address _oracle, uint256 _minExecutionFee, uint256 _minSwapExecutionFee, address _ethUnwrapper)
placeOrder(uint8 _updateType, uint8 _side, address _indexToken, address _collateralToken, uint8 _orderType, bytes data) payable
placeSwapOrder(address _tokenIn, address _tokenOut, uint256 _amountIn, uint256 _minOut, uint256 _price) payable
placeSwapOrder(address _tokenIn, address _tokenOut, uint256 _amountIn, uint256 _minOut, uint256 _price, bytes _extradata) payable
renounceOwnership()
setController(address _controller)
setEnablePublicExecution(bool _isEnabled)
setExecutor(address _executor)
setMinExecutionFee(uint256 _perpExecutionFee, uint256 _swapExecutionFee)
setOracle(address _oracle)
setOrderHook(address _hook)
setPool(address _pool)
swap(address _fromToken, address _toToken, uint256 _amountIn, uint256 _minAmountOut) payable
swap(address _fromToken, address _toToken, uint256 _amountIn, uint256 _minAmountOut, bytes _extradata) payable
transferOwnership(address newOwner)
ControllerSet(address controller)
ExecutorSet(address indexed executor)
Initialized(uint8 version)
MinExecutionFeeSet(uint256 perpetualFee)
MinSwapExecutionFeeSet(uint256 swapExecutionFee)
OracleChanged(address arg0)
OrderCancelled(uint256 indexed key)
OrderExecuted(uint256 indexed key, struct Order order, struct UpdatePositionRequest request, uint256 fillPrice)
OrderExpired(uint256 indexed key)
OrderHookSet(address indexed hook)
OrderPlaced(uint256 indexed key, struct Order order, struct UpdatePositionRequest request)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
PoolSet(address indexed pool)
SetEnablePublicExecution(bool enabled)
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)
SwapOrderPlaced(uint256 indexed key)
constructor()
receive()
This contract contains no error objects.