Skip to content

feat: add Wave 4 DeFi aggregation with scatter-gather and deduplication#4

Merged
linuxninja39 merged 1 commit into
mainfrom
merge/po-hnde
Feb 17, 2026
Merged

feat: add Wave 4 DeFi aggregation with scatter-gather and deduplication#4
linuxninja39 merged 1 commit into
mainfrom
merge/po-hnde

Conversation

@linuxninja39
Copy link
Copy Markdown
Contributor

Summary

  • Adds DeFi position aggregation with scatter-gather pattern across multiple sources
  • Implements deduplication logic for DeFi positions
  • Merges polecat/obsidian work (MR po-hnde, source: po-e31)

Test plan

  • TypeScript build passes (tsc --noEmit)
  • All 214 unit + E2E tests pass
  • Clean rebase on main (no conflicts)

Merge request: po-hnde

Implement DeFi position aggregation as first-class portfolio content:
- getDeFiPositions() scatter-gather on all chain integrations in parallel
- Cross-chain deduplication using deterministic deduplicationKey
- Supply positions add / borrow positions subtract from portfolio totals
- Price enrichment for underlying assets via asset-valuator
- Partial failure strategy (one chain failing doesn't block others)
- Receipt token filtering to prevent double-counting with getTokens()
- DeFi types: DeFiPosition, VaultPosition, LendingPosition, etc.

33 new unit tests, all 165 tests passing.
@linuxninja39 linuxninja39 merged commit 95fa2e4 into main Feb 17, 2026
1 check passed
@linuxninja39 linuxninja39 deleted the merge/po-hnde branch February 17, 2026 23:20
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.

1 participant