Skip to content

fix(contracts): reject accidental self-approval patterns#222

Merged
Baskarayelu merged 2 commits intoCredenceOrg:mainfrom
Samaro1:fix/reject-self-approval-patterns
Apr 1, 2026
Merged

fix(contracts): reject accidental self-approval patterns#222
Baskarayelu merged 2 commits intoCredenceOrg:mainfrom
Samaro1:fix/reject-self-approval-patterns

Conversation

@Samaro1
Copy link
Copy Markdown
Contributor

@Samaro1 Samaro1 commented Mar 30, 2026

Closes #178

Prevents accidental self-approval flows in allowance handling by rejecting cases where the contract would rely on approving itself as spender. Adds a regression test for self-approval reverts while preserving normal external spender approval behavior.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 30, 2026

@Samaro1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Baskarayelu Baskarayelu merged commit cb9a4e4 into CredenceOrg:main Apr 1, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Block accidental self-approval in allowance management

2 participants