Display contribution balances not token balances #107

Merged
bumi merged 3 commits from feature/use-contribution-balances into master 2019-04-24 08:57:25 +00:00
Showing only changes of commit de937aceee - Show all commits
+1 -3
View File
1
@@ -118,9 +118,7 @@ export default Service.extend({
totalKreditsEarned: computed(function() {
return this.kredits.Contribution.functions.totalKreditsEarned(true)
raucao commented 2019-04-23 11:07:32 +00:00 (Migrated from github.com)
Review

Not a fan of the unnamed true in this new function call, because the meaning is completely hidden, until one finds and reads the Solidity source code of it.

Not a fan of the unnamed `true` in this new function call, because the meaning is completely hidden, until one finds and reads the Solidity source code of it.
bumi commented 2019-04-23 11:50:12 +00:00 (Migrated from github.com)
Review

yes, me neither. but it is a contract call and generated from the wrapper.
could at some write our own function in the wrapper class.

yes, me neither. but it is a contract call and generated from the wrapper. could at some write our own function in the wrapper class.
raucao commented 2019-04-23 12:00:03 +00:00 (Migrated from github.com)
Review

Ah, yes.

Ah, yes.
.then(total => {
return total.toNumber();
});
.then(total => total.toNumber());
}),