Skip to content

fix: add adminWithdrawFeePool to VaultV2 for stranded LMSR fees#10

Merged
MrTalecky merged 1 commit into
mainfrom
fix/lmsr-fee-withdrawal
Apr 6, 2026
Merged

fix: add adminWithdrawFeePool to VaultV2 for stranded LMSR fees#10
MrTalecky merged 1 commit into
mainfrom
fix/lmsr-fee-withdrawal

Conversation

@MrTalecky

Copy link
Copy Markdown
Member

Summary

  • LMSR fees accumulated in VaultV2.feePool via accumulateFee() but had no withdrawal path — withdrawFeePool() is onlySettlement and MarketLMSR has no fee counter
  • Added adminWithdrawFeePool(address to, uint256 amount) with onlyAdmin + whenNotPaused modifiers
  • Admin should only withdraw the untracked remainder: feePool - protocolFeesAccumulated - creatorFeesAccumulated - resolutionFeesAccumulated

Test plan

  • forge build — compiles cleanly
  • forge test — 387 tests pass, 0 failed
  • Deploy upgraded VaultV2 to mainnet via multisig

🤖 Generated with Claude Code

LMSR fees accumulated in VaultV2.feePool via accumulateFee() but had no
withdrawal path — withdrawFeePool() is onlySettlement and MarketLMSR has
no fee counter or withdrawal function. Added adminWithdrawFeePool(to, amount)
as an admin escape hatch for the untracked remainder in feePool.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@MrTalecky MrTalecky merged commit 7daa82e into main Apr 6, 2026
2 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.

1 participant