tslint be trippin

This commit is contained in:
Michael Zhu
2020-01-09 10:37:29 -08:00
parent 4707a46561
commit fecd0b809e

View File

@@ -102,7 +102,7 @@ export function PoolOperatorMixin<TBase extends Constructor>(Base: TBase): TBase
const assertion = invalidCreateStakingPoolAssertion(this.actor.deployment); const assertion = invalidCreateStakingPoolAssertion(this.actor.deployment);
while (true) { while (true) {
const operatorShare = Pseudorandom.integer( const operatorShare = Pseudorandom.integer(
stakingConstants.PPM + 1, (stakingConstants.PPM as number) + 1,
constants.MAX_UINT32, constants.MAX_UINT32,
Distributions.Kumaraswamy(0.2, 0.2), Distributions.Kumaraswamy(0.2, 0.2),
).toNumber(); ).toNumber();
@@ -137,7 +137,7 @@ export function PoolOperatorMixin<TBase extends Constructor>(Base: TBase): TBase
yield undefined; yield undefined;
} else { } else {
const operatorShare = Pseudorandom.integer( const operatorShare = Pseudorandom.integer(
stakingPools[poolId].operatorShare + 1, (stakingPools[poolId].operatorShare as number) + 1,
constants.MAX_UINT32, constants.MAX_UINT32,
Distributions.Kumaraswamy(0.2, 0.2), Distributions.Kumaraswamy(0.2, 0.2),
).toNumber(); ).toNumber();