omni / tokenbridge

Mono repository of Token Bridge (Oracle, Deployment, Monitor). TokenBridge is an interoperability solution between EVM-based networks for assets/data cross chain transfers
http://docs.tokenbridge.net
GNU General Public License v3.0
278 stars 212 forks source link

Support of simple transfers for OmniBridge #428

Open akolotov opened 4 years ago

akolotov commented 4 years ago

Consider to develop a way how the oracle, monitor and ALM should be changed as so the end user could transfer the tokens through the OmniBridge (former multi-token extensions) from the Foreign chain to the Home chain just by performing the ordinary ERC20 transfer call.

This issue is an epic for the changes required to be implemented in all components of the bridge.

k1rill-fedoseev commented 4 years ago

What happens at the oracle?

When user performs a simple call to the transfer/transferFrom method on any ERC20 compatible token, interaction with the AMB bridge is omitted. However, the transferred tokens are being locked in the contract in a similar way as if a user called a relayTokens method, except that UserRequestForAffirmation is not emitted. So, oracle cannot process such transactions in a usual way.

Proposed solution guidelines