Skip to content

Commit

Permalink
add check for case when you send pair token funds with MigrateLiquidi…
Browse files Browse the repository at this point in the history
…ty message
  • Loading branch information
NeverHappened committed Sep 27, 2023
1 parent e2120ba commit 5ee8de6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nodejs 14.20.0
nodejs 16.20.0
yarn 1.22.10
golang 1.18
Binary file modified contracts_migrate/new/neutron_lockdrop.wasm
Binary file not shown.
7 changes: 4 additions & 3 deletions src/testcases/run_in_band/tge.auction_migration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ describe('Neutron / TGE / Auction / Lockdrop migration', () => {
);
cmStranger = new cosmosWrapper.WalletWrapper(
neutronChain,

testState.wallets.qaNeutronFive.genQaWal1,
);
const daoCoreAddress = (await neutronChain.getChainAdmins())[0];
Expand Down Expand Up @@ -2345,7 +2344,7 @@ describe('Neutron / TGE / Auction / Lockdrop migration', () => {
).rejects.toThrowError(/Slippage tolerance is too high/);
});
it('should migrate liquidity', async () => {
const res = await cmInstantiator.executeContract(
const res = await cmStranger.executeContract(
tgeMain.contracts.lockdrop,
JSON.stringify({
migrate_from_xyk_to_cl: {
Expand All @@ -2354,7 +2353,8 @@ describe('Neutron / TGE / Auction / Lockdrop migration', () => {
},
},
}),
[],
// 100 000 000 max
[{ amount: '30000000', denom: IBC_USDC_DENOM }], // this should create a bug in an old migration version
{
gas_limit: Long.fromString('8000000'),
amount: [{ denom: tgeMain.chain.denom, amount: '20000' }],
Expand Down Expand Up @@ -2430,6 +2430,7 @@ describe('Neutron / TGE / Auction / Lockdrop migration', () => {
const height = +(res.height || 0);
heightDiff = height - heightDiff;
});

it('should allow to query total lockup at height', async () => {
const res = await cmInstantiator.chain.queryContract(
tgeMain.contracts.lockdrop,
Expand Down

0 comments on commit 5ee8de6

Please sign in to comment.