Skip to content

Commit

Permalink
error cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
androolloyd committed Oct 9, 2023
1 parent c08c35e commit 06dd0b7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/originators/Originator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ abstract contract Originator is Ownable {
CLOSED
}

error InvalidDebt();
error InvalidOffer();


struct Response {
LoanManager.Terms terms;
Expand Down Expand Up @@ -86,6 +85,7 @@ abstract contract Originator is Ownable {
}

error NotLoanManager();
error NotStrategist();
error InvalidCustodian();
error InvalidDeadline();
error InvalidCollateral();
Expand Down Expand Up @@ -197,10 +197,9 @@ abstract contract Originator is Ownable {
return _counter;
}

// Function to increment the nonce of the sender
function incrementCounter() external {
if (msg.sender != strategist) {
revert InvalidCaller();
revert NotStrategist();
}
_counter += uint256(blockhash(block.number - 1) << 0x80);
emit CounterUpdated();
Expand Down

0 comments on commit 06dd0b7

Please sign in to comment.