Skip to content

feat: Pool transactions table with infinite scroll (#29)#203

Open
jiangyj545 wants to merge 1 commit into
capofficial:mainfrom
jiangyj545:pool-transactions-29
Open

feat: Pool transactions table with infinite scroll (#29)#203
jiangyj545 wants to merge 1 commit into
capofficial:mainfrom
jiangyj545:pool-transactions-29

Conversation

@jiangyj545
Copy link
Copy Markdown

Summary

Implements #29 — Pool transactions table with better organization and infinite scroll.

Changes

  • New component: src/components/pool/pooltransactions.svelte — Transaction table with infinite scroll
  • Updated: src/api/pool.js — Added getPoolTransactions() fetching pool events via Alchemy
  • Updated: src/lib/stores.js — Added poolTransactions and lastPoolTransactionsCount stores
  • Updated: src/components/pool/Pools.svelte — Integrated PoolTransactions below pool stats

Features

  • Displays all 4 pool event types: Deposit, Withdrawal, Pay In, Pay Out
  • Color-coded type badges (green/orange/blue/red)
  • Columns: Type, Asset (with icon), Market, User (linked to Arbiscan), Amount, Pool Balance, Time, Explorer link
  • Infinite scroll via IntersectionObserver (50 items per page, no 100-item limit)
  • Block timestamp caching to reduce API calls
  • Responsive: hides pool-balance column on mobile

Build

npx rollup -c  ✅

Bounty

This addresses bounty issue #29 ($200, paid in crypto). Requesting assignment consideration.

- Add PoolTransactions component with organized table showing deposit,
  withdrawal, pay-in, and pay-out events
- Infinite scroll via IntersectionObserver (50 items per page)
- Each row shows: type (color-coded), asset, market, user, amount,
  pool balance, timestamp, and Arbiscan link
- Fetch events via Alchemy core.getLogs for all 4 pool event types
- Block timestamp caching to reduce API calls
- Responsive: hides pool-balance column on mobile
- Build verified: npx rollup -c passes
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