Skip to content

Commit

Permalink
check unclaimed amount before and after migration of vesting contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0n00gler committed Aug 14, 2023
1 parent 5d03f39 commit 3e896c3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/testcases/run_in_band/tge.auction_migration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1603,6 +1603,7 @@ describe('Neutron / TGE / Auction / Lockdrop migration', () => {
let claimUsdcLP;
const votingPowerBeforeLp: Record<string, number> = {};
let totalUnclaimedAtHeightBeforeMigration: number;
let unclaimedAtHeightBeforeMigration: number;
let unclaimedHeightBeforeMigration: number;

it('should save voting power before migration: lp', async () => {
Expand Down Expand Up @@ -1645,6 +1646,12 @@ describe('Neutron / TGE / Auction / Lockdrop migration', () => {
tge.contracts.vestingAtomLp,
unclaimedHeightBeforeMigration,
);
unclaimedAtHeightBeforeMigration = await queryUnclaimmedAmountAtHeight(
cmInstantiator.chain,
tge.contracts.vestingAtomLp,
unclaimedHeightBeforeMigration,
cmInstantiator.wallet.address.toString(),
);

const [
vestingInfoAtom,
Expand Down Expand Up @@ -1885,9 +1892,19 @@ describe('Neutron / TGE / Auction / Lockdrop migration', () => {
tge.contracts.vestingAtomLp,
unclaimedHeightBeforeMigration,
);
const unclaimedAmountAfterMigration =
await queryUnclaimmedAmountAtHeight(
cmInstantiator.chain,
tge.contracts.vestingAtomLp,
unclaimedHeightBeforeMigration,
cmInstantiator.wallet.address.toString(),
);
expect(totalUnclaimedAmountAfterMigration).toEqual(
totalUnclaimedAtHeightBeforeMigration,
);
expect(unclaimedAmountAfterMigration).toEqual(
unclaimedAtHeightBeforeMigration,
);

const total = await queryTotalUnclaimedAmountAtHeight(
cmInstantiator.chain,
Expand Down

0 comments on commit 3e896c3

Please sign in to comment.