-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VAL-134 Add missing permissioning checks around the Loan (#175)
* Add failing test: Borrower Permissioning should be applied when withdrawing collateral * Add implementation: check borrower permissioning on collateral withdrawal. * Mediate calls to Loan.reclaimFunds() through the PoolController, allowing protocol permissioning to be applied. Update existing tests + add new tests to cover this new exposed method - PoolController.reclaimLoanFunds. * Pipe claimCollateral calls from PA to a loan through the PoolController layer so global permissioning can be applied. * Pipe cancel funded loan calls from PA to a loan through the PoolController layer so global permissioning can be applied. * Pipe markCallback() calls through the PoolController layer * Remove unused modifier * Rename function for clarity * Lint, edit natspec for clarity * Create PermissionedPoolController test file, move relevant tests * Lint fixes
- Loading branch information
Showing
11 changed files
with
1,071 additions
and
72 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
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.