Skip to content

Commit

Permalink
Tag Fuse2 borrowers in Permit2Manager and fix slither
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenshively committed Oct 28, 2023
1 parent 8a608f0 commit dda725f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/slither.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Hide periphery
run: |
rm -rf periphery
- name: Run Slither
uses: crytic/[email protected]
id: run-slither
Expand Down
3 changes: 2 additions & 1 deletion periphery/src/managers/Permit2Manager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ contract Permit2Manager is IManager {
(success, ) = msg.sender.call(dataBorrower); // solhint-disable-line avoid-low-level-calls
if (!success) revert BorrowerCallFailed();

return 0;
// Tag Borrower with `Fuse2Borrower()` function selector so we can identify it on the frontend
return 0x83ee755b << 144;
}
}

0 comments on commit dda725f

Please sign in to comment.