Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use token denom diff #ntrn-117 #210

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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