flashbots / simple-arbitrage

Example arbitrage bot using Flashbots
1.97k stars 743 forks source link

Why is UniswappyV2EthPair.uniswapInterface a UNISWAP_PAIR_ABI contract on WETH_ADDRESS? #37

Open hengruo opened 2 weeks ago

hengruo commented 2 weeks ago

code src/UniswappyV2EthPair.ts line 25.

static uniswapInterface = new Contract(WETH_ADDRESS, UNISWAP_PAIR_ABI);

WETH_ADDRESS is an ERC20 token, how can it match UNISWAP_PAIR_ABI?

ignoracenfly commented 2 weeks ago

您的邮件已经收到。谢谢