Skip to content

feat: accumulate and withdraw fees#12

Open
Sikkra wants to merge 1 commit into
intuition-box:mainfrom
Sikkra:codex/accumulated-fee-withdrawals
Open

feat: accumulate and withdraw fees#12
Sikkra wants to merge 1 commit into
intuition-box:mainfrom
Sikkra:codex/accumulated-fee-withdrawals

Conversation

@Sikkra
Copy link
Copy Markdown

@Sikkra Sikkra commented May 19, 2026

Implements Bounty 2C from #2: Withdraw Function.

Changes:

  • Keeps collected fees in IntuitionFeeProxy instead of forwarding them immediately.
  • Adds withdrawFees(address payable recipient, uint256 amount) for whitelisted admins or the current fee recipient.
  • Rejects unauthorized callers, zero recipients, over-balance withdrawals, and failed transfers.
  • Emits FeesWithdrawn for successful withdrawals.
  • Updates fee collection tests to assert accumulated proxy balance and adds withdrawal edge-case coverage.

Verification:

  • npm run compile
  • npm test (38 passing)

Payout address (Base): 0xa925FdD65a0f34bb415Bae1c57536Be33AbCfA92

@Sikkra Sikkra mentioned this pull request May 19, 2026
21 tasks
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.

1 participant