Giter Site home page Giter Site logo

0xpilou / debtflashswap Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 1.0 1005 KB

Smart Contract to easily swap debt on AAVE Lending Markets

License: GNU General Public License v3.0

JavaScript 47.84% Solidity 52.16%
defi solidity aave aave-protocol flashloan blockchain uniswap lending

debtflashswap's Introduction

Debt Flash Swap Smart Contract

Smart Contract to easily swap debt on AAVE Lending Markets

debtflashswap's People

Contributors

0xpilou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

briliantcoin

debtflashswap's Issues

Add support for AAVE stable debt

Add support for AAVE stable interest rate debts :

Right now, only AAVE variable debt are supported by the tool as Polygon Market and Avalanche Market only provide variable interest loan.

In the event of AAVE enabling stable interest rate loan on these market, the tool shall support swap the debt for this type of loans.

Solution / Hints :

  • Add a '_interestRate' parameter to the functions
  • Create new function specifically for stable interest rate

Add multiple UNISWAP_FACTORY contract

Description :

Currently, only 1 Uniswap Factory contract is supported.
1 - In the event of a low liquidity pair (not very likely as AAVE supported assets are big caps) the exchange rate could present a large slippage
2 - Could find better exchange rate in another Uniswap Factory compare to the hardcoded Uniswap Factory

Solution / Hint :

  • Add a function that get and compare the exchange rates and return the best route for the swapping
  • Let the users choose which Uniswap Factory they want to use ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.