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
bumi commented 2019-04-19 16:17:27 +00:00 (Migrated from github.com)

We want to display the contribution balances (kredits earned) of the
contributors not the token balances.

this depends on merge and deployment of: https://github.com/67P/kredits-contracts/pull/110/

We want to display the contribution balances (kredits earned) of the contributors not the token balances. this depends on merge and deployment of: https://github.com/67P/kredits-contracts/pull/110/
raucao (Migrated from github.com) reviewed 2019-04-23 11:08:02 +00:00
raucao (Migrated from github.com) left a comment

LGTM. Just two minor comments about form.

LGTM. Just two minor comments about form.
@@ -116,6 +116,12 @@ export default Service.extend({
})
raucao (Migrated from github.com) commented 2019-04-23 11:04:50 +00:00

Can be written more concise:

  .then(total => total.toNumber());
Can be written more concise: ```js .then(total => total.toNumber()); ```
@@ -117,2 +117,4 @@
}),
totalKreditsEarned: computed(function() {
return this.kredits.Contribution.functions.totalKreditsEarned(true)
raucao (Migrated from github.com) commented 2019-04-23 11:07:32 +00:00

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 (Migrated from github.com) reviewed 2019-04-23 11:50:12 +00:00
@@ -117,2 +117,4 @@
}),
totalKreditsEarned: computed(function() {
return this.kredits.Contribution.functions.totalKreditsEarned(true)
bumi (Migrated from github.com) commented 2019-04-23 11:50:12 +00:00

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 (Migrated from github.com) reviewed 2019-04-23 12:00:03 +00:00
@@ -117,2 +117,4 @@
}),
totalKreditsEarned: computed(function() {
return this.kredits.Contribution.functions.totalKreditsEarned(true)
raucao (Migrated from github.com) commented 2019-04-23 12:00:03 +00:00

Ah, yes.

Ah, yes.
raucao commented 2019-04-23 13:19:21 +00:00 (Migrated from github.com)

I published contracts and pushed a commit that uses the new version here. Successfully tested on my machine as well.

This can be merged as soon as it has a kredits label attached.

I published contracts and pushed a commit that uses the new version here. Successfully tested on my machine as well. This can be merged as soon as it has a kredits label attached.
bumi commented 2019-04-23 13:57:50 +00:00 (Migrated from github.com)

we need to deploy a new contract version first before we deploy this one.

we need to deploy a new contract version first before we deploy this one.
raucao commented 2019-04-23 14:01:12 +00:00 (Migrated from github.com)

we need to deploy a new contract version first before we deploy this one.

Yes, but that doesn't affect merging. And the label is still missing.

> we need to deploy a new contract version first before we deploy this one. Yes, but that doesn't affect merging. And the label is still missing.
Sign in to join this conversation.