fix: calculate optimism l1 fee

This commit is contained in:
Danil Kovtonyuk 2022-05-27 00:04:27 +10:00
parent fa3d089e44
commit dc5a72b85a
6 changed files with 235 additions and 10 deletions

View file

@ -17,7 +17,7 @@
</div>
<div v-if="withdrawType === 'relayer'" class="withdraw-data-item">
{{ $t('networkFee') }}
<span>{{ networkFeeInEth }} {{ networkCurrency }}</span>
<span>{{ toDecimals(networkFee, null, 6) }} {{ networkCurrency }}</span>
</div>
<div v-if="withdrawType === 'relayer'" class="withdraw-data-item">
{{ $t('relayerFee') }}
@ -76,9 +76,6 @@ export default {
...mapGetters('token', ['toDecimals', 'fromDecimals']),
...mapGetters('application', ['networkFee']),
...mapGetters('price', ['tokenRate']),
networkFeeInEth() {
return fromWei(this.networkFee)
},
relayerFee() {
const { amount } = this.selectedStatistic
const total = toBN(this.fromDecimals(amount.toString()))