Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of Smart Contracts #23

Open
RickSanchez1974 opened this issue Dec 13, 2021 · 1 comment
Open

Use of Smart Contracts #23

RickSanchez1974 opened this issue Dec 13, 2021 · 1 comment

Comments

@RickSanchez1974
Copy link

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

@dhensen
Copy link

dhensen commented Jan 6, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants