From 9ee46425f5ab45f3aa1318e8607519d320bc6f33 Mon Sep 17 00:00:00 2001 From: toteki <63419657+toteki@users.noreply.github.com> Date: Mon, 11 Sep 2023 15:44:24 -0600 Subject: [PATCH] fix exceed max supply --- tests/e2e/e2e_leverage_test.go | 10 +++++----- tests/e2e/setup/keys.go | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/e2e/e2e_leverage_test.go b/tests/e2e/e2e_leverage_test.go index 9101b3d073..9d9080107c 100644 --- a/tests/e2e/e2e_leverage_test.go +++ b/tests/e2e/e2e_leverage_test.go @@ -91,11 +91,11 @@ func (s *E2ETest) TestLeverageScenario() { s.Run( "initial leverage supply", func() { - // Supply 1 WBTC, 1 ETH, 1 USDC, 1 UMEE - s.supply(val0, appparams.BondDenom, 1000000) - s.supply(val0, "test1", 100000000) - s.supply(val0, "test2", 1000000000000000000) - s.supply(val0, "test3", 1000000) + // Supply 100 UMEE, 1 WBTC, 10^-10 ETH, 100 USDC using 10^8 base denom each + s.supply(val0, appparams.BondDenom, 100_000_000) + s.supply(val0, "test1", 100_000_000) + s.supply(val0, "test2", 100_000_000) + s.supply(val0, "test3", 100_000_000) }, ) } diff --git a/tests/e2e/setup/keys.go b/tests/e2e/setup/keys.go index 3da8a58798..267fa24407 100644 --- a/tests/e2e/setup/keys.go +++ b/tests/e2e/setup/keys.go @@ -17,16 +17,16 @@ const ( PhotonDenom = "photon" InitBalanceStr = "510000000000" + appparams.BondDenom + ",100000000000" + PhotonDenom + - // 10^20 of each test token (accomodates exponent 18 tokens) - ",100000000000000000000" + "test1" + - ",100000000000000000000" + "test2" + - ",100000000000000000000" + "test3" + - ",100000000000000000000" + "test4" + - ",100000000000000000000" + "test5" + - ",100000000000000000000" + "test6" + - ",100000000000000000000" + "test7" + - ",100000000000000000000" + "test8" + - ",100000000000000000000" + "test9" + // 10^10 of each token per account will not easily exceed the leverage fixtures maxSupply of 10^11 + ",10000000000" + "test1" + + ",10000000000" + "test2" + + ",10000000000" + "test3" + + ",10000000000" + "test4" + + ",10000000000" + "test5" + + ",10000000000" + "test6" + + ",10000000000" + "test7" + + ",10000000000" + "test8" + + ",10000000000" + "test9" GaiaChainID = "test-gaia-chain" PriceFeederContainerRepo = "ghcr.io/umee-network/price-feeder-umee"