OrderBook

Verified contract

Active on Base with 467 txns
Deployed by via 0x1802f888 at 7018494
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $75.01
ERC-20
Value $0.05
ERC-20
Value $0.05
ERC-20
Value $0
ERC-20
Value $0
ERC-20
--
ERC-20
--
0xc5d7cd389b69f5f7f4bc13a2477a4b352ad65e0fca62a6ad2833f7fddd06667f
0x34890591d6942a7f6bd02d0fa08059980a17958564979e09fbceb4d2f92bf64b
0xe874611f8df7ab44a230b1f89a2467666cae1591264442cc29e60c04b3a3b15a
0x65bfded0717e779fea283d0a1feaa3d435716b8da2ecf15f87c794317cc6e054
0x49f919ed18d3b98951bbd9f9fa5575c7de63206af0798d81c5c8e36a4a9bfedb
0xf1c93a5991088818e50d152e6f5b7b745967464d646a79483799d53ee0e5cfcd
0xcf25ac158aac1ddc83bd44efb63f4033e637bb422ebee0e51883cc9f9586770b
0x8bb1716f99141d2fd5e87712c87471b895ef9c522525e6f566fb5a344b9ca091
0xb0c90e67a5beb01df54d67f67f58c5abf8a00cb221dfb1e52fae20a588ae3b11
0x3b41389fbf37b5e955fbdf6e706d089a951518dc93e68622dde74aca1515fa0b

Functions
Getter at block 23214941
PRICE_PRECISION(view returns (uint256)
1000000000000000000000000000000
USDP_PRECISION(view returns (uint256)
1000000000000000000
gov(view returns (address)
0x4f6e437f7e90087f7090acfe967d77ba0b4c7444
isInitialized(view returns (bool)
true
minExecutionFee(view returns (uint256)
100000000000000
minPurchaseTokenAmountUsd(view returns (uint256)
10000000000000000000000000000000
router(view returns (address)
0x6a5a8aa9d251034b9e5034e1c0305c06f7102fae
usdp(view returns (address)
0xa8c2fecc1a59130cb931adcf2262aab2db8c3788
vault(view returns (address)
0x102b73ca761f5dfb59918f62604b54aeb2fb0b3e
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)
getUsdpMinPrice(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 _usdpuint256 _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 usdpuint256 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
AddressEmptyCode(address target
AddressInsufficientBalance(address account
FailedInnerCall(
ReentrancyGuardReentrantCall(
SafeERC20FailedOperation(address token