-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsts.js
67 lines (58 loc) · 2.1 KB
/
consts.js
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
module.exports = Object.freeze({
TAPOS: {
blocksBehind: 3,
expireSeconds: 40,
},
ALCOR_CONTRACT: "alcordexmain",
ALCOR_ENDPOINT: `https://alcor.exchange/api/v2/swapRouter/getRoute?trade_type=EXACT_INPUT&input=%s-%s&output=%s-%s&amount=%d&slippage=0.30&receiver=alcordexfund&maxHops=2`,
// endpoints to grab transactions from
HYPERION_ENDPOINTS: [
"https://api.wax.greeneosio.com/v2",
"https://api.wax.alohaeos.com/v2",
"https://wax.blokcrafters.io/v2",
"https://wax.cryptolions.io/v2",
"https://wax.dapplica.io/v2",
"https://wax.eu.eosamsterdam.net/v2",
"https://hyperion-wax-mainnet.wecan.dev/v2",
"https://api.waxeastern.cn/v2",
"https://hyperion-wax-mainnet.wecan.dev/v2",
"https://wax.defibox.xyz/v2",
"https://api.waxeastern.cn/v2",
"https://api.wax.liquidstudios.io/v2",
"https://wax.eu.eosamsterdam.net/v2",
"https://hyperion-wax-mainnet.wecan.dev/v2",
"https://wax.defibox.xyz/v2",
"https://api.wax.liquidstudios.io/v2",
"https://api.waxeastern.cn/v2",
"https://wax.defibox.xyz/v2",
"https://wax.dapplica.io/v2",
"https://waxapi.ledgerwise.io/v2",
],
// alcorammswap contract to send tokens to
ALCORAMMSWAP_CONTRACT: "swap.alcor",
// table data for fetching alcorammswap
ALCORAMMSWAP_TABLE: {
code: "swap.alcor",
scope: "swap.alcor",
table: "pools",
lower_bound: 0, // changes
upper_bound: 0, // changes
},
// swap fees
FEES: 0.3,
// key to get orders from orderbook in descending order by price
SORTED_ORDER_KEY: "i128",
// sides
side: { sell: "sell", buy: "buy" },
// credential to connect to mariadb
MEMENTO_CREDENTIALS: {
host: "memento.eu.eosamsterdam.net",
user: "memento_ro",
password: "memento_ro",
database: "memento_wax",
port: 3350,
},
// time in which a transaction can be confirmed (milliseconds)
// must be greater than expireSeconds in TAPOS
EXPIRE_TIME: 44008,
});