Skip to content

feat(pool): add investor position summary - #1614

Merged
sanmipaul merged 1 commit into
astera-hq:mainfrom
Clararosey67:GetInvestorPositionSummary
Oct 22, 2026
Merged

sanmipaul merged 1 commit into
astera-hq:mainfrom
Clararosey67:GetInvestorPositionSummary

Conversation

@Clararosey67

Copy link
Copy Markdown

Closes #910

PR title

feat(pool): add investor position summary

Description

Summary

Add get_investor_position_summary(investor) to return an investor’s deposit positions, pending yield, and co-funding positions in one call.

Changes

  • Return a per-token deposit entry for each token with a non-empty position or pending yield, including deposited value, available and deployed shares, earned amount, and pending claimable yield.
  • Return a per-invoice co-funding entry with its token, principal share, and ownership in basis points.
  • Calculate pending yield using the pool’s existing reward-per-share and loyalty-bonus rules.
  • Add an integration test for deposit, yield, and co-funding summary data.
  • Document the new entrypoint and response shape in interacting-with-contracts.md.

Validation

  • git diff --check passed.
  • Editor diagnostics reported no errors.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@drips-wave

drips-wave Bot commented Oct 22, 2026

Copy link
Copy Markdown

@Clararosey67 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

@sanmipaul
sanmipaul merged commit 24c876b into astera-hq:main Oct 22, 2026
2 of 12 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.

feat: add get_investor_position_summary

3 participants