diff --git a/src/components/account/Charts.vue b/src/components/account/Charts.vue index 317b685..19ef6af 100644 --- a/src/components/account/Charts.vue +++ b/src/components/account/Charts.vue @@ -104,9 +104,6 @@ groupByDenom = ref([]) - console.log(response) - - // Clean data if(response.liquid && response.liquid.native) { for (let i = response.liquid.native.length - 1; i >= 0; i--) { diff --git a/src/components/modal/ValidatorModal.vue b/src/components/modal/ValidatorModal.vue index 7f23798..c3612ea 100644 --- a/src/components/modal/ValidatorModal.vue +++ b/src/components/modal/ValidatorModal.vue @@ -99,10 +99,10 @@
- {{ new Number($filters.toFixed(store.validatorInfo.self_bonded.amount / Math.pow(10, store.networks[store.validatorInfo.network].exponent), 0)).toLocaleString() }} + {{ new Number($filters.toFixed(store.validatorInfo.self_bonded.amount / Math.pow(10, store.networks[store.validatorInfo.network].exponent), 0)).toLocaleString('en-US') }} / - {{ $filters.toFixed(store.validatorInfo.self_bonded.amount / store.validatorInfo.voting_power * 100, 2) }}% + {{ $filters.toFixed(store.validatorInfo.self_bonded.amount / Math.pow(10, store.networks[store.validatorInfo.network].exponent) / store.validatorInfo.voting_power * 100, 2) }}%
@@ -112,7 +112,7 @@
- {{ new Number($filters.toFixed(store.validatorInfo.voting_power / Math.pow(10, store.networks[store.validatorInfo.network].exponent), 0)).toLocaleString() }} + {{ new Number($filters.toFixed(store.validatorInfo.voting_power, 0)).toLocaleString('en-US') }}
diff --git a/src/components/proposal/ProposalInfo.vue b/src/components/proposal/ProposalInfo.vue index 6023015..7412d7b 100644 --- a/src/components/proposal/ProposalInfo.vue +++ b/src/components/proposal/ProposalInfo.vue @@ -215,7 +215,7 @@
{{ $t('message.proposal_vote_info_total_vote_label') }}: - {{ (props.proposal.VOTE_OPTION_YES + props.proposal.VOTE_OPTION_NO + props.proposal.VOTE_OPTION_NO_WITH_VETO + props.proposal.VOTE_OPTION_ABSTAIN).toLocaleString() }} + {{ (props.proposal.VOTE_OPTION_YES + props.proposal.VOTE_OPTION_NO + props.proposal.VOTE_OPTION_NO_WITH_VETO + props.proposal.VOTE_OPTION_ABSTAIN).toLocaleString('en-US') }}
@@ -423,7 +423,7 @@ function isQuorum() { let result = '' - calcTurnout() > 40 && (props.proposal.tally_no_with_veto / (props.proposal.tally_no + props.proposal.tally_yes + props.proposal.tally_no_with_veto) > 0.334 && (props.proposal.tally_yes / (props.proposal.tally_no + props.proposal.tally_yes + props.proposal.tally_no_with_veto)) > 0.5) + calcTurnout() > 40 && (props.proposal.tally_no_with_veto / (props.proposal.tally_no + props.proposal.tally_yes + props.proposal.tally_no_with_veto) > 0.334 && (props.proposal.tally_yes / (props.proposal.tally_no + props.proposal.tally_yes + props.proposal.tally_no_with_veto)) > 0.5) ? result = true : result = false