refactor: remove bounty system from PaymasterHub#118
Merged
Conversation
Remove the bundler-tipping bounty system and simplify paymaster for launch: - Delete bounty struct, storage, functions (setBounty, fundBounty, sweepBounty, _processBounty) - Remove receive() function (bounty funding only) - Simplify payload format: 130 -> 122 bytes (remove mailboxCommit8 field) - Simplify context: 7 -> 4 fields (remove userOpHash, mailboxCommit8, tx.origin) - Remove postUserOp function and UserOpPosted event - Streamline postOp to only do accounting (budget + org financials) - Update all tests with 7 new tests covering payload boundaries and context round-trips - Clean up documentation (remove bounty section, update payload format docs) All 144 paymaster tests pass. Backward compatible: 130-byte payloads still accepted. Co-Authored-By: Claude Haiku 4.5 <[email protected]>
Contributor
Coverage Report
Coverage by file
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remove the bundler-tipping bounty system and simplify PaymasterHub for launch by eliminating unnecessary complexity and attack surface. The bounty feature was not essential for standard ERC-4337 payments and added unwanted mental model.
Changes:
Test Coverage
Added 7 comprehensive tests covering critical gaps:
All 144 paymaster tests pass. Full backward compatibility maintained for longer payloads.
🤖 Generated with Claude Code