`@0x/contracts-staking`: Merge `exchange_fees` unit tests into `protocol_fees` unit tests. `@0x/contracts-staking`: Remove `ProtocolFeeActor` and any use of it. `@0x/contracts-staking`: Remove unused constants. `@0x/contracts-staking`: Move WETH assertion constructor into `MixinDeploymentConstants`. `@0x/contracts-staking`: Add more unit tests.
22 lines
1.0 KiB
TypeScript
22 lines
1.0 KiB
TypeScript
import { constants as testConstants } from '@0x/contracts-test-utils';
|
|
import { BigNumber } from '@0x/utils';
|
|
|
|
const TWO_WEEKS = 14 * 24 * 60 * 60;
|
|
export const constants = {
|
|
MAX_UINT_64: new BigNumber(2).pow(256).minus(1),
|
|
TOKEN_MULTIPLIER: testConstants.DUMMY_TOKEN_DECIMALS,
|
|
INITIAL_POOL_ID: '0x0000000000000000000000000000000100000000000000000000000000000000',
|
|
SECOND_POOL_ID: '0x0000000000000000000000000000000200000000000000000000000000000000',
|
|
NIL_POOL_ID: '0x0000000000000000000000000000000000000000000000000000000000000000',
|
|
NIL_ADDRESS: '0x0000000000000000000000000000000000000000',
|
|
INITIAL_EPOCH: new BigNumber(0),
|
|
DEFAULT_PARAMS: {
|
|
epochDurationInSeconds: new BigNumber(TWO_WEEKS),
|
|
rewardDelegatedStakeWeight: new BigNumber(0.9 * 1e6), // 90%
|
|
minimumPoolStake: testConstants.DUMMY_TOKEN_DECIMALS.times(100), // 100 ZRX
|
|
maximumMakersInPool: new BigNumber(10),
|
|
cobbDouglasAlphaNumerator: new BigNumber(1),
|
|
cobbDouglasAlphaDenomintor: new BigNumber(2),
|
|
},
|
|
};
|