Remove claims, add withdrawals #225

Merged
raucao merged 4 commits from feature/184-remove_kredits_claims into feature/export-import 2022-08-30 08:53:55 +00:00
Owner

closes #184

closes #184
raucao added 2 commits 2022-08-25 09:46:59 +00:00
Add tests for Contributor#add()
Some checks failed
continuous-integration/drone/push Build is failing
dc2c8130f3
WIP Remove claims, add withdrawals
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2b3fd1241d
raucao requested review from bumi 2022-08-25 09:47:07 +00:00
raucao requested review from hueso 2022-08-25 09:47:07 +00:00
raucao changed title from Remove claims, add withdrawals to WIP: Remove claims, add withdrawals 2022-08-25 09:47:27 +00:00
raucao added 1 commit 2022-08-25 09:51:50 +00:00
Make test complete, add FIXME note
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
e99184b83f
raucao added 1 commit 2022-08-27 08:31:04 +00:00
Use uint32 for kreditsWithdrawn
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
5da710cc14
Same as the properties and functions in the Contribution contract
raucao changed title from WIP: Remove claims, add withdrawals to Remove claims, add withdrawals 2022-08-27 08:31:16 +00:00
Author
Owner

@bumi, @hueso: I resolved the question about token number resolution. It has to be WEI for ERC20 and wallet display, but we use integers as uint32 for all other kredits amounts internally. Ready for review/merge!

@bumi, @hueso: I resolved the question about token number resolution. It has to be WEI for ERC20 and wallet display, but we use integers as `uint32` for all other kredits amounts internally. Ready for review/merge!
hueso approved these changes 2022-08-29 20:10:01 +00:00
raucao merged commit fd012d5359 into feature/export-import 2022-08-30 08:53:55 +00:00
raucao deleted branch feature/184-remove_kredits_claims 2022-08-30 08:53:55 +00:00
bumi reviewed 2022-08-30 10:10:12 +00:00
@ -149,0 +164,4 @@
uint32 amountWithdrawable = confirmedKredits - c.kreditsWithdrawn;
require (amountWithdrawable > 0, "No kredits available");
c.kreditsWithdrawn += amountWithdrawable;
Owner

wondering if we should add an assert(c.kreditsWithdrawn <= confirmedKredits) ?

wondering if we should add an `assert(c.kreditsWithdrawn <= confirmedKredits)` ?
Author
Owner

That's just the same as the line above, where confirmedKredits - c.kreditsWithdrawn is required to be > 0, no?

That's just the same as the line above, where `confirmedKredits - c.kreditsWithdrawn` is required to be `> 0`, no?
Sign in to join this conversation.
No description provided.