omni / bridge-ui

UI for TokenBridge, an interoperability solution between Ethereum networks for native and ERC tokens
https://bridge.poa.net/
41 stars 51 forks source link

Extend the statistic tab with information about fee collected #210

Closed akolotov closed 5 years ago

akolotov commented 5 years ago

Since the first bridge where reward distributed among the bridge validators was deployed there is a need to get information about overall fee collected on both sides of the bridge.

Consider to extend the statistic tab with the corresponding info:

image

There should be two columns in additional line in the "Bridge Statistics" section: Deposit fees, Withdrawal fees. The fees should be displayed with usage of the corresponding coins or tokens, e.g. for the ETC-WETC bridge, deposit fees should be in WETC whereas withdrawal fees should be in ETC.

This information should be displayed only if the bridge contracts are configured to use the Fee manager.

If for some direction the fees are not taken, the corresponding column should no be displayed.

Tests should cover all thee bridge modes and all possible configurations: there are Fee Managers on both sides of the bridge, there is one Fee Manager that covers both directions, there is a Fee Manager as so the fees are taken for the transaction in one direction only.

akolotov commented 5 years ago

Available in the release 2.1.0