Skip to content

Commit

Permalink
change emit param name
Browse files Browse the repository at this point in the history
  • Loading branch information
notJoon committed Dec 16, 2024
1 parent 40fb74f commit bad0c91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions staker/staker.gno
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ func StakeToken(tokenId uint64) (string, string, string) {
panic(err)
}

prevAddr, prevRealm := getPrev()
prevAddr, prevPackagePath := getPrev()

std.Emit(
"StakeToken",
"prevAddr", prevAddr,
"prevRealm", prevRealm,
"prevRealm", prevPackagePath,
"lpTokenId", ufmt.Sprintf("%d", tokenId),
"internal_poolPath", result.poolPath,
"internal_amount0", result.token0Amount,
Expand Down Expand Up @@ -616,11 +616,11 @@ func UnstakeToken(tokenId uint64, unwrapResult bool) (string, string, string) {
gnft.TransferFrom(a2u(consts.STAKER_ADDR), a2u(deposit.owner), tid(tokenId))
pn.SetPositionOperator(tokenId, consts.ZERO_ADDRESS)

prevAddr, prevRealm := getPrev()
prevAddr, prevPkgPath := getPrev()
std.Emit(
"UnstakeToken",
"prevAddr", prevAddr,
"prevRealm", prevRealm,
"prevRealm", prevPkgPath,
"lpTokenId", ufmt.Sprintf("%d", tokenId),
"unwrapResult", ufmt.Sprintf("%t", unwrapResult),
"internal_poolPath", output.poolPath,
Expand Down

0 comments on commit bad0c91

Please sign in to comment.