Closed ben-kaufman closed 7 months ago
I did not find any further issues when reviewing the fix
The fix resolves the issue.
Since release()
and withdrawSurplus()
can be called after the tokenLock
is revoked, I would add the amount sent to the owner()
to releasedAmount
for accounting consistency.
Since release() and withdrawSurplus() can be called after the tokenLock is revoked, I would add the amount sent to the owner() to releasedAmount for accounting consistency.
I think it is more accurate as it is, since the amount revoked is not amount that was "released" but an amount that was taken out of the contract like it was never part of it.
@ben-kaufman if you want "released" to refer only to the amount given to the beneficiary, then I agree it is better as it is. Following the discussions I now believe that this is ok.
Fix #54