OrderManager

Verified contract

Implementation

Active on Base with 0 txns
Deployed by via 0x4eb46416 at 9951110
Slot
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

No balances found for "OrderManager"

No transactions found for "OrderManager"


Functions
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 useruint256 skipuint256 takeview returns (uint256[] orderIdsuint256 total)
getSwapOrders(address useruint256 skipuint256 takeview returns (uint256[] orderIdsuint256 total)
isMarketSwap(uint256 orderIdview returns (bool)
leverageOrders(uint256 orderIdview returns (address owneraddress indexTokenaddress collateralTokenuint8 statusbool triggerAboveThresholdaddress payTokenuint256 priceuint256 executionFeeuint256 submissionBlockuint256 expiresAtuint256 submissionTimestamp)
swapOrders(uint256 orderIdview returns (address owneraddress tokenInaddress tokenOutuint8 statusuint256 amountInuint256 minAmountOutuint256 priceuint256 executionFeeuint256 submissionBlockuint256 submissionTimestamp)
updatePositionRequests(uint256 orderIdview returns (uint256 sizeChangeuint256 collateraluint8 updateTypeuint8 side)
userLeverageOrderCount(address userview returns (uint256)
userLeverageOrders(address useruint256view returns (uint256)
userSwapOrderCount(address userview returns (uint256)
userSwapOrders(address useruint256view returns (uint256)
State-modifying
cancelLeverageOrder(uint256 _orderId
cancelSwapOrder(uint256 _orderId
executeLeverageOrder(uint256 _orderIdaddress _feeTo
executeSwapOrder(uint256 _orderIdaddress _feeTo
initialize(address _wethaddress _oracleaddress _pooluint256 _minLeverageExecutionFeeuint256 _minSwapExecutionFeeaddress _eth_unwrapper
placeLeverageOrder(uint8 _updateTypeuint8 _sideaddress _indexTokenaddress _collateralTokenuint8 _orderTypebytes datapayable returns (uint256 orderId)
placeLeverageOrderFromBridge(uint8 _updateTypeuint8 _sideaddress _indexTokenaddress _collateralTokenuint8 _orderTypebytes dataaddress userpayable returns (uint256 orderId)
placeSwapOrder(address _tokenInaddress _tokenOutuint256 _amountInuint256 _minOutuint256 _priceuint8 _orderTypebytes _extradatapayable returns (uint256 orderId)
renounceOwnership(
setBridgeController(address _bridgeController
setController(address _controller
setEnablePublicExecution(bool _isEnable
setExecutionDelayTime(uint256 _delay
setExecutor(address _executor
setMinExecutionFee(uint256 _leverageExecutionFeeuint256 _swapExecutionFee
setOracle(address _oracle
setOrderHook(address _hook
swap(address _fromTokenaddress _toTokenuint256 _amountInuint256 _minAmountOutbytes _extradatapayable 
transferOwnership(address newOwner
Events
BridgeControllerSet(address indexed bridgeController
ControllerSet(address indexed controller
ExecutorSet(address indexed executor
Initialized(uint8 version
LeverageOrderCancelled(uint256 indexed key
LeverageOrderExecuted(uint256 indexed keystruct DataTypesLeverageOrder orderstruct DataTypesUpdatePositionRequest requestuint256 fillPrice
LeverageOrderExpired(uint256 indexed key
LeverageOrderPlaced(uint256 indexed keystruct DataTypesLeverageOrder orderstruct DataTypesUpdatePositionRequest request
MinLeverageExecutionFeeSet(uint256 leverageExecutionFee
MinSwapExecutionFeeSet(uint256 swapExecutionFee
OracleChanged(address arg0
OrderHookSet(address indexed hook
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
PoolSet(address indexed pool
SetEnablePublicExecution(bool isEnable
SetExecutionDelayTime(uint256 delay
Swap(address indexed accountaddress indexed tokenInaddress indexed tokenOutaddress pooluint256 amountInuint256 amountOut
SwapOrderCancelled(uint256 indexed key
SwapOrderExecuted(uint256 indexed keyuint256 amountInuint256 amountOut
SwapOrderExpired(uint256 indexed key
SwapOrderPlaced(uint256 indexed keystruct DataTypesSwapOrder order
SwapOrderTypeSet(uint256 indexed keybool isMarket
Constructor
constructor(
Fallback and receive
receive(
Errors
ExecutionDelay(
ExecutionFeeTooLow(
InvalidBridgeOrder(
InvalidExecutionFee(
InvalidLeverageTokenPair(address indexTokenaddress collateralToken
InvalidPayToken(
InvalidPurchaseToken(
InvalidSwapPair(
OnlyBridgeController(
OnlyExecutor(
OnlyOrderOwner(
OnlyOwnerOrController(
OnlyWeth(
OrderNotOpen(
SameTokenSwap(
SlippageReached(
ZeroAddress(
ZeroPurchaseAmount(