Skip to content

Contracts: Emit Soroban events for Korean debt yield accrual #804

Description

@Junirezz

Context

deposit and withdraw publish Soroban events for indexer consumption, but accrue_korean_debt_yield mutates VaultState.total_assets without emitting an event.

Problem / Gap

Off-chain APY dashboards and the backend indexer cannot observe Korean sovereign-debt yield harvests, creating a blind spot between on-chain yield and share-price increases.

Proposed approach

  • Publish an event (e.g., (symbol_short!("k_yield"),)) with (harvested_amount, new_total_assets) after successful harvest.
  • Mirror event schema in event_tests.rs and document payload for backend consumers.

Files/areas affected

  • contracts/vault/src/lib.rs (accrue_korean_debt_yield)
  • contracts/vault/src/event_tests.rs

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions