-
Notifications
You must be signed in to change notification settings - Fork 119
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
Explicação do código #1
Comments
Hey @andermarce, I'm not involved with this project at all, but My guess is that the -0,6 comes from the UniSwap and SushiSwap fees (0.3% each). So we want the profit spread to be more than 0.6%. Jackson |
anyway it's strange, this formula is based on 0-100 interval and I think it's compared in following rows with a 0-1 value interval. |
@xale76 I had the same exact observation, "spread" begins as a percentage (0 - 100) and later is used as a fraction (0.0 to 1.0). That seems to me a bug. |
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
The text was updated successfully, but these errors were encountered: