PositionRouter

Verified contract

Active on Base with 7,588 txns
Deployed by via 0x8408423e at 9450808
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
6 additional variables
ERC-20
Value $121.47
ERC-20
Value $34.89
ERC-20
Value $0.06
ERC-20
Value $0
ERC-20
Value $0
ERC-20
--
0x675ba5ce92badf3159a0079b4921f1cf572ae27e0acecf2b53112f3c1ee8a7d1
0x4b3c57d0f6085b8f19168c0ffd70951ad4290172316567ac1440f7d065f93c96
0x238cb9026c061b6cc05b6dbcfec864fbeaf76b084aeef794930b29ccdff64365
0x58ecfb6c2bc375d713e35a1af2f13c0f6ca3dc16397973c1bb4d4873535fd335
0x78839b29a9742a8d45bc4057a039d70869d7f53752c7e95495d6140199a8e790
0x20552086b1d1ed94ff711e816b5a4b2bc2aa5520c665d4dbf3cfc750fcad74c1
0x85b1f062072e537ce50ffce0c5a7be98792698d860e3df6192887be1919dd95e
0xb4c7e1dd2405b9eac8802a0e31c644b2ccea415a08e56d7465b7d689a19e2fc1
0xfb09552b85b6d3223b8216d3a422db7c5383a8d4337da988c1ce419c722478b4
0xb2288e4bca2707dcd5926fd36f3dad31442000b621b392b701255acb69f8ce27

