From 6b3cfa8ed4d47ecad91308f8e68dda693f4f0b1b Mon Sep 17 00:00:00 2001 From: Lee ByeongJun Date: Sat, 21 Dec 2024 14:17:53 +0900 Subject: [PATCH] make test run --- emission/emission.gno | 1 + emission/mint_gns.gno | 2 +- router/{router.gno => router.gnoA} | 0 ...REGISTER_test.gno => __TEST_0_INIT_TOKEN_REGISTER_test.gnoA} | 0 ...RS_HELPERS_test.gno => __TEST_0_INIT_VARS_HELPERS_test.gnoA} | 0 staker/staker.gno | 2 +- 6 files changed, 3 insertions(+), 2 deletions(-) rename router/{router.gno => router.gnoA} (100%) rename router/tests/{__TEST_0_INIT_TOKEN_REGISTER_test.gno => __TEST_0_INIT_TOKEN_REGISTER_test.gnoA} (100%) rename router/tests/{__TEST_0_INIT_VARS_HELPERS_test.gno => __TEST_0_INIT_VARS_HELPERS_test.gnoA} (100%) diff --git a/emission/emission.gno b/emission/emission.gno index f781acc4..c6dfb947 100644 --- a/emission/emission.gno +++ b/emission/emission.gno @@ -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" ) diff --git a/emission/mint_gns.gno b/emission/mint_gns.gno index 6c848a27..2de98dc7 100644 --- a/emission/mint_gns.gno +++ b/emission/mint_gns.gno @@ -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)) } diff --git a/router/router.gno b/router/router.gnoA similarity index 100% rename from router/router.gno rename to router/router.gnoA diff --git a/router/tests/__TEST_0_INIT_TOKEN_REGISTER_test.gno b/router/tests/__TEST_0_INIT_TOKEN_REGISTER_test.gnoA similarity index 100% rename from router/tests/__TEST_0_INIT_TOKEN_REGISTER_test.gno rename to router/tests/__TEST_0_INIT_TOKEN_REGISTER_test.gnoA diff --git a/router/tests/__TEST_0_INIT_VARS_HELPERS_test.gno b/router/tests/__TEST_0_INIT_VARS_HELPERS_test.gnoA similarity index 100% rename from router/tests/__TEST_0_INIT_VARS_HELPERS_test.gno rename to router/tests/__TEST_0_INIT_VARS_HELPERS_test.gnoA diff --git a/staker/staker.gno b/staker/staker.gno index fe95cec3..afdd3067 100644 --- a/staker/staker.gno +++ b/staker/staker.gno @@ -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))