Skip to content

payout-automation: fund_payouts and add_publisher_earnings emit no events #858

Description

@gboigwe

Summary

Two functions that move/track real funds in payout-automation emit no events — fund_payouts (funding the contract itself) and add_publisher_earnings (crediting a publisher).

Location

contracts/payout-automation/src/lib.rs: fund_payouts (~260), add_publisher_earnings (~275) — no events; schedule_payout and execute_payout do emit events.

Problem

fund_payouts moves real tokens into the contract, and add_publisher_earnings is presumably how a publisher's payable balance gets credited — both are exactly the kind of fund-movement event an off-chain accounting/audit system would want to track, and currently can't without polling storage.

Impact

Medium-high: fund-movement functions being unobservable off-chain is a real accounting-transparency gap for a payout contract specifically.

Acceptance Criteria

  • fund_payouts emits an event capturing the sender and amount
  • add_publisher_earnings emits an event capturing the publisher and amount credited
  • cargo test -p pulsar-payout-automation passes

Suggested Approach

Mirror the event structure already used in schedule_payout/execute_payout for these two functions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    contractsSoroban smart contractsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions