poly-flash icon indicating copy to clipboard operation
poly-flash copied to clipboard

Maximum Flashloan amount on dodo

Open dani-s-92 opened this issue 2 years ago • 1 comments

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

dani-s-92 avatar Sep 26 '22 14:09 dani-s-92

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.

yuichiroaoki avatar Oct 16 '22 04:10 yuichiroaoki