Skip to content

Add structured log event for protocol fee recipient update by admin #561

Description

@Chucks1093

Summary

When the admin updates the protocol fee recipient address, there is no observable event for off-chain monitors to react to. A contract event should be emitted on each successful update so indexers can maintain an accurate record of the current fee recipient without polling storage.

Scope

  • Emit a contract event on set_protocol_fee_recipient with fields: old_recipient, new_recipient, updated_at_ledger
  • Use a dedicated event topic distinct from buy/sell/TTL events
  • Add a test asserting the event is present in the transaction result after a successful admin update

Acceptance Criteria

  • Event emitted on each successful fee recipient update
  • Event contains old_recipient, new_recipient, updated_at_ledger
  • Topic is distinct from other contract events
  • Test confirms event presence after admin call

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions