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
Context
depositandwithdrawpublish Soroban events for indexer consumption, butaccrue_korean_debt_yieldmutatesVaultState.total_assetswithout 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
(symbol_short!("k_yield"),)) with(harvested_amount, new_total_assets)after successful harvest.event_tests.rsand document payload for backend consumers.Files/areas affected
contracts/vault/src/lib.rs(accrue_korean_debt_yield)contracts/vault/src/event_tests.rs