@0x/contracts-staking
: Fix linter errors.
This commit is contained in:
parent
51b460d432
commit
89bd42de04
@ -86,7 +86,6 @@ blockchainTests('Configurable Parameters', env => {
|
|||||||
describe('rewardDelegatedStakeWeight', () => {
|
describe('rewardDelegatedStakeWeight', () => {
|
||||||
it('throws when > PPM_100_PERCENT', async () => {
|
it('throws when > PPM_100_PERCENT', async () => {
|
||||||
const params = {
|
const params = {
|
||||||
// tslint:disable-next-line restrict-plus-operands
|
|
||||||
rewardDelegatedStakeWeight: constants.PPM_100_PERCENT + 1,
|
rewardDelegatedStakeWeight: constants.PPM_100_PERCENT + 1,
|
||||||
};
|
};
|
||||||
const tx = setParamsAndAssertAsync(params);
|
const tx = setParamsAndAssertAsync(params);
|
||||||
|
@ -323,7 +323,6 @@ blockchainTests('Staking Pool Management', env => {
|
|||||||
|
|
||||||
const makerAddresses = users.slice(
|
const makerAddresses = users.slice(
|
||||||
1,
|
1,
|
||||||
// tslint:disable-next-line restrict-plus-operands
|
|
||||||
stakingConstants.DEFAULT_PARAMS.maximumMakersInPool.toNumber() + 2,
|
stakingConstants.DEFAULT_PARAMS.maximumMakersInPool.toNumber() + 2,
|
||||||
);
|
);
|
||||||
const makers = makerAddresses.map(makerAddress => new MakerActor(makerAddress, stakingApiWrapper));
|
const makers = makerAddresses.map(makerAddress => new MakerActor(makerAddress, stakingApiWrapper));
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"extends": ["@0x/tslint-config"],
|
"extends": ["@0x/tslint-config"],
|
||||||
"rules": {
|
"rules": {
|
||||||
"custom-no-magic-numbers": false
|
"custom-no-magic-numbers": false,
|
||||||
|
"restrict-plus-operands": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user