Skip to content

Commit

Permalink
Merge pull request #421 from comdex-official/testcases_fix
Browse files Browse the repository at this point in the history
testcases fixed
  • Loading branch information
dheerajkd30 authored Aug 25, 2022
2 parents 0559444 + 424e19f commit d419513
Show file tree
Hide file tree
Showing 15 changed files with 250 additions and 249 deletions.
8 changes: 4 additions & 4 deletions x/lend/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ func (s *KeeperTestSuite) Test() {
//addr1 := s.addr(1)
//addr2 := s.addr(2)

assetOneID := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
assetTwoID := s.CreateNewAsset("ASSET2", "uasset2", 2000000)
assetThreeID := s.CreateNewAsset("ASSET3", "uasset3", 2000000)
assetFourID := s.CreateNewAsset("ASSET4", "uasset4", 2000000)
assetOneID := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
assetTwoID := s.CreateNewAsset("ASSETTWO", "uasset2", 2000000)
assetThreeID := s.CreateNewAsset("ASSETHREE", "uasset3", 2000000)
assetFourID := s.CreateNewAsset("ASSETFOUR", "uasset4", 2000000)
cAssetOneID := s.CreateNewAsset("CASSET1", "ucasset1", 1000000)
cAssetTwoID := s.CreateNewAsset("CASSET2", "ucasset2", 2000000)
cAssetThreeID := s.CreateNewAsset("CASSET3", "ucasset3", 2000000)
Expand Down
40 changes: 20 additions & 20 deletions x/liquidity/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ func (s *ModuleTestSuite) TestMsgCreatePair() {
addr1 := s.addr(1)

appID1 := s.CreateNewApp("appone")
asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 2000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 2000000)

params, err := s.keeper.GetGenericParams(s.ctx, appID1)
s.Require().NoError(err)
Expand Down Expand Up @@ -83,8 +83,8 @@ func (s *ModuleTestSuite) TestMsgCreatePool() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 2000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 2000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)

Expand Down Expand Up @@ -124,8 +124,8 @@ func (s *ModuleTestSuite) TestMsgDeposit() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -154,8 +154,8 @@ func (s *ModuleTestSuite) TestMsgWithdraw() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand All @@ -181,8 +181,8 @@ func (s *ModuleTestSuite) TestMsgLimitOrder() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
_ = s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -227,8 +227,8 @@ func (s *ModuleTestSuite) TestMsgMarketOrder() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
_ = s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -277,8 +277,8 @@ func (s *ModuleTestSuite) TestMsgCancelOrder() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
_ = s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -309,8 +309,8 @@ func (s *ModuleTestSuite) TestMsgCancelAllOrders() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
_ = s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -340,8 +340,8 @@ func (s *ModuleTestSuite) TestMsgFarm() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand All @@ -368,8 +368,8 @@ func (s *ModuleTestSuite) TestMsgUnfarm() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down
4 changes: 2 additions & 2 deletions x/liquidity/keeper/batch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ func (s *KeeperTestSuite) TestOrderExpiration() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, creator, asset1.Denom, asset2.Denom)

