simple-arbitrage icon indicating copy to clipboard operation
simple-arbitrage copied to clipboard

Use of Smart Contracts

Open RickSanchez1974 opened this issue 4 years ago • 1 comments

Hey there, might be a dump question. But can anybody explain why we need to use our own deployed Smart Contracts and don't just connect a wallet with Web3.js or Ethers and call Uniswap etc directly? Cheers

RickSanchez1974 avatar Dec 13 '21 10:12 RickSanchez1974

It's explained in this video by Robert Miller: https://youtu.be/wn8r674U1B4?t=744

But basically because you need to query a lot of data from the blockchain. If you do it one-by-one via web3/ethers, it takes too long. Instead the contract you deploy has a function that does it on chain in batches. Then you call that function, and you get a batch of let's say 100 or 1000 instead of doing them one by one.

dhensen avatar Jan 06 '22 11:01 dhensen