You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context and scope
Some ERC20 contracts have decimals of something other than 18. Currently, sending 1 full token from an ERC20 contract with 24 decimals, will result in 10^6 full tokens being minted on the destination. We should make this configurable.
Discussion and alternatives
We decided that this should be handled on the destination chain only, as the source chain does not need to know the implementation specifics of the destination, and with this implementation, we can unify the interfaces among all the different token bridge contracts.
Open questions
The text was updated successfully, but these errors were encountered:
Context and scope
Some ERC20 contracts have
decimals
of something other than18
. Currently, sending 1 full token from an ERC20 contract with24
decimals, will result in10^6
full tokens being minted on the destination. We should make this configurable.Discussion and alternatives
We decided that this should be handled on the destination chain only, as the source chain does not need to know the implementation specifics of the destination, and with this implementation, we can unify the interfaces among all the different token bridge contracts.
Open questions
The text was updated successfully, but these errors were encountered: