Skip to content

feat: add callback whitelist in frendlend#94

Merged
solidoracle merged 1 commit into
mainfrom
bgobeil/callback-whitelist
Aug 28, 2025
Merged

feat: add callback whitelist in frendlend#94
solidoracle merged 1 commit into
mainfrom
bgobeil/callback-whitelist

Conversation

@bengobeil

Copy link
Copy Markdown
Contributor

No description provided.

@solidoracle solidoracle merged commit 3b2c468 into main Aug 28, 2025
2 checks passed
releasebot-bulla Bot pushed a commit that referenced this pull request Aug 28, 2025
# [1.22.0](v1.21.0...v1.22.0) (2025-08-28)

### Features

* add callback whitelist in frendlend ([#94](#94)) ([3b2c468](3b2c468))
@releasebot-bulla

Copy link
Copy Markdown

🎉 This PR is included in version 1.22.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Comment thread src/BullaFrendLendV2.sol
@@ -499,6 +544,13 @@ contract BullaFrendLendV2 is BullaClaimControllerBase, ERC165, IBullaFrendLendV2
revert InvalidCallback();
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can probably remove validate callback configuration because it's not whitelisted

Comment thread src/BullaFrendLendV2.sol
* @param selector The function selector to whitelist for this contract
*/
function addToCallbackWhitelist(address callbackContract, bytes4 selector) external {
if (msg.sender != admin) revert NotAdmin();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Might as well make this into an onlyAdmin modifier because there are several instances of this being used and readability helps

@bengobeil

Copy link
Copy Markdown
Contributor Author

#97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants