Skip to content
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

how does one compute the amount to be repaid? #5

Open
vd1 opened this issue Dec 8, 2020 · 0 comments
Open

how does one compute the amount to be repaid? #5

vd1 opened this issue Dec 8, 2020 · 0 comments

Comments

@vd1
Copy link

vd1 commented Dec 8, 2020

     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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant