Rebased and addressed PR comments
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user