per-asset fees
This commit is contained in:
@@ -2,7 +2,9 @@ import { ethers } from 'ethers';
|
||||
import { Token } from '@uniswap/sdk-core';
|
||||
import fs from 'fs';
|
||||
|
||||
// Token definitions
|
||||
//
|
||||
// TOKEN DEFINITIONS
|
||||
//
|
||||
const ChainId = {
|
||||
MAINNET: 1
|
||||
};
|
||||
@@ -31,11 +33,18 @@ const USDT_TOKEN= new Token(
|
||||
'USDT'
|
||||
);
|
||||
|
||||
|
||||
//
|
||||
// POOL DEFINITION
|
||||
//
|
||||
|
||||
const tokenA = USDC_TOKEN
|
||||
const tokenB = WETH_TOKEN
|
||||
// Pool ID to fetch pool key from
|
||||
// const POOL_ID = '0x8aa4e11cbdf30eedc92100f4c8a31ff748e201d44712cc8c90d189edaa8e4e47';
|
||||
const POOL_ID = '0xdce6394339af00981949f5f3baf27e3610c76326a700af57e4b3e3ae4977f78d';
|
||||
// const POOL_ID = '0x8aa4e11cbdf30eedc92100f4c8a31ff748e201d44712cc8c90d189edaa8e4e47'; // USDT-USDC 0.0010%
|
||||
// const POOL_ID = '0xdce6394339af00981949f5f3baf27e3610c76326a700af57e4b3e3ae4977f78d'; // USDC-WETH 0.30%
|
||||
const POOL_ID = '0xdce6394339af00981949f5f3baf27e3610c76326a700af57e4b3e3ae4977f78d'; // USDC-WETH 0.05%
|
||||
|
||||
|
||||
// Configuration
|
||||
const QUOTER_ADDRESS = '0x52f0e24d1c21c8a0cb1e5a5dd6198556bd9e1203';
|
||||
|
||||
Reference in New Issue
Block a user