init
This commit is contained in:
commit
44f31f8b9f
402 changed files with 47865 additions and 0 deletions
36
components/withdraw/RelayerTotal.vue
Normal file
36
components/withdraw/RelayerTotal.vue
Normal file
|
@ -0,0 +1,36 @@
|
|||
<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>
|
Loading…
Add table
Add a link
Reference in a new issue