Skip to content

Commit 723459b

Browse files
pr0n00glerjcompagni10
authored andcommitted
fix tick index for query
2 parents 98f5400 + 0715498 commit 723459b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/testcases/run_in_band/dex_grpc.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ describe('Neutron / dex module (grpc contract)', () => {
585585
await neutronClient.queryContractSmart(contractAddress, {
586586
get_inactive_limit_order_tranche: {
587587
pair_id: 'uibcusdc<>untrn',
588-
tick_index: 19991,
588+
tick_index: 19992,
589589
token_in: 'untrn',
590590
tranche_key: inactiveTrancheKey,
591591
},
@@ -760,7 +760,7 @@ describe('Neutron / dex module (grpc contract)', () => {
760760
},
761761
},
762762
});
763-
expect(res.resp.taker_coin_out.amount).toBe('998');
763+
expect(res.resp.taker_coin_out.amount).toBe('999');
764764
expect(res.resp.maker_coin_out.amount).toBe('0');
765765
});
766766
test('SimulateCancelLimitOrder', async () => {
@@ -772,8 +772,8 @@ describe('Neutron / dex module (grpc contract)', () => {
772772
},
773773
},
774774
});
775-
expect(res.resp.taker_coin_out.amount).toBe('998');
776-
expect(res.resp.maker_coin_out.amount).toBe('998779');
775+
expect(res.resp.taker_coin_out.amount).toBe('999');
776+
expect(res.resp.maker_coin_out.amount).toBe('998778');
777777
});
778778
test('SimulateMultiHopSwap', async () => {
779779
const res = await neutronClient.queryContractSmart(contractAddress, {
@@ -803,7 +803,7 @@ describe('Neutron / dex module (grpc contract)', () => {
803803
},
804804
},
805805
});
806-
expect(res.resp.coin_out.amount).toBe('91');
806+
expect(res.resp.coin_out.amount).toBe('99');
807807
expect(res.resp.route.hops.length).toBe(10);
808808
});
809809
});

0 commit comments

Comments
 (0)