[Flashloans] Flash loan contract
pmolina opened this issue · comments
- Export a function for liquidation with same parameters as the liquidation function and also which market is borrower's debt
- Borrow from a money market the same amount and asset as borrower's debt
- Call Market's liquidate function
- Swap the amount of the asset seized from borrower's collateral to the loan asset
- Repay money market