aboutsummaryrefslogtreecommitdiffstats
path: root/packages/asset-buyer/src/constants.ts
blob: 53fe891603fe6a3f65c9bf84d6351ffc31b21842 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { BigNumber } from '@0xproject/utils';

import { BuyQuoteRequestOpts } from './types';

const DEFAULT_BUY_QUOTE_REQUEST_OPTS: BuyQuoteRequestOpts = {
    feePercentage: 0,
    forceOrderRefresh: false,
    slippagePercentage: 0.2, // 20% slippage protection
};

export const constants = {
    ZERO_AMOUNT: new BigNumber(0),
    NULL_ADDRESS: '0x0000000000000000000000000000000000000000',
    MAINNET_NETWORK_ID: 1,
    DEFAULT_ORDER_REFRESH_INTERVAL_MS: 10000, // 10 seconds
    ETHER_TOKEN_DECIMALS: 18,
    DEFAULT_BUY_QUOTE_REQUEST_OPTS,
};