`@0x/contract-staking`: Add `DEFAULT_HYPER_PARAMETERS` to test constants. `@0x/contract-staking`: Appease linter gods. `@0x/contract-staking`: Remove `setCobbDouglasAlpha()` tests. `@0x/contract-staking`: Add `tune()` tests.
		
			
				
	
	
		
			23 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			23 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),
 | 
						|
    CHAIN_ID: 1,
 | 
						|
    DEFAULT_HYPER_PARAMETERS: {
 | 
						|
        epochDurationInSeconds: new BigNumber(TWO_WEEKS),
 | 
						|
        rewardDelegatedStakeWeight: new BigNumber(0.9 * 1e6), // 90%
 | 
						|
        minimumPoolStake: testConstants.DUMMY_TOKEN_DECIMALS.times(100), // 100 ZRX
 | 
						|
        maxMakersInPool: new BigNumber(10),
 | 
						|
        cobbDouglasAlphaNumerator: new BigNumber(1),
 | 
						|
        cobbDouglasAlphaDenomintor: new BigNumber(2),
 | 
						|
    },
 | 
						|
};
 |