Skip to content

Commit

Permalink
remove ownable and change loan.issuer to lender
Browse files Browse the repository at this point in the history
  • Loading branch information
0xgregthedev committed Nov 3, 2023
1 parent 129ebc9 commit fd33e72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DiffFuzzTestStarPortLib:testSpentToReceived((uint8,address,uint256,uint256)[]) (runs: 256, μ: 880497, ~: 882879)
DiffFuzzTestStarPortLib:testUnboundSpentToReceived((uint8,address,uint256,uint256)[]) (runs: 256, μ: 232905, ~: 237832)
DiffFuzzTestStarPortLib:testSpentToReceived((uint8,address,uint256,uint256)[]) (runs: 256, μ: 880523, ~: 883225)
DiffFuzzTestStarPortLib:testUnboundSpentToReceived((uint8,address,uint256,uint256)[]) (runs: 256, μ: 232893, ~: 237832)
IntegrationTestCaveats:testOriginateUnapprovedFulfiller() (gas: 341266)
IntegrationTestCaveats:testOriginateWBorrowerApproval() (gas: 296157)
IntegrationTestCaveats:testOriginateWCaveats() (gas: 272197)
Expand Down
2 changes: 1 addition & 1 deletion src/LoanManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ contract LoanManager is ERC721, PausableNonReentrant {
loan.originator = address(0);
loan.start = 0;

if (msg.sender != loan.issuer && approvals[lender][msg.sender] != ApprovalType.LENDER) {
if (msg.sender != lender && approvals[lender][msg.sender] != ApprovalType.LENDER) {
_validateAndEnforceCaveats(lenderCaveat, lender, additionalTransfers, loan);
}

Expand Down

0 comments on commit fd33e72

Please sign in to comment.