The deposit TX currently assumes the precision of bridged asset is equal to native evm asset. In concert with #10 which adds a configuration setting for precision, we should update the asset bridging to support instances where host_precision is less than contract_precision or 18 for native token.
When well than we should scale up the asset by 10 ^ (<evm_precision> - <host_precision>) where evm_precision := <contract_precision> | 18
The deposit TX currently assumes the precision of bridged asset is equal to native evm asset. In concert with #10 which adds a configuration setting for precision, we should update the asset bridging to support instances where
host_precisionis less thancontract_precisionor18for native token.When well than we should scale up the asset by
10 ^ (<evm_precision> - <host_precision>)whereevm_precision := <contract_precision> | 18