OrderBook

Verified contract

Active on Base with 65 txns
Deployed by via 0x3d270f4f at 2492334
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $39.93
ERC-20
Value $30.85
ERC-20
Value $0.05
ERC-20
Value $0
0x0140ddb3203f1372aa3e4b703b94f0b19a815c67f226b097704a5a2f7fae20e3
0x0742c590a47932c0a9b439ba53a3654625dc933bd2454f42810f476ee9b065c3
0x994615c6e23838ddeec0df9b7135572c8a5a5f6b98cdd9b2e0b647977f4ea521
0x253bcfaa8767f7958c0ab7d6a5f373a20698ba35b922ab9d9c82fc92cb39e6a4
0x85fd7936e876bc1d669a12201c5a7705b552f37afd158f670326d346498ddf30
0xd80ad5805800c079605bd87c5bd8f80390aee7abcebaabec43a49f32b427f991
0x638c44524df82f254e1b1b11ede129574f6b536ba2e05bc5c3fd7aead07d283e
0x68c3c8eb3bde0c38d70392f6bdb6b9c27cfd6aaf28b01bf03e21290303be6f8e
0x975eb29e70afc177d82beeb60a578a54fd264bf7f0ec2d4e35e8a64c8645cda0
0x1c217b1da478abcce9b5a6b84e26ce317d689eee13739fe5c022cf0cc676a2ef

Functions
Getter at block 22766487
PRICE_PRECISION(view returns (uint256)
1000000000000000000000000000000
USDG_PRECISION(view returns (uint256)
1000000000000000000
gov(view returns (address)
0x1e61a5c911ab51f98a8dfbe90c0aa42e355885c5
isInitialized(view returns (bool)
true
minExecutionFee(view returns (uint256)
180000000000000
minPurchaseTokenAmountUsd(view returns (uint256)
5000000000000000000000000000000
router(view returns (address)
0xd00c4ad1e462c99369b5e4b79427756ededfce14
usdg(view returns (address)
0xaec117e93f7087c277bb520b80785113d91da11b
vault(view returns (address)
0x853a8ce6b6338f5b0a14bcfc97f9d68396099c9c
weth(view returns (address)
0x4200000000000000000000000000000000000006
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)
getUsdgMinPrice(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 _usdguint256 _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 usdguint256 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.