Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
4 additional
variables
Balances ($0.00)
No balances found for "PositionRouter"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 2779690 | a year ago | | | 0.000595919 | 0.00058304798 | |
| 2779662 | a year ago | | | 0.009095919 | 0.00056040949 | |
| 2779628 | a year ago | | | 0.008595919 | 0.00059525705 | |
| 2779550 | a year ago | | | 0.008695919 | 0.00064676729 | |
| 2779532 | a year ago | | | 0 | 0.000030849000 | |
| 2692753 | a year ago | | | 0 | 0.000000000020127240 | |
| 2692586 | a year ago | | | 0 | 0.000000000038731140 | |
| 2692582 | a year ago | | | 0 | 0.000000000010486980 | |
| 2692567 | a year ago | | | 0 | 0.000000000020110020 |
ABI
ABI objects
Getter at block 21750537
BASIS_POINTS_DIVISOR() view returns (uint256)
10000
admin() view returns (address)
0x0a68f81fe8c23cf19fd0f90be3734f68ff2ef451
callbackGasLimit() view returns (uint256)
0
decreasePositionRequestKeysStart() view returns (uint256)
1
depositFee() view returns (uint256)
30
getRequestQueueLengths() view returns (uint256, uint256, uint256, uint256)
(3, 3, 1, 1)
gov() view returns (address)
0x0a68f81fe8c23cf19fd0f90be3734f68ff2ef451
increasePositionBufferBps() view returns (uint256)
100
increasePositionRequestKeysStart() view returns (uint256)
3
isLeverageEnabled() view returns (bool)
true
maxTimeDelay() view returns (uint256)
1800
minBlockDelayKeeper() view returns (uint256)
1
minExecutionFee() view returns (uint256)
595919000000000
minTimeDelayPublic() view returns (uint256)
10
referralStorage() view returns (address)
0x8a1403b6b8eab4b748ab08b46a6b4b1e1cd066a8
router() view returns (address)
0x96b244391d98b62d19ae89b1a4dccf0fc56970c7
shortsTracker() view returns (address)
0x4204cad97732282d261fbb7088e07557810a6408
vault() view returns (address)
0x985bca32293a7a496300a48081947321177a86fd
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.