simple-arbitrage
simple-arbitrage copied to clipboard
Use of Smart Contracts
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
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.