Skip to content

feat: support transfer with different precision #8

@joroshiba

Description

@joroshiba

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions