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
In the example code the currentPosition is constructed from CurrentConfig which is a const value and can be the same as the mint one. But in real use, there won't be such a CurrentConfig, then how can I calculate it from positionId or the object returned by positionContract.positions(tokenId)?
The text was updated successfully, but these errors were encountered:
Hi @antiwinter ,
You get all the values you need from the positions function on the NonfungiblePositionManager Contract.
From the response of getPositionInfo() create the position like this:
In the example code the
currentPosition
is constructed fromCurrentConfig
which is a const value and can be the same as the mint one. But in real use, there won't be such aCurrentConfig
, then how can I calculate it frompositionId
or the object returned bypositionContract.positions(tokenId)
?The text was updated successfully, but these errors were encountered: