Skip to content

Commit

Permalink
make test run
Browse files Browse the repository at this point in the history
  • Loading branch information
notJoon committed Dec 21, 2024
1 parent 4f6c92b commit 6b3cfa8
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions emission/emission.gno
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

"gno.land/p/demo/ufmt"

"gno.land/r/gnoswap/v1/consts"
"gno.land/r/gnoswap/v1/common"
"gno.land/r/gnoswap/v1/gns"
)
Expand Down
2 changes: 1 addition & 1 deletion emission/mint_gns.gno
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ var emissionAddr std.Address = consts.EMISSION_ADDR

// mintGns mints GNS to emission address
func mintGns() uint64 {
return gns.Mint(a2u(emissionAddr))
return gns.MintGns(a2u(emissionAddr))
}
File renamed without changes.
2 changes: 1 addition & 1 deletion staker/staker.gno
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ func getTokenPairBalanceFromPosition(tokenId uint64) (string, string) {
poolKey := pn.PositionGetPositionPoolKey(tokenId)

pool := pl.GetPoolFromPoolPath(poolKey)
currentX96 := pool.PoolGetSlot0SqrtPriceX96()
currentX96 := pool.Slot0SqrtPriceX96()
lowerX96 := common.TickMathGetSqrtRatioAtTick(pn.PositionGetPositionTickLower(tokenId))
upperX96 := common.TickMathGetSqrtRatioAtTick(pn.PositionGetPositionTickUpper(tokenId))

Expand Down

0 comments on commit 6b3cfa8

Please sign in to comment.