Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
prevetal committed Jan 17, 2024
1 parent 84158b1 commit ff0a6c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
3 changes: 0 additions & 3 deletions src/components/account/Charts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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--) {
Expand Down
6 changes: 3 additions & 3 deletions src/components/modal/ValidatorModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@

<div class="val">
<span>
{{ 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') }}
</span>
/
<span>{{ $filters.toFixed(store.validatorInfo.self_bonded.amount / store.validatorInfo.voting_power * 100, 2) }}%</span>
<span>{{ $filters.toFixed(store.validatorInfo.self_bonded.amount / Math.pow(10, store.networks[store.validatorInfo.network].exponent) / store.validatorInfo.voting_power * 100, 2) }}%</span>
</div>
</div>

Expand All @@ -112,7 +112,7 @@
</div>

<div class="val">
{{ 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') }}
</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions src/components/proposal/ProposalInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@

<div class="total">
{{ $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') }}
</div>
</div>

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ff0a6c8

Please sign in to comment.