bridge-ui icon indicating copy to clipboard operation
bridge-ui copied to clipboard

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

Open akolotov opened this issue 6 years ago • 0 comments

As part of https://github.com/poanetwork/poa-bridge-contracts/pull/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.

akolotov avatar Jan 03 '19 20:01 akolotov