Add balance when loading contributor #67
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/contributor-balance-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is a regression introduced by the latest contract updates.
Now we return the balance again when loading contributor data.
Which balance though? Kredits that have been withdrawn, or kredits that have been earned? (I'd prefer the latter.)
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.
But it also increases the amount of HTTP requests for every loading of the app. Not sure which one is better.
yep, that's why I made this PR.
It werks! 🎉