-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Payroll: Avoid payout overflow (#736)
* Fix payment overflow attack Remove MAX_ACCRUED_VALUE. Set amount to max int in case of overflow. * Revert preventing _addAccruedValue from reverting * Prevent owed amount in _paytokens from overflowing * Improve `assertThrow` to support promises as well * Split accrued value payments from regular payroll
- Loading branch information
1 parent
040fef5
commit aff584e
Showing
4 changed files
with
628 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.