Skip to content

Commit

Permalink
fix exceed max supply
Browse files Browse the repository at this point in the history
  • Loading branch information
toteki committed Sep 11, 2023
1 parent ce53a5b commit 9ee4642
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions tests/e2e/e2e_leverage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
)
}
20 changes: 10 additions & 10 deletions tests/e2e/setup/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9ee4642

Please sign in to comment.