Skip to content

Warn the user if a token transfer could exceed the limit on the token bridge  #178

@akolotov

Description

@akolotov

As part of omni/tokenbridge-contracts#117 the new functionality was introduced. It does not allow accepting the tokens relays if the amount of tokens is above the limits.

Test case for the erc20-to-native bridge mode:

  1. set the daily limit for the bridge in 50 ether.
  2. try to transfer 55 tokens from the Foreign chain to the Home chain by using the Bridge UI
    The results: the Bridge UI warns the end user that even if the transaction with transfer will not be reverted, relaying of tokens will not mint new coins on the Home chain since the transfer amount exceeds the limit.

Similar is applicable for erc20-to-erc20 bridge.

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