This repo's scripts for uniswap/sushiswap flashloans will now be located here.
pedrobergamini / uni-sushi-flashloaner Goto Github PK
View Code? Open in Web Editor NEWOff-chain node.js flash loans handler.
Off-chain node.js flash loans handler.
This repo's scripts for uniswap/sushiswap flashloans will now be located here.
Hi Pedro, when it comes to run the application and the profitable value is true
I get the ERROR:
reason: 'cannot estimate gas; transaction may fail or may require manual gas limit',
code: 'UNPREDICTABLE_GAS_LIMIT',
Could you please help me out?
reason: 'cannot estimate gas; transaction may fail or may require manual gas limit',
code: 'UNPREDICTABLE_GAS_LIMIT',
anyone have the same issue?
Hello,
The prices retrieved with the code differs from https://app.sushi.com/swap while the blocknumber is the same.
Any reason why?
HI , When I read your Code( uni-sushi-flashloaner/index.js ), I have a problem that I don't understand in Line 68 : Why the "spread" need subtract 0.6 ? How can I get the result 0.6 ?
Thanks !
Olá @pedrobergamini
existe algum documento explicativo do seu código ?
estou aprendendo a espeito mas tenho algumas dúvidas, por exemplo na linha 68:
const spread = Math.abs((priceSushiswap / priceUniswap - 1) * 100) - 0.6;
por que você usa -0,6 na fórmula ?
ficaria grato pela ajuda
Struggling to understand this comparison:
const shouldTrade = spread > (
(shouldStartEth ? ETH_TRADE : DAI_TRADE)
/ Number(
ethers.utils.formatEther(uniswapReserves[shouldStartEth ? 1 : 0]),
));
It seems that we should trade when the ratio of the ETH_TRADE (or DAI_TRADE) in to the reserve in uniswap is less than the spread. That is,
Why is this comparison necessary?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.