Skip to content

single_rwa_vault: add yield reconciliation view functions#388

Merged
Jayy4rl merged 2 commits into
StellarYield:mainfrom
Junman140:feat/yield-reconciliation-views
Apr 30, 2026
Merged

single_rwa_vault: add yield reconciliation view functions#388
Jayy4rl merged 2 commits into
StellarYield:mainfrom
Junman140:feat/yield-reconciliation-views

Conversation

@Junman140
Copy link
Copy Markdown
Contributor

@Junman140 Junman140 commented Apr 26, 2026

Closes #114


Summary\n- Add reconciliation view structs and public getters: get_yield_reconciliation, get_user_position, get_vault_health.\n- Provide balance discrepancy calculation for audit/recon workflows.\n- Add tests covering multi-user, multi-epoch reconciliation and empty-vault edge case.\n\n## Notes\n- otal_principal_deposited is derived as (total_deposited - total_yield_distributed) to exclude yield inflows from principal.\n- otal_yield_claimed uses lifetime activity tracking; maturity auto-claims now also increment lifetime yield-claim volume for reconciliation consistency.\n\n## Test plan\n- cargo test -p single_rwa_vault\n

Made with Cursor

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 26, 2026

@Junman140 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Jayy4rl Jayy4rl merged commit c1eb106 into StellarYield:main Apr 30, 2026
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Off-Chain Yield Accounting Reconciliation View Functions

2 participants