You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
execution reverted (close_position not executing the "Burn" call on Polygon network) #330
I am unfortunately unable to reproduce this on demand. It seems to sometimes happens. I anecdotally suspect this happens when polygon network is overloaded but have no proof that it is the case.
Network: Polygon Mainnet
LP pool = 0x86f1d8390222A3691C28938eC7404A1661E618e0
token0 = 0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270
token1 = 0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619
If the function close_position fails to execute all 3 steps (Decrease liquidity, Collect and Burn) at a time, then upon calling it again it should finish the process. ("Burn" in my case, because "Decrease liquidity" and "Collect" work fine)
I notice there are several wait_for_transaction_receipt calls in the close_liquidity method, which will make the transactions end up in different blocks.
It's possible that doing a multicall or sending them off at the same time (for inclusion into the same block) can address the issue. Just speculating though, not sure why positions aren't cleared entirely before burning.
Activity
carlos-pansela commentedon May 9, 2023
Is anybody able to help please ?
ErikBjare commentedon May 9, 2023
The error is triggered by the following line:
https://github.com/Uniswap/v3-periphery/blob/6cce88e63e176af1ddb6cc56e029110289622317/contracts/NonfungiblePositionManager.sol#L379
Looks like the position hasn't been cleared completely, which is a requirement to burn the LP token.
I'm unfortunately not familiar enough about the liquidity provision part of the code to say exactly what the issue is.
ErikBjare commentedon May 9, 2023
I notice there are several
wait_for_transaction_receiptcalls in theclose_liquiditymethod, which will make the transactions end up in different blocks.It's possible that doing a multicall or sending them off at the same time (for inclusion into the same block) can address the issue. Just speculating though, not sure why positions aren't cleared entirely before burning.