Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(position): Extract JSON From Position #495

Merged
merged 17 commits into from
Feb 5, 2025
5 changes: 2 additions & 3 deletions contract/r/gnoswap/position/_helper_test.gno
Original file line number Diff line number Diff line change
Expand Up @@ -454,10 +454,9 @@ func LPTokenUnStake(t *testing.T, owner std.Address, tokenId uint64, unwrap bool
sr.UnStakeToken(tokenId, unwrap)
}

func getPoolFromLpTokenId(t *testing.T, lpTokenId uint64) *pl.Pool {
func getPoolFromTokenId(t *testing.T, tokenId uint64) *pl.Pool {
notJoon marked this conversation as resolved.
Show resolved Hide resolved
t.Helper()

position := MustGetPosition(lpTokenId)
position := MustGetPosition(tokenId)
return pl.GetPoolFromPoolPath(position.poolKey)
}

Expand Down
Loading