Functions
Getter at block 22905753
BASIS_POINTS_DIVISOR(view returns (uint256)
10000
admin(view returns (address)
0x4f6e437f7e90087f7090acfe967d77ba0b4c7444
callbackGasLimit(view returns (uint256)
800000
decreasePositionRequestKeysStart(view returns (uint256)
3545
depositFee(view returns (uint256)
30
ethTransferGasLimit(view returns (uint256)
500000
getRequestQueueLengths(view returns (uint256uint256uint256uint256)
(4034, 4034, 3545, 3545)
gov(view returns (address)
0x4f6e437f7e90087f7090acfe967d77ba0b4c7444
increasePositionBufferBps(view returns (uint256)
100
increasePositionRequestKeysStart(view returns (uint256)
4034
isLeverageEnabled(view returns (bool)
true
maxTimeDelay(view returns (uint256)
1800
minBlockDelayKeeper(view returns (uint256)
0
minExecutionFee(view returns (uint256)
50000000000000
minTimeDelayPublic(view returns (uint256)
180
referralStorage(view returns (address)
0x695567657651c05daf617a8e851a7436ce56e1df
router(view returns (address)
0x6a5a8aa9d251034b9e5034e1c0305c06f7102fae
shortsTracker(view returns (address)
0x83f29709dbaf3d8612d85091e75bc01b607e8238
vault(view returns (address)
0x102b73ca761f5dfb59918f62604b54aeb2fb0b3e
weth(view returns (address)
0x4200000000000000000000000000000000000006
Read-only
customCallbackGasLimits(addressview returns (uint256)
decreasePositionRequestKeys(uint256view returns (bytes32)
decreasePositionRequests(bytes32view returns (address accountaddress indexTokenuint256 collateralDeltauint256 sizeDeltabool isLongaddress receiveruint256 acceptablePriceuint256 minOutuint256 executionFeeuint256 blockNumberuint256 blockTimebool withdrawETHaddress callbackTarget)
decreasePositionsIndex(addressview returns (uint256)
feeReserves(addressview returns (uint256)
getDecreasePositionRequestPath(bytes32 _keyview returns (address[])
getIncreasePositionRequestPath(bytes32 _keyview returns (address[])
getRequestKey(address _accountuint256 _indexpure returns (bytes32)
increasePositionRequestKeys(uint256view returns (bytes32)
increasePositionRequests(bytes32view returns (address accountaddress indexTokenuint256 amountInuint256 minOutuint256 sizeDeltabool isLonguint256 acceptablePriceuint256 executionFeeuint256 blockNumberuint256 blockTimebool hasCollateralInETHaddress callbackTarget)
increasePositionsIndex(addressview returns (uint256)
isPositionKeeper(addressview returns (bool)
maxGlobalLongSizes(addressview returns (uint256)
maxGlobalShortSizes(addressview returns (uint256)
State-modifying
approve(address _tokenaddress _spenderuint256 _amount
cancelDecreasePosition(bytes32 _keyaddress _executionFeeReceiverreturns (bool)
cancelIncreasePosition(bytes32 _keyaddress _executionFeeReceiverreturns (bool)
createDecreasePosition(address[] _pathaddress _indexTokenuint256 _collateralDeltauint256 _sizeDeltabool _isLongaddress _receiveruint256 _acceptablePriceuint256 _minOutuint256 _executionFeebool _withdrawETHaddress _callbackTargetpayable returns (bytes32)
createIncreasePosition(address[] _pathaddress _indexTokenuint256 _amountInuint256 _minOutuint256 _sizeDeltabool _isLonguint256 _acceptablePriceuint256 _executionFeebytes32 _referralCodeaddress _callbackTargetpayable returns (bytes32)
createIncreasePositionETH(address[] _pathaddress _indexTokenuint256 _minOutuint256 _sizeDeltabool _isLonguint256 _acceptablePriceuint256 _executionFeebytes32 _referralCodeaddress _callbackTargetpayable returns (bytes32)
executeDecreasePosition(bytes32 _keyaddress _executionFeeReceiverreturns (bool)
executeDecreasePositions(uint256 _endIndexaddress _executionFeeReceiver
executeIncreasePosition(bytes32 _keyaddress _executionFeeReceiverreturns (bool)
executeIncreasePositions(uint256 _endIndexaddress _executionFeeReceiver
sendValue(address _receiveruint256 _amount
setAdmin(address _admin
setCallbackGasLimit(uint256 _callbackGasLimit
setCustomCallbackGasLimit(address _callbackTargetuint256 _callbackGasLimit
setDelayValues(uint256 _minBlockDelayKeeperuint256 _minTimeDelayPublicuint256 _maxTimeDelay
setDepositFee(uint256 _depositFee
setEthTransferGasLimit(uint256 _ethTransferGasLimit
setGov(address _gov
setIncreasePositionBufferBps(uint256 _increasePositionBufferBps
setIsLeverageEnabled(bool _isLeverageEnabled
setMaxGlobalSizes(address[] _tokensuint256[] _longSizesuint256[] _shortSizes
setMinExecutionFee(uint256 _minExecutionFee
setPositionKeeper(address _accountbool _isActive
setReferralStorage(address _referralStorage
setRequestKeysStartValues(uint256 _increasePositionRequestKeysStartuint256 _decreasePositionRequestKeysStart
withdrawFees(address _tokenaddress _receiver
Events
Callback(address callbackTargetbool successuint256 callbackGasLimit
CancelDecreasePosition(address indexed accountaddress[] pathaddress indexTokenuint256 collateralDeltauint256 sizeDeltabool isLongaddress receiveruint256 acceptablePriceuint256 minOutuint256 executionFeeuint256 blockGapuint256 timeGap
CancelIncreasePosition(address indexed accountaddress[] pathaddress indexTokenuint256 amountInuint256 minOutuint256 sizeDeltabool isLonguint256 acceptablePriceuint256 executionFeeuint256 blockGapuint256 timeGap
CreateDecreasePosition(address indexed accountaddress[] pathaddress indexTokenuint256 collateralDeltauint256 sizeDeltabool isLongaddress receiveruint256 acceptablePriceuint256 minOutuint256 executionFeeuint256 indexuint256 queueIndexuint256 blockNumberuint256 blockTime
CreateIncreasePosition(address indexed accountaddress[] pathaddress indexTokenuint256 amountInuint256 minOutuint256 sizeDeltabool isLonguint256 acceptablePriceuint256 executionFeeuint256 indexuint256 queueIndexuint256 blockNumberuint256 blockTimeuint256 gasPrice
DecreasePositionReferral(address accountuint256 sizeDeltauint256 marginFeeBasisPointsbytes32 referralCodeaddress referrer
ExecuteDecreasePosition(address indexed accountaddress[] pathaddress indexTokenuint256 collateralDeltauint256 sizeDeltabool isLongaddress receiveruint256 acceptablePriceuint256 minOutuint256 executionFeeuint256 blockGapuint256 timeGap
ExecuteIncreasePosition(address indexed accountaddress[] pathaddress indexTokenuint256 amountInuint256 minOutuint256 sizeDeltabool isLonguint256 acceptablePriceuint256 executionFeeuint256 blockGapuint256 timeGap
IncreasePositionReferral(address accountuint256 sizeDeltauint256 marginFeeBasisPointsbytes32 referralCodeaddress referrer
SetAdmin(address admin
SetCallbackGasLimit(uint256 callbackGasLimit
SetCustomCallbackGasLimit(address callbackTargetuint256 callbackGasLimit
SetDelayValues(uint256 minBlockDelayKeeperuint256 minTimeDelayPublicuint256 maxTimeDelay
SetDepositFee(uint256 depositFee
SetEthTransferGasLimit(uint256 ethTransferGasLimit
SetIncreasePositionBufferBps(uint256 increasePositionBufferBps
SetIsLeverageEnabled(bool isLeverageEnabled
SetMaxGlobalSizes(address[] tokensuint256[] longSizesuint256[] shortSizes
SetMinExecutionFee(uint256 minExecutionFee
SetPositionKeeper(address indexed accountbool isActive
SetReferralStorage(address referralStorage
SetRequestKeysStartValues(uint256 increasePositionRequestKeysStartuint256 decreasePositionRequestKeysStart
WithdrawFees(address tokenaddress receiveruint256 amount
Constructor
constructor(address _vaultaddress _routeraddress _wethaddress _shortsTrackeruint256 _depositFeeuint256 _minExecutionFee
Fallback and receive
receive(
Errors
AddressEmptyCode(address target
AddressInsufficientBalance(address account
FailedInnerCall(
PositionRouter_403(
PositionRouter_CallbackFailed(
PositionRouter_expired(
ReentrancyGuardReentrantCall(
SafeERC20FailedOperation(address token