Rebased and addressed PR comments

This commit is contained in:
Greg Hysen
2019-09-17 14:31:38 -07:00
parent db97fe8164
commit 768387fea9
18 changed files with 125 additions and 253 deletions

View File

@@ -113,10 +113,12 @@ blockchainTests.resets('Testing Rewards', env => {
? _expectedEndBalances.poolRewardVaultBalance
: ZERO,
};
const pool = await stakingApiWrapper.rewardVaultContract.poolById.callAsync(poolId);
const operatorBalance = pool[1];
const membersBalance = pool[2];
/*
const pool = await stakingApiWrapper.stakingContract.getStakingPool.callAsync(poolId);
const operatorBalance = pool[2];
const membersBalance = pool[3];
const poolBalances = { poolBalance: operatorBalance.plus(membersBalance), operatorBalance, membersBalance };
*/
const finalEndBalancesAsArray = await Promise.all([
// staker 1
stakingApiWrapper.stakingContract.computeRewardBalanceOfDelegator.callAsync(