-
Notifications
You must be signed in to change notification settings - Fork 71
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
flash loans #95
flash loans #95
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## upcoming #95 +/- ##
============================================
- Coverage 81.85% 81.37% -0.48%
============================================
Files 32 33 +1
Lines 7681 8633 +952
============================================
+ Hits 6287 7025 +738
- Misses 1394 1608 +214 ☔ View full report in Codecov by Sentry. |
* make clock sysvar optional * remove clock from instructions
msg!("Instruction: Flash Loan"); | ||
process_flash_loan(program_id, amount, accounts) | ||
msg!("This instruction has been deprecated. Use FlashBorrowReserveLiquidity instead"); | ||
Err(LendingError::DeprecatedInstruction.into()) |
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.
i guess will change other place to do like this too
Port of #70 + some tweaks
Quick Summary: You can now flash borrow funds from a reserve in instruction i as long as you flash repay the funds + fees in instruction j where i < j.
Couple of things to note: