Skip to content

[Soroban] Fee treasury contract — accumulate and batch-withdraw platform fees #830

@Xaxxoo

Description

@Xaxxoo

Overview

Create a treasury contract that accumulates platform fee income and allows admin-controlled batch withdrawals to minimise transaction overhead.

Tasks

  • Accept USDC fee deposits from escrow contract
  • Track total accumulated and per-period balances
  • Implement withdraw(amount, destination) multisig-only function
  • Emit TreasuryDeposit and TreasuryWithdrawal events
  • Add get_balance() view function
  • Unit test accumulation and withdrawal

Acceptance Criteria

  • Treasury accumulates fees over time from multiple payments
  • Only multisig can withdraw — single admin cannot drain alone

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions