Skip to content

Commit

Permalink
Fix test values
Browse files Browse the repository at this point in the history
  • Loading branch information
jcompagni10 committed May 27, 2024
1 parent f4bb713 commit 53b2731
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions src/testcases/run_in_band/dex_stargate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ describe('Neutron / dex module (stargate contract)', () => {
token_in: 'untrn',
token_out: 'uibcusdc',
tick_index_in_to_out: 30000,
amount_in: '10',
amount_in: '100',
order_type: LimitOrderType.FillOrKill,
max_amount_out: '100',
},
Expand Down Expand Up @@ -426,25 +426,6 @@ describe('Neutron / dex module (stargate contract)', () => {
);
});
test('LimitOrderTrancheUserQuery', async () => {
const resTx = await neutronAccount.executeContract(
contractAddress,
JSON.stringify({
place_limit_order: {
receiver: contractAddress,
token_in: 'untrn',
token_out: 'uibcusdc',
tick_index_in_to_out: 1,
amount_in: '10',
order_type: LimitOrderType.JustInTime,
},
}),
);
expect(resTx.code).toEqual(0);
activeTrancheKey = getEventAttributesFromTx(
{ tx_response: resTx },
'TickUpdate',
['TrancheKey'],
)[0]['TrancheKey'];
const res =
await neutronAccount.chain.queryContract<LimitOrderTrancheUserResponse>(
contractAddress,
Expand Down Expand Up @@ -487,7 +468,7 @@ describe('Neutron / dex module (stargate contract)', () => {
{
get_limit_order_tranche: {
pair_id: 'uibcusdc<>untrn',
tick_index: -2000,
tick_index: -200,
token_in: 'untrn',
tranche_key: activeTrancheKey,
},
Expand Down

0 comments on commit 53b2731

Please sign in to comment.