classic-ui/components/withdraw/RelayerTotal.vue

37 lines
771 B
Vue
Raw Permalink Normal View History

2022-04-22 06:05:56 +03:00
<template>
<div class="field">
<div class="label">
{{ $t('relayerTotal.label') }}
</div>
<div class="withdraw-data">
<div class="withdraw-data-item">
{{ $t('relayerTotal.name') }}
<span>{{ relayerName }}</span>
</div>
<div class="withdraw-data-item">
{{ $t('relayerTotal.fee') }}
<span>{{ selectedRelayer.tornadoServiceFee }}%</span>
</div>
</div>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
computed: {
...mapState('relayer', ['selectedRelayer']),
relayerName() {
const { name, url } = this.selectedRelayer
if (name === 'custom') {
return url.replace(/http(s)?|:|\//g, '')
}
return name
}
}
}
</script>