AutoExit

Verified contract

Active on Ethereum with 220 txns
Deployed by via 0x27d15336 at 17726076
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $59.58
ERC-20
Value $1.17
ERC-20
Value $0.71
ERC-20
Value $0.55
ERC-20
Value $0.01
ERC-20
--
0xad19b982c875883e9e67b81eca2b1ec657f91f71bf323a65935b5308592bf3bd
0xbe7b787de410d224f9bca7fd34de32419e73e858094b3cce1b4f27d8add27651
0xe153d03f1f59805994c6f8a9ff3ef3b75b4e5a1ff1a1513c735bc00f5716a825
0x9b7ee621fdd854fad180703334619de1f7724ccd3e3f72c19c3bd6a3f237f0b0
0x62eb3ca9087792805ddb020c2bff46364e398252a5abf206545ddd0f8524e429
0xd52e78b96c37b3fb5cec267e89fceb5f799988957b044a6b64e14d7c38192e97
0x2a30dc093042ccab80daa4b3c8a84dce35df06e0572af3ce7867d455688f690c
0xfbf626419a5c63a40427eb9cee207a2ce474ba2baf47cd00bf89fd76bf256e43
0xa05b53f8d362dceb5ad67710851105c32d40304a85d1c28bf0da194579de4648
0x769e179ab72652f67216c9e8666c612b27638bafcf643c0b37f413b364649f37

Functions
Getter at block 20874879
MAX_TWAP_TICK_DIFFERENCE(view returns (uint32)
200
MIN_TWAP_SECONDS(view returns (uint32)
60
TWAPSeconds(view returns (uint32)
60
factory(view returns (address)
0x1f98431c8ad98523631ae4a59f267346ea31f984
maxTWAPTickDifference(view returns (uint16)
100
nonfungiblePositionManager(view returns (address)
0xc36442b4a4522e871399cd717abdd847ab11fe88
owner(view returns (address)
0xaac25e85e752425dd1a92674ceeaf603758d3124
protocolRewardX64(view returns (uint64)
46116860184273880
swapRouterIndex(view returns (uint8)
0
swapRouterOption0(view returns (address)
0xdef1c0ded9bec7f1a1670819833240f027b25eff
swapRouterOption1(view returns (address)
0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad
swapRouterOption2(view returns (address)
0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45
weth(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
withdrawer(view returns (address)
0xe247a0b71c396b024d8048529801763eda4928d3
Read-only
operators(addressview returns (bool)
positionConfigs(uint256view returns (bool isActivebool token0Swapbool token1Swapint24 token0TriggerTickint24 token1TriggerTickuint64 token0SlippageX64uint64 token1SlippageX64)
State-modifying
configToken(uint256 tokenIdstruct AutoExitPositionConfig config
execute(struct AutoExitExecuteParams params
renounceOwnership(
setOperator(address _operatorbool _active
setSwapRouter(uint8 _swapRouterIndex
setTWAPConfig(uint16 _maxTWAPTickDifferenceuint32 _TWAPSeconds
setWithdrawer(address _withdrawer
transferOwnership(address newOwner
withdrawBalances(address[] tokensaddress to
withdrawETH(address to
Events
Executed(uint256 indexed tokenIdaddress accountbool isSwapuint256 amountReturned0uint256 amountReturned1address token0address token1
OperatorChanged(address newOperatorbool active
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
PositionConfigured(uint256 indexed tokenIdbool isActivebool token0Swapbool token1Swapint24 token0TriggerTickint24 token1TriggerTickuint64 token0SlippageX64uint64 token1SlippageX64
SwapRouterChanged(uint8 swapRouterIndex
TWAPConfigChanged(uint32 TWAPSecondsuint16 maxTWAPTickDifference
WithdrawerChanged(address newWithdrawer
Constructor
constructor(address _npmaddress _operatoraddress _withdraweruint32 _TWAPSecondsuint16 _maxTWAPTickDifferenceuint64 _protocolRewardX64address[] _swapRouterOptions
Fallback and receive
receive(
Errors
EtherSendFailed(
InvalidConfig(
LiquidityChanged(
MissingSwapData(
NoLiquidity(
NotConfigured(
NotReady(
NotWETH(
SlippageError(
SwapFailed(
TWAPCheckFailed(
Unauthorized(