Skip to content

Commit

Permalink
decrease bond amount for dao members
Browse files Browse the repository at this point in the history
  • Loading branch information
sotnikov-s committed Sep 20, 2023
1 parent 234e781 commit 639d39f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/testcases/parallel/governance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,47 +92,47 @@ describe('Neutron / Governance', () => {

describe('prepare: bond funds', () => {
test('bond form wallet 1', async () => {
await daoMember1.bondFunds('1000000000');
await daoMember1.bondFunds('10000');
await wait.getWithAttempts(
neutronChain.blockWaiter,
async () =>
await mainDao.queryVotingPower(
daoMember1.user.wallet.address.toString(),
),
async (response) => response.power == 1000000000,
async (response) => response.power == 10000,
20,
);
});
test('bond from wallet 2', async () => {
await daoMember2.bondFunds('1000000000');
await daoMember2.bondFunds('10000');
await wait.getWithAttempts(
neutronChain.blockWaiter,
async () =>
await mainDao.queryVotingPower(
daoMember1.user.wallet.address.toString(),
),
async (response) => response.power == 1000000000,
async (response) => response.power == 10000,
20,
);
});
test('bond from wallet 3 ', async () => {
await daoMember3.bondFunds('1000000000');
await daoMember3.bondFunds('10000');
await wait.getWithAttempts(
neutronChain.blockWaiter,
async () =>
await mainDao.queryVotingPower(
daoMember1.user.wallet.address.toString(),
),
async (response) => response.power == 1000000000,
async (response) => response.power == 10000,
20,
);
});
test('check voting power', async () => {
await wait.getWithAttempts(
neutronChain.blockWaiter,
async () => await mainDao.queryTotalVotingPower(),
// 3x1000000000 + 100000000 from investors vault (see neutron/network/init-neutrond.sh)
async (response) => response.power == 3100000000,
// 3x10000 + 1000 from investors vault (see neutron/network/init-neutrond.sh)
async (response) => response.power == 31000,
20,
);
});
Expand Down

0 comments on commit 639d39f

Please sign in to comment.