Giter Site home page Giter Site logo

aave-starknet-project / aave-starknet-bridge Goto Github PK

View Code? Open in Web Editor NEW
44.0 44.0 23.0 2.77 MB

Bridge aTokens to Starknet

License: MIT License

Solidity 44.61% TypeScript 25.60% Shell 1.34% Dockerfile 0.18% Cairo 19.12% Makefile 0.15% Ruby 9.01%

aave-starknet-bridge's People

Contributors

achab avatar eboadom avatar hsouf avatar jorikschellekens avatar swapnilraj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

aave-starknet-bridge's Issues

Create release/v1 branch

Once PR #120 is merged, we should do three things:

  • add addresses of deployed contracts to README,
  • create a branch named release/v1 from where contracts have been deployed on Ethereum and Starknet,
  • and create a release tag associated to this branch.

Rewards withdrawal

Currently with drawing rewards faces the problem that the rewards are accrued from a number of different sources but indicated by a single token. As a result a user bridging their rewards back to L1 may have accrued it from any collection of pools.

The bridge will own all the rewards across all the staticATokens required to cover the bridged rewards however it won't know which staticAToken to claim rewards from in order to cover the value of the rewards bridged.

There are a number of strategies here:

  1. Allow the bridging user to specify which tokens to claim from:
    - Any amount of rewards which couldn't be claimed by the addresses passed can be added onto the recipients unclaimed rewards
  2. Maintain an ordered list of l1 tokens to claim against and do so until the total reward is collected
  3. Same as 2 but do something a little smarter like selecting a random order for the tokens to claim against

On the Cairo file in L1 folder

In this file , why you set BRIDGE_REWARD_MESSAGE = 1 and the other message as 2 ?

How do your team think about such message passing ?

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.