aurora-is-near / rainbow-bridge-frontend

🌈 Send ERC20 tokens from Ethereum to NEAR
https://rainbowbridge.app
69 stars 31 forks source link

Make bridge token's metadata on NEAR customizable by the user who deployed the token #300

Open think-in-universe opened 3 years ago

think-in-universe commented 3 years ago

Description

We have some cases that the bridge token's NEP141 metadata (e.g. symbol, name, icon, decimals, etc.) needs to be customized when the token is bridged from an ERC20 token ETH.

While set_metadata is only allowed by the bridge token factory, it might be helpful under some circumstances for the account who deployed the token to be able to set metadata.

However, this may bring some confusion or security risks, if attackers try to create mismatched pairs to mislead users.

Please review whether this is possible from frontend and connectors.

mfornet commented 3 years ago

https://github.com/aurora-is-near/rainbow-token-connector/pull/73 will add the functionality to update metadata from a trusted services and https://github.com/aurora-is-near/rainbow-token-connector/pull/71 from trustless parties.