-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Update to add acceptLender
function (SC-9368)
#67
Conversation
This pull request has been linked to Shortcut Story #9368: [debt-locker-v4] Add acceptLender function to DebtLocker to allow for liquidity migration contingencies. |
contracts/DebtLocker.sol
Outdated
/*************************************/ | ||
|
||
function acceptLender() override external whenProtocolNotPaused { | ||
require(msg.sender == _loanMigrator, "DL:SPL:NOT_MIGRATOR"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorrect func selector in error string
tests/DebtLocker.t.sol
Outdated
|
||
loanMigrator.debtLocker_setPendingLender(address(debtLocker), address(debtLocker)); // Set pending lender in Loan to get ACL to work | ||
|
||
assertTrue(!notLoanMigrator.try_debtLocker_acceptLender(address(debtLocker))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think we should assert with the correct error msg as it would have highlighted the incorrect func selector but appreciate this means adjust the LoanMigrator.sol
in accounts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comments
No description provided.