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
Flashloan for token lending #1444
Conversation
Completed Flash Loan.
All the tests has passed except the one that involves loading the program via
Any idea? I tested it locally against |
Co-authored-by: Jordan Sexton <jordan@jordansexton.com>
Co-authored-by: Jordan Sexton <jordan@jordansexton.com>
Co-authored-by: Jordan Sexton <jordan@jordansexton.com>
…ry into flashloan
Hi @jordansexton , I have added a test for the failure case where the fund is 1 less than expected and have fixed other comments and improved on the suggestion that you gave. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@leonardgee solid. This looks like it'll be ready to merge this week?
Co-authored-by: Jordan Sexton <jordan@jordansexton.com>
Co-authored-by: Jordan Sexton <jordan@jordansexton.com>
Co-authored-by: Jordan Sexton <jordan@jordansexton.com>
Co-authored-by: Jordan Sexton <jordan@jordansexton.com>
…ry into flashloan
Co-authored-by: Jordan Sexton <jordan@jordansexton.com>
Co-authored-by: Jordan Sexton <jordan@jordansexton.com>
Co-authored-by: Jordan Sexton <jordan@jordansexton.com>
I hope I can get it merge soon... It's been a long journey. |
@leonardgee Thanks for all your hard work on this! This will be a great feature to use. |
Sorry that I didn't run the |
This PR adds flash loan to the
token-lending
program.It also supports collecting fee's from flash loan which is set when
initReserve
.Fixes: #997