EscanBE / evermint

Evermint is a fork of open source Evmos, maintains bug fixes, customization and enable developers to fork and transform to their chain, fully customized naming, in just 2 steps. For research and development purpose.
GNU Lesser General Public License v3.0
2 stars 3 forks source link

Problem: Incompatible address derivation leading to unrecoverable funds sent via IBC #79

Open VictorTrustyDev opened 8 months ago

VictorTrustyDev commented 8 months ago

Not a bug

Problem:

Every Ethermint-based/Evmos-based chains are using eth_secp256k1 and Coin Type=60 so the delivered address will be different with the other non-EVM compatible chains. Two cases can happens:

But, this won't usually happens, can say rare due just from mistake of front-end developers or sometime user when manually convert address.

Solution:

Can choose one of the following options:

  1. Re-use x/recovery module from Evmos.
  2. Implement a light-weighted module that invokes "refund-to-sender" in certain conditions.
  3. Just ignore it.

In case of decided to implement a recover funds method, the following condition should be match.