account for delegated stake when computing payouts. Tests pass

This commit is contained in:
Greg Hysen
2019-06-11 15:05:48 -07:00
parent 6041fb0445
commit 362a8c8fc5
5 changed files with 173 additions and 23 deletions

View File

@@ -475,7 +475,7 @@ export class StakingWrapper {
const output = await this.getLibMathTestContract().nthRootFixedPoint.callAsync(value, n);
return output;
}
public async cobbDouglas(
public async cobbDouglasAsync(
totalRewards: BigNumber,
ownerFees: BigNumber,
totalFees: BigNumber,
@@ -495,7 +495,7 @@ export class StakingWrapper {
);
return output;
}
public async cobbDouglasSimplified(
public async cobbDouglasSimplifiedAsync(
totalRewards: BigNumber,
ownerFees: BigNumber,
totalFees: BigNumber,
@@ -522,7 +522,7 @@ export class StakingWrapper {
);
return output;
}
public async cobbDouglasSimplifiedInverse(
public async cobbDouglasSimplifiedInverseAsync(
totalRewards: BigNumber,
ownerFees: BigNumber,
totalFees: BigNumber,