Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
Add voting power change log
Browse files Browse the repository at this point in the history
  • Loading branch information
bonustrack committed Jul 24, 2020
1 parent f469ef2 commit eed5f66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Modal/VotingPower.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<UiModal :open="open" @close="$emit('close')">
<h3 class="m-4 mb-0 text-center">Your voting power</h3>
<div class="m-4 p-4 border rounded-2 text-white">
<div class="m-4 mb-5 p-4 border rounded-2 text-white">
<div class="d-flex mb-3 pb-2 border-bottom" style="font-size: 22px;">
<b v-text="'Total voting power'" class="flex-auto text-gray mr-1" />
<b>{{ _numeral(gov.votingPower) }} {{ gov.namespace.symbol }} </b>
Expand Down
2 changes: 2 additions & 0 deletions src/store/modules/gov.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,10 @@ const actions = {
),
votingPowerByPools: myVotingPower[address]
});
console.log('My voting power', myVotingPower, address, state.snapshot, state.namespace.token);
return myVotingPower;
} catch (e) {
console.log('Failed to get my voting power', e, address, state.snapshot, state.namespace.token);
commit('GET_MY_VOTING_POWER_FAILURE', e);
}
}
Expand Down

0 comments on commit eed5f66

Please sign in to comment.