tslint be trippin
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user