OrderBook

Verified contract

Active on Base with 997 txns
Deployed by via 0x1248f78e at 2520905
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $0.1
ERC-20
Value $0.06
ERC-20
Value $0.02
ERC-20
Value $0
ERC-20
Value $0
ERC-20
--
ERC-20
--
ERC-20
--
0xb04550583a3488291d5ef0e2ee25e608e23122e2377b2d405957b4aaaaf19198
0xabcac458ddb2397876e1702a5f594734ca952028ac4d7b233d8d93321c0e7063
0xf65e5398e918f5ca0154135f497496fae477b8b129a12ff32653136526438aa2
0xa4997108c22a48af2ad0c2e1f75bf01ff6c652ccbfd89ceaeebc11998e93297c
0x3c45d48550eeff858ee08ac486dd832ed50bc33e735605c200059018ecb26994
0x4137839e670d67257201ca2692f12049d6c344c8975266d9a6219ef0e3a7d805
0x59d2ee6e876b5db27f083a99c132a4d543961e31a6c303a96b52277a347270d0
0xf0e5d76660a1a8658611c128626f9ab05ad98e7fe98ef8646b89ddc3eadfe943
0x4c0233f42a4cf265d82cd4e67a4952127a1b17624c3e0dda625945a183e2de97
0x9ad42bde08ad25079be6eb17a63aa973b47eecbc31aaa03fbc0a9f78b3ff925f

