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

Implement a connector for AMPL token #206

Open
cenwadike opened this issue Mar 13, 2023 · 0 comments
Open

Implement a connector for AMPL token #206

cenwadike opened this issue Mar 13, 2023 · 0 comments

Comments

@cenwadike
Copy link

cenwadike commented Mar 13, 2023

Hello,

I would like to Implement a connector for AMPL token.

It is will have these features:

  • Contract on Solidity/Ethereum side that can lock and unlock AMPL.

  • When AMPL gets unlock, the amount should be correct given possible rebases that have happened

  • Contract on NEAR side that can mint/burn nAMPL.

  • Contract on NEAR side would also receive rebase events from AMPL ERC-20 contract and adjust total supply as well.

The following additions will be made:

  • In bridge-token-factory/

    • add rebase_event.rs
    • to lib.rs, add:
      • rebase()
      • finish_rebase()
  • to bridge-token/lib.rs

    • add ft_rebase()
  • in bridge-common/

    • to result_types.rs add:
      • RESULT_PREFIX_REBASE
      • struct Rebase{}
      • impl Rebase{}

The following changes will be made:

  • To bridge-common/
    • in prover.rs
      • struct EthEvent{ rebaser_address, … }

      • impl EthEvent{ // add rebaser_address }

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