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

Maximum Flashloan amount on dodo #58

Open
dani-s-92 opened this issue Sep 26, 2022 · 1 comment
Open

Maximum Flashloan amount on dodo #58

dani-s-92 opened this issue Sep 26, 2022 · 1 comment

Comments

@dani-s-92
Copy link

Hello,

you do not check the maximum flashloan amount you can get from dodo if I read your code correctly.
If I am wrong can u tell me where you do that?

If not it would be necessary to do it I think, because now your trade can get reverted because the flashloan you are asking for is bigger than the max available flashloan isn't it?

Best regards

@yuichiroaoki
Copy link
Owner

Yes, correct. You should check the token balance of the dodo pool you're going to borrow from.
However, maybe using balancer flashloan is better than dodo in terms of every aspect like pool size, kinds of tokens available, contract interface, etc.

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