Giter Site home page Giter Site logo

ktokens's Introduction

kTokens

Wrapped aTokens with non-increasing balance.

Explanation Video: https://youtu.be/xuU4nB3IOgU

Problem with aToken bridge via ShuttleFlow (to Conflux)

aTokens are interest bearing tokens. Their balance keeps on increasing inside the user's wallet with each passing second.

Let's take an example where user wants to move aToken (aDAI) from Ethereum to Conflux:

  1. User deposits 100 aDAI to ShuttleFlow's deposit contract.
  2. Corresponding 100 aDAI gets minted on Conflux blockchain.
  3. User enjoys high transaction speeds with aDAI on Conflux.
  4. As ShuttleFlow has the custody of aDAI now, so during this it accumulates 20 aDAI as interest.
  5. User burns 100 aDAI on Conflux, to receive 100 aDAI on Ethereum.
  6. The 20 aDAI (accumulated interest) gets locked in the ShuttleFlow deposit contract.

Solution: kTokens!!!

  1. The user deposits their aTokens into the corresponding kToken pool. Eg;: Deposit aDAI to mint kDAI.
  2. These kDAI act similar to Compound's cTokens. The amount of tokens remain constant, but the underlying assets keeps increasing!
  3. The ShuttleFlow bridge works perfectly fine now.
  4. When the user burns their initial 100 kDAI, they get back 120 aDAI (100 initial + 20 interest).

ktokens's People

Contributors

apoorvlathey avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

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.