Remove claims, add withdrawals #225
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/184-remove_kredits_claims"
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?
closes #184
Remove claims, add withdrawalsto WIP: Remove claims, add withdrawalsWIP: Remove claims, add withdrawalsto Remove claims, add withdrawals@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!@ -149,0 +164,4 @@
uint32 amountWithdrawable = confirmedKredits - c.kreditsWithdrawn;
require (amountWithdrawable > 0, "No kredits available");
c.kreditsWithdrawn += amountWithdrawable;
wondering if we should add an
assert(c.kreditsWithdrawn <= confirmedKredits)
?That's just the same as the line above, where
confirmedKredits - c.kreditsWithdrawn
is required to be> 0
, no?