Functions
Getter at block 21877284
PRICE_PRECISION(view returns (uint256)
1000000000000000000000000000000
USDF_PRECISION(view returns (uint256)
1000000000000000000
gov(view returns (address)
0x13a8a2dfd6481f34523fa9208271f50249f8079b
isInitialized(view returns (bool)
true
minExecutionFee(view returns (uint256)
500000000000000
minPurchaseTokenAmountUsd(view returns (uint256)
10000000000000000000000000000000
router(view returns (address)
0xb575cea2d54c08d9c25ac033b8c93bce2fb49495
usdf(view returns (address)
0xfe4dfb5789f6fd2c2bc3c3b8d1a13025b55756b1
vault(view returns (address)
0x1ce0ebd2b95221b924765456fde017b076e79dbe
weth(view returns (address)
0xd6c5469a7cc587e1e89a841fb7c102ff1370c05f
Read-only
decreaseOrders(addressuint256view returns (address accountaddress collateralTokenuint256 collateralDeltaaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFee)
decreaseOrdersIndex(addressview returns (uint256)
getDecreaseOrder(address _accountuint256 _orderIndexview returns (address collateralTokenuint256 collateralDeltaaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFee)
getIncreaseOrder(address _accountuint256 _orderIndexview returns (address purchaseTokenuint256 purchaseTokenAmountaddress collateralTokenaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFee)
getSwapOrder(address _accountuint256 _orderIndexview returns (address path0address path1address path2uint256 amountInuint256 minOutuint256 triggerRatiobool triggerAboveThresholdbool shouldUnwrapuint256 executionFee)
getUsdfMinPrice(address _otherTokenview returns (uint256)
increaseOrders(addressuint256view returns (address accountaddress purchaseTokenuint256 purchaseTokenAmountaddress collateralTokenaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFee)
increaseOrdersIndex(addressview returns (uint256)
swapOrders(addressuint256view returns (address accountuint256 amountInuint256 minOutuint256 triggerRatiobool triggerAboveThresholdbool shouldUnwrapuint256 executionFee)
swapOrdersIndex(addressview returns (uint256)
validatePositionOrderPrice(bool _triggerAboveThresholduint256 _triggerPriceaddress _indexTokenbool _maximizePricebool _raiseview returns (uint256bool)
validateSwapOrderPriceWithTriggerAboveThreshold(address[] _pathuint256 _triggerRatioview returns (bool)
State-modifying
cancelDecreaseOrder(uint256 _orderIndex
cancelIncreaseOrder(uint256 _orderIndex
cancelMultiple(uint256[] _swapOrderIndexesuint256[] _increaseOrderIndexesuint256[] _decreaseOrderIndexes
cancelSwapOrder(uint256 _orderIndex
createDecreaseOrder(address _indexTokenuint256 _sizeDeltaaddress _collateralTokenuint256 _collateralDeltabool _isLonguint256 _triggerPricebool _triggerAboveThresholdpayable 
createIncreaseOrder(address[] _pathuint256 _amountInaddress _indexTokenuint256 _minOutuint256 _sizeDeltaaddress _collateralTokenbool _isLonguint256 _triggerPricebool _triggerAboveThresholduint256 _executionFeebool _shouldWrappayable 
createSwapOrder(address[] _pathuint256 _amountInuint256 _minOutuint256 _triggerRatiobool _triggerAboveThresholduint256 _executionFeebool _shouldWrapbool _shouldUnwrappayable 
executeDecreaseOrder(address _addressuint256 _orderIndexaddress _feeReceiver
executeIncreaseOrder(address _addressuint256 _orderIndexaddress _feeReceiver
executeSwapOrder(address _accountuint256 _orderIndexaddress _feeReceiver
initialize(address _routeraddress _vaultaddress _wethaddress _usdfuint256 _minExecutionFeeuint256 _minPurchaseTokenAmountUsd
setGov(address _gov
setMinExecutionFee(uint256 _minExecutionFee
setMinPurchaseTokenAmountUsd(uint256 _minPurchaseTokenAmountUsd
updateDecreaseOrder(uint256 _orderIndexuint256 _collateralDeltauint256 _sizeDeltauint256 _triggerPricebool _triggerAboveThreshold
updateIncreaseOrder(uint256 _orderIndexuint256 _sizeDeltauint256 _triggerPricebool _triggerAboveThreshold
updateSwapOrder(uint256 _orderIndexuint256 _minOutuint256 _triggerRatiobool _triggerAboveThreshold
Events
CancelDecreaseOrder(address indexed accountuint256 orderIndexaddress collateralTokenuint256 collateralDeltaaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFee
CancelIncreaseOrder(address indexed accountuint256 orderIndexaddress purchaseTokenuint256 purchaseTokenAmountaddress collateralTokenaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFee
CancelSwapOrder(address indexed accountuint256 orderIndexaddress[] pathuint256 amountInuint256 minOutuint256 triggerRatiobool triggerAboveThresholdbool shouldUnwrapuint256 executionFee
CreateDecreaseOrder(address indexed accountuint256 orderIndexaddress collateralTokenuint256 collateralDeltaaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFee
CreateIncreaseOrder(address indexed accountuint256 orderIndexaddress purchaseTokenuint256 purchaseTokenAmountaddress collateralTokenaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFee
CreateSwapOrder(address indexed accountuint256 orderIndexaddress[] pathuint256 amountInuint256 minOutuint256 triggerRatiobool triggerAboveThresholdbool shouldUnwrapuint256 executionFee
ExecuteDecreaseOrder(address indexed accountuint256 orderIndexaddress collateralTokenuint256 collateralDeltaaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFeeuint256 executionPrice
ExecuteIncreaseOrder(address indexed accountuint256 orderIndexaddress purchaseTokenuint256 purchaseTokenAmountaddress collateralTokenaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFeeuint256 executionPrice
ExecuteSwapOrder(address indexed accountuint256 orderIndexaddress[] pathuint256 amountInuint256 minOutuint256 amountOutuint256 triggerRatiobool triggerAboveThresholdbool shouldUnwrapuint256 executionFee
Initialize(address routeraddress vaultaddress wethaddress usdfuint256 minExecutionFeeuint256 minPurchaseTokenAmountUsd
UpdateDecreaseOrder(address indexed accountuint256 orderIndexaddress collateralTokenuint256 collateralDeltaaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThreshold
UpdateGov(address gov
UpdateIncreaseOrder(address indexed accountuint256 orderIndexaddress collateralTokenaddress indexTokenbool isLonguint256 sizeDeltauint256 triggerPricebool triggerAboveThreshold
UpdateMinExecutionFee(uint256 minExecutionFee
UpdateMinPurchaseTokenAmountUsd(uint256 minPurchaseTokenAmountUsd
UpdateSwapOrder(address indexed accountuint256 ordexIndexaddress[] pathuint256 amountInuint256 minOutuint256 triggerRatiobool triggerAboveThresholdbool shouldUnwrapuint256 executionFee
Constructor
constructor(
Fallback and receive
receive(
Errors

This contract contains no error objects.