Replies: 2 comments 1 reply
-
Your gas limit may be too high. I think most nodes only allow a gas limit for calls to be up to twice the block gas limit, and that looks a LOT bigger. When not setting you may be getting the error due to the method reverting. Does the |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hey, thanks for that. I'm doing it for purpose (but maybe I'm wrong). Eg.
when checking how much fees are accrued on account, Uniswap interface calls
static similar method (collect) with max amounts, and method returns how
much it would return if this wasn't a staticCall. But maybe
decreaseLiquidity is different…
niedz., 30 maj 2021 o 12:07 soham ***@***.***> napisał(a):
… @reuptaken <https://github.com/reuptaken> You're passing max value in
liquidity parameter. That likely causes this require statement
<https://github.com/Uniswap/uniswap-v3-periphery/blob/main/contracts/NonfungiblePositionManager.sol#L269>
to fail.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1625 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGMGSITUEFDTHIUMJC6GEVTTQIE4NANCNFSM45ZGBM3Q>
.
--
Marcin Jagodziński
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use staticCall method on Uniswap v3 NonfungiblePositionManager contract
decreaseLiquidity
method and I'm gettingUNPREDICTABLE_GAS_LIMIT
error even if I setgasLimit
manually… why is that?Beta Was this translation helpful? Give feedback.
All reactions