-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.ts
32 lines (27 loc) · 921 Bytes
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { Config as BtcConfig } from '@jelly-swap/bitcoin';
import { Config as Erc20Config } from '@jelly-swap/erc20';
export const BTC_CONFIG = () => {
const SWAP_EXPIRATION_TIME = 86400; // 1 DAY
return {
...BtcConfig(SWAP_EXPIRATION_TIME),
receiverAddress: 'LIQUIDITY_PROVIDER_ADDRESS',
providerUrl: 'https://spacejelly.network/btc/api/v1/btc/',
};
};
export const DAI_CONFIG = () => {
const TokenConfig = {
DAI: {
network: 'DAI',
decimals: 18,
address: '0x6b175474e89094c44da98b954eedeac495271d0f',
},
};
const AddressToToken = {
'0x6b175474e89094c44da98b954eedeac495271d0f': TokenConfig.DAI,
};
return {
...Erc20Config('DAI', TokenConfig, AddressToToken),
receiverAddress: 'LIQUIDITY_PROVIDER_ADDRESS',
providerUrl: 'INFURA_URL',
};
};