-
Notifications
You must be signed in to change notification settings - Fork 266
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
Error run on LINK/UNI #9
Comments
Hey im not sure whats happening but yeah there is an issue with the liquidity, Then I found these posts, maybe are usefull haha to be honest im not sure (sorry Im out of time). |
thanks @6eer. |
computeProfitMaximizingTrade has an issue with the reserves it's returning the amount bigger than the liquidity . |
Hi,
The demo works well, but when I tried with pair LINK/UNI, got error
revert ds-math-sub-underflow
(the output is pasted at the bottom).Added
console.log
aroundcomputeProfitMaximizingTrade
andgetAmountIn
, theamountIn
looks weird.Could you please take a look? Thanks.
btw, I tried with WETH/WBTC the
amountIn
seems good (no arbitrage opportunity as expected). Possibly a problem with liquidity?This is my .env:
This is the bot output:
The text was updated successfully, but these errors were encountered: