Skip to content

[BUG] ERC20 prepare_deposit_collection calculates fees in token base factor, token deposits not working #3048

@sh4dowb

Description

@sh4dowb

ETH: 18 subunits
USDT: 6 subunits

Fee amount(902597579.715) is greater than min collection amount(20.0).

Dividing the wanted fee amount by remaining 10^12 results in 0.000902598, which is around the actual ETH fee required (~1 USD)
But convert_from_base_amount function does not calculate fee with parent currency, resulting in this

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