Open cenwadike opened 1 year ago
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/
bridge-token-factory/
rebase_event.rs
lib.rs
rebase()
finish_rebase()
to bridge-token/lib.rs
bridge-token/lib.rs
ft_rebase()
in bridge-common/
bridge-common/
result_types.rs
RESULT_PREFIX_REBASE
struct Rebase{}
impl Rebase{}
The following changes will be made:
To bridge-common/
in prover.rs
prover.rs
struct EthEvent{ rebaser_address, … }
impl EthEvent{ // add rebaser_address }
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/
rebase_event.rs
lib.rs
, add:rebase()
finish_rebase()
to
bridge-token/lib.rs
ft_rebase()
in
bridge-common/
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 }