Skip to content

Implement a connector for AMPL token #206

@cenwadike

Description

@cenwadike

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 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions