PositionRouter
Verified contract
Active on
Base with 27,565 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
4 additional
variables
Balances ($0.10)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
WETH | ERC-20 | 0.000029 | $3,305.36 |
$0.1 | |
| ERC-20 | 2.4K | -- | -- | |
| ERC-20 | 2.4K | -- | -- | |
OHNO | ERC-20 | 1 | -- | -- | |
LZPZ | ERC-20 | 1 | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 20253847 | 2 months ago | | | 0 | 1.3752753e-7 | |
| 20253782 | 2 months ago | | | 0 | 1.3776360e-7 | |
| 20253719 | 2 months ago | | | 0 | 1.4034023e-7 | |
| 20253655 | 2 months ago | | | 0 | 1.3833062e-7 | |
| 20253590 | 2 months ago | | | 0 | 1.3705860e-7 | |
| 20253527 | 2 months ago | | | 0 | 1.3748847e-7 | |
| 20253461 | 2 months ago | | | 0 | 1.3777609e-7 | |
| 20253397 | 2 months ago | | | 0 | 1.3685398e-7 | |
| 20253331 | 2 months ago | | | 0 | 1.4002907e-7 | |
| 20253268 | 2 months ago | | | 0 | 1.4018568e-7 |
ABI
ABI objects
Getter at block 22751135
BASIS_POINTS_DIVISOR() view returns (uint256)
10000
admin() view returns (address)
0x948d447ef250e3468481e8622a475980f01015e1
callbackGasLimit() view returns (uint256)
1000000000000000000
decreasePositionRequestKeysStart() view returns (uint256)
49
depositFee() view returns (uint256)
30
getRequestQueueLengths() view returns (uint256, uint256, uint256, uint256)
(106, 106, 49, 49)
gov() view returns (address)
0x1e61a5c911ab51f98a8dfbe90c0aa42e355885c5
increasePositionBufferBps() view returns (uint256)
100
increasePositionRequestKeysStart() view returns (uint256)
106
isLeverageEnabled() view returns (bool)
false
maxTimeDelay() view returns (uint256)
1800
minBlockDelayKeeper() view returns (uint256)
0
minExecutionFee() view returns (uint256)
180000000000000
minTimeDelayPublic() view returns (uint256)
10
referralStorage() view returns (address)
0x8e9e2957f2220247a810695aa006489a819fb6d5
router() view returns (address)
0xd00c4ad1e462c99369b5e4b79427756ededfce14
shortsTracker() view returns (address)
0x8e5cab4e44b7626a530b258a0f52e8f554e50190
vault() view returns (address)
0x853a8ce6b6338f5b0a14bcfc97f9d68396099c9c
weth() view returns (address)
0x4200000000000000000000000000000000000006
Read-only
decreasePositionRequestKeys(uint256) view returns (bytes32)
decreasePositionRequests(bytes32) view returns (address account, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, address receiver, uint256 acceptablePrice, uint256 minOut, uint256 executionFee, uint256 blockNumber, uint256 blockTime, bool withdrawETH, address callbackTarget)
decreasePositionsIndex(address) view returns (uint256)
feeReserves(address) view returns (uint256)
getDecreasePositionRequestPath(bytes32 _key) view returns (address[])
getIncreasePositionRequestPath(bytes32 _key) view returns (address[])
getRequestKey(address _account, uint256 _index) pure returns (bytes32)
increasePositionRequestKeys(uint256) view returns (bytes32)
increasePositionRequests(bytes32) view returns (address account, address indexToken, uint256 amountIn, uint256 minOut, uint256 sizeDelta, bool isLong, uint256 acceptablePrice, uint256 executionFee, uint256 blockNumber, uint256 blockTime, bool hasCollateralInETH, address callbackTarget)
increasePositionsIndex(address) view returns (uint256)
isPositionKeeper(address) view returns (bool)
maxGlobalLongSizes(address) view returns (uint256)
maxGlobalShortSizes(address) view returns (uint256)
State-modifying
Events approve(address _token, address _spender, uint256 _amount)
cancelDecreasePosition(bytes32 _key, address _executionFeeReceiver) returns (bool)
cancelIncreasePosition(bytes32 _key, address _executionFeeReceiver) returns (bool)
createDecreasePosition(address[] _path, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver, uint256 _acceptablePrice, uint256 _minOut, uint256 _executionFee, bool _withdrawETH, address _callbackTarget) payable returns (bytes32)
createIncreasePosition(address[] _path, address _indexToken, uint256 _amountIn, uint256 _minOut, uint256 _sizeDelta, bool _isLong, uint256 _acceptablePrice, uint256 _executionFee, bytes32 _referralCode, address _callbackTarget) payable returns (bytes32)
createIncreasePositionETH(address[] _path, address _indexToken, uint256 _minOut, uint256 _sizeDelta, bool _isLong, uint256 _acceptablePrice, uint256 _executionFee, bytes32 _referralCode, address _callbackTarget) payable returns (bytes32)
executeDecreasePosition(bytes32 _key, address _executionFeeReceiver) returns (bool)
executeDecreasePositions(uint256 _endIndex, address _executionFeeReceiver)
executeIncreasePosition(bytes32 _key, address _executionFeeReceiver) returns (bool)
executeIncreasePositions(uint256 _endIndex, address _executionFeeReceiver)
sendValue(address _receiver, uint256 _amount)
setAdmin(address _admin)
setCallbackGasLimit(uint256 _callbackGasLimit)
setDelayValues(uint256 _minBlockDelayKeeper, uint256 _minTimeDelayPublic, uint256 _maxTimeDelay)
setDepositFee(uint256 _depositFee)
setGov(address _gov)
setIncreasePositionBufferBps(uint256 _increasePositionBufferBps)
setIsLeverageEnabled(bool _isLeverageEnabled)
setMaxGlobalSizes(address[] _tokens, uint256[] _longSizes, uint256[] _shortSizes)
setMinExecutionFee(uint256 _minExecutionFee)
setPositionKeeper(address _account, bool _isActive)
setReferralStorage(address _referralStorage)
setRequestKeysStartValues(uint256 _increasePositionRequestKeysStart, uint256 _decreasePositionRequestKeysStart)
withdrawFees(address _token, address _receiver)
Callback(address callbackTarget, bool success)
CancelDecreasePosition(address indexed account, address[] path, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, address receiver, uint256 acceptablePrice, uint256 minOut, uint256 executionFee, uint256 blockGap, uint256 timeGap)
CancelIncreasePosition(address indexed account, address[] path, address indexToken, uint256 amountIn, uint256 minOut, uint256 sizeDelta, bool isLong, uint256 acceptablePrice, uint256 executionFee, uint256 blockGap, uint256 timeGap)
CreateDecreasePosition(address indexed account, address[] path, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, address receiver, uint256 acceptablePrice, uint256 minOut, uint256 executionFee, uint256 index, uint256 queueIndex, uint256 blockNumber, uint256 blockTime)
CreateIncreasePosition(address indexed account, address[] path, address indexToken, uint256 amountIn, uint256 minOut, uint256 sizeDelta, bool isLong, uint256 acceptablePrice, uint256 executionFee, uint256 index, uint256 queueIndex, uint256 blockNumber, uint256 blockTime, uint256 gasPrice)
DecreasePositionReferral(address account, uint256 sizeDelta, uint256 marginFeeBasisPoints, bytes32 referralCode, address referrer)
ExecuteDecreasePosition(address indexed account, address[] path, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, address receiver, uint256 acceptablePrice, uint256 minOut, uint256 executionFee, uint256 blockGap, uint256 timeGap)
ExecuteIncreasePosition(address indexed account, address[] path, address indexToken, uint256 amountIn, uint256 minOut, uint256 sizeDelta, bool isLong, uint256 acceptablePrice, uint256 executionFee, uint256 blockGap, uint256 timeGap)
IncreasePositionReferral(address account, uint256 sizeDelta, uint256 marginFeeBasisPoints, bytes32 referralCode, address referrer)
SetAdmin(address admin)
SetCallbackGasLimit(uint256 callbackGasLimit)
SetDelayValues(uint256 minBlockDelayKeeper, uint256 minTimeDelayPublic, uint256 maxTimeDelay)
SetDepositFee(uint256 depositFee)
SetIncreasePositionBufferBps(uint256 increasePositionBufferBps)
SetIsLeverageEnabled(bool isLeverageEnabled)
SetMaxGlobalSizes(address[] tokens, uint256[] longSizes, uint256[] shortSizes)
SetMinExecutionFee(uint256 minExecutionFee)
SetPositionKeeper(address indexed account, bool isActive)
SetReferralStorage(address referralStorage)
SetRequestKeysStartValues(uint256 increasePositionRequestKeysStart, uint256 decreasePositionRequestKeysStart)
WithdrawFees(address token, address receiver, uint256 amount)
constructor(address _vault, address _router, address _weth, address _shortsTracker, uint256 _depositFee, uint256 _minExecutionFee)
receive()
This contract contains no error objects.