Near-One / rainbow-token-connector

ERC-20/NEP-141 Token Connector for Rainbow Bridge
62 stars 18 forks source link

Bridging native NEAR tokens to Ethereum - preparing for release #238

Closed kiseln closed 6 months ago

kiseln commented 7 months ago

Overview

This feature was implemented some time ago but we just want to release it now. We will bring the code up-to-date and review it, then submit for an audit.

Updates

Other changes

BridgeToken access control was changed to Ownable. It is only meant to be manipulated by the factory, therefore more complex access control mechanism is not required.

Pauseability removed for BridgeToken. Factory itself can be paused in case something goes wrong or vulnerability is found. Not sure what would be the use-case of pausing individual tokens. Let's see, if we can think of a good reason, then we can revert this change

Metadata is now set during token creation. There isn't a lot of sense doing it in 2 steps. It can be later updated by the admin if requested by the token owners.