Expand Down
10 changes: 5 additions & 5 deletions x/liquidity/keeper/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ func (s *KeeperTestSuite) TestImportExportGenesis() {
k, ctx := s.keeper, s.ctx

appID1 := s.CreateNewApp("appone")
asset1 := s.CreateNewAsset("ASSET1", "denom1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "denom2", 2000000)
asset1 := s.CreateNewAsset("ASSETONE", "denom1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "denom2", 2000000)
pair := s.CreateNewLiquidityPair(appID1, s.addr(0), asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, s.addr(0), "1000000denom1,1000000denom2")
s.Deposit(appID1, pool.Id, s.addr(1), "1000000denom1,1000000denom2")
Expand Down Expand Up @@ -115,9 +115,9 @@ func (s *KeeperTestSuite) TestIndexesAfterImport() {
s.ctx = s.ctx.WithBlockHeight(1).WithBlockTime(utils.ParseTime("2022-03-01T00:00:00Z"))

appID1 := s.CreateNewApp("appone")
asset1 := s.CreateNewAsset("ASSET1", "denom1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "denom2", 2000000)
asset3 := s.CreateNewAsset("ASSET2", "denom3", 3000000)
asset1 := s.CreateNewAsset("ASSETONE", "denom1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "denom2", 2000000)
asset3 := s.CreateNewAsset("ASSETTWO", "denom3", 3000000)

pair1 := s.CreateNewLiquidityPair(appID1, s.addr(0), asset1.Denom, asset2.Denom)
pair2 := s.CreateNewLiquidityPair(appID1, s.addr(1), asset2.Denom, asset3.Denom)
Expand Down
68 changes: 34 additions & 34 deletions x/liquidity/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ func (s *KeeperTestSuite) TestPools() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -103,8 +103,8 @@ func (s *KeeperTestSuite) TestPool() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -168,8 +168,8 @@ func (s *KeeperTestSuite) TestPoolByReserveAddress() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -238,8 +238,8 @@ func (s *KeeperTestSuite) TestPoolByPoolCoinDenom() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -308,8 +308,8 @@ func (s *KeeperTestSuite) TestPairs() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)

Expand Down Expand Up @@ -378,8 +378,8 @@ func (s *KeeperTestSuite) TestPair() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)

Expand Down Expand Up @@ -443,8 +443,8 @@ func (s *KeeperTestSuite) TestDepositRequests() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -506,8 +506,8 @@ func (s *KeeperTestSuite) TestDepositRequest() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -579,8 +579,8 @@ func (s *KeeperTestSuite) TestWithdrawRequests() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -643,8 +643,8 @@ func (s *KeeperTestSuite) TestWithdrawRequest() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -717,8 +717,8 @@ func (s *KeeperTestSuite) TestOrders() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
_ = s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -786,8 +786,8 @@ func (s *KeeperTestSuite) TestOrder() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
_ = s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -865,8 +865,8 @@ func (s *KeeperTestSuite) TestOrdersByOrderer() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
_ = s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -939,8 +939,8 @@ func (s *KeeperTestSuite) TestFarmer() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -1015,8 +1015,8 @@ func (s *KeeperTestSuite) TestDeserializePoolCoin() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -1064,8 +1064,8 @@ func (s *KeeperTestSuite) TestPoolIncentives() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -1119,8 +1119,8 @@ func (s *KeeperTestSuite) TestFarmedPoolCoin() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, addr1, asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, addr1, "1000000000000uasset1,1000000000000uasset2")
Expand Down
16 changes: 8 additions & 8 deletions x/liquidity/keeper/invariants_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ func (s *KeeperTestSuite) TestDepositCoinsEscrowInvariant() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, creator, asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, creator, "1000000000000uasset1,1000000000000uasset2")
Expand All @@ -40,8 +40,8 @@ func (s *KeeperTestSuite) TestPoolCoinEscrowInvariant() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, creator, asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, creator, "1000000000000uasset1,1000000000000uasset2")
Expand Down Expand Up @@ -71,8 +71,8 @@ func (s *KeeperTestSuite) TestRemainingOfferCoinEscrowInvariant() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, creator, asset1.Denom, asset2.Denom)

Expand All @@ -98,8 +98,8 @@ func (s *KeeperTestSuite) TestPoolStatusInvariant() {

appID1 := s.CreateNewApp("appone")

asset1 := s.CreateNewAsset("ASSET1", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSET2", "uasset2", 1000000)
asset1 := s.CreateNewAsset("ASSETONE", "uasset1", 1000000)
asset2 := s.CreateNewAsset("ASSETTWO", "uasset2", 1000000)

pair := s.CreateNewLiquidityPair(appID1, creator, asset1.Denom, asset2.Denom)
pool := s.CreateNewLiquidityPool(appID1, pair.Id, creator, "1000000000000uasset1,1000000000000uasset2")
Expand Down
Loading

0 comments on commit d419513

Please sign in to comment.