-
Notifications
You must be signed in to change notification settings - Fork 38
/
main.example.js
50 lines (45 loc) · 1.23 KB
/
main.example.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
const dotenv = require('dotenv');
const ethers = require('ethers');
const { initiate } = require('./init');
dotenv.config();
const optimismProvider = new ethers.JsonRpcProvider(
process.env.OPTIMISM_RPC_URL
);
const networkMeta = {
optimism: {
provider: optimismProvider,
},
};
const cases = [
{
network: 'optimism',
pair_identifier: 'optimism_weth_op',
platform: 'uniswap_v3',
tokenIn: 'wETH',
tokenInAddress: '0x4200000000000000000000000000000000000006',
tokenInDecimals: 18,
tokenOut: 'OP',
tokenOutAddress: '0x4200000000000000000000000000000000000042',
tokenOutDecimals: 18,
isFlipped: false,
amountInIfEntry: 1,
poolFee: 0.3 * 10000,
address: '0x68F5C0A2DE713a54991E01858Fd27a3832401849',
},
{
network: 'optimism',
pair_identifier: 'optimism_weth_op',
platform: 'sushiswap_v3',
tokenIn: 'wETH',
tokenInAddress: '0x4200000000000000000000000000000000000006',
tokenInDecimals: 18,
tokenOut: 'OP',
tokenOutAddress: '0x4200000000000000000000000000000000000042',
tokenOutDecimals: 18,
isFlipped: false,
amountInIfEntry: 1,
poolFee: 0.3 * 10000,
address: '0x58b2f113244ddc9332c46af25bc223873e68ff3d',
},
];
initiate(networkMeta, cases);