Skip to content
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

Merged
merged 2 commits into from
Nov 3, 2022

Conversation

lucas-manuel
Copy link

No description provided.

@shortcut-integration
Copy link

/*************************************/

function acceptLender() override external whenProtocolNotPaused {
require(msg.sender == _loanMigrator, "DL:SPL:NOT_MIGRATOR");
Copy link
Member

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


loanMigrator.debtLocker_setPendingLender(address(debtLocker), address(debtLocker)); // Set pending lender in Loan to get ACL to work

assertTrue(!notLoanMigrator.try_debtLocker_acceptLender(address(debtLocker)));
Copy link
Member

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

Copy link
Member

@0xfarhaan 0xfarhaan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comments

@lucas-manuel lucas-manuel merged commit 4ee168b into main Nov 3, 2022
@lucas-manuel lucas-manuel deleted the sc-9368-add-accept-lender branch November 3, 2022 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants