Aggregated-Flashloan icon indicating copy to clipboard operation
Aggregated-Flashloan copied to clipboard

how does one compute the amount to be repaid?

Open vd1 opened this issue 4 years ago • 0 comments

     repay(); // ***Step 2: Repay the aggregated flash loan + above fees
    /* Remember to factor in:
        + 6bps in Kollateral aggregation fee
        + 9bps in native Aave flash loan fee
        + 2 Wei in native DyDx floan loan fee
    */

it seems the repay function would need to know how the loan was routed - ie the fraction of tokenAmount sent to aave or dydx? Other question what happens if we repay too much?

vd1 avatar Dec 08 '20 11:12 vd1