Add balance when loading contributor #67

Merged
bumi merged 2 commits from feature/contributor-balance-1 into master 2019-04-03 18:22:51 +00:00
bumi commented 2019-04-03 11:57:25 +00:00 (Migrated from github.com)

This is a regression introduced by the latest contract updates.
Now we return the balance again when loading contributor data.

This is a regression introduced by the latest contract updates. Now we return the balance again when loading contributor data.
raucao commented 2019-04-03 12:35:38 +00:00 (Migrated from github.com)

Which balance though? Kredits that have been withdrawn, or kredits that have been earned? (I'd prefer the latter.)

Which balance though? Kredits that have been withdrawn, or kredits that have been earned? (I'd prefer the latter.)
bumi commented 2019-04-03 12:39:39 +00:00 (Migrated from github.com)

this PR only brings back the functionality that we had before. It returns the ERC20 kredits balance of the user.

Though I am wondering if we should rather load the balances (kredits and contribution) in the client/kredits-web. Would keep the contract code also smaller and less coupled.

this PR only brings back the functionality that we had before. It returns the ERC20 kredits balance of the user. Though I am wondering if we should rather load the balances (kredits and contribution) in the client/kredits-web. Would keep the contract code also smaller and less coupled.
raucao commented 2019-04-03 12:42:01 +00:00 (Migrated from github.com)

Though I am wondering if we should rather load the balances (kredits and contribution) in the client/kredits-web. Would keep the contract code also smaller and less coupled.

But it also increases the amount of HTTP requests for every loading of the app. Not sure which one is better.

> Though I am wondering if we should rather load the balances (kredits and contribution) in the client/kredits-web. Would keep the contract code also smaller and less coupled. But it also increases the amount of HTTP requests for every loading of the app. Not sure which one is better.
bumi commented 2019-04-03 12:48:54 +00:00 (Migrated from github.com)

yep, that's why I made this PR.

yep, that's why I made this PR.
raucao commented 2019-04-03 18:22:45 +00:00 (Migrated from github.com)

It werks! 🎉

It werks! :tada:
Sign in to join this conversation.
No description provided.