How eurobuddha/pandapools-mds works
PandaPools is a Minima-node MiniDapp for discovering constant-product pools, routing MINIMA/token swaps, managing liquidity, and tracking or recovering pool activity and ownership. The principal path runs from the user interface through quote/routing and transaction construction to the Minima node; background discovery and activity capture continue independently. The README documents wallet, LP analytics, calculator, and recovery capabilities, but excerpts do not expose all their wiring, so only documented or source-supported links are shown.
Main entry points: index.html MiniDapp screens · service.js Background service · activity-chain.js Activity verification · poolmgr.js Pool transactions
Components 18
MiniDapp interface
- MiniDapp screens
index.html - Wallet view
index.html - Pool calculator
calc.js - LP positions
index.html
AMM and transactions
- Swap router
router.js - Pool quotes
curve.js - Pool covenant
covenant.js - Pool transactions
poolmgr.js
Discovery and activity
- Background service
service.js - Pool discovery
service.js - Activity verification
activity-chain.js - Network activity feed
store.js
Recovery and accounting
- Local MDS storage
store.js - Pool recovery
reserve-recovery.js - Receipt recovery
receipt-recovery.js - LP statements
statement.js
Other components
- Pool user
- Minima node
Connections 19
- Pool user → MiniDapp screens: uses
- MiniDapp screens → Swap router: requests quotes
- Swap router → Pool quotes: quotes pools
- MiniDapp screens → Pool transactions: submits pool actions
- Pool transactions → Pool covenant: builds covenant transactions
- Pool transactions → Minima node: commands and posts
- MiniDapp screens → Minima node: reads wallet data
- Background service → Minima node: scans and announces
- Background service → Pool discovery: refreshes pools
- Background service → Activity verification: checks pool transactions
- Background service → Network activity feed: records activity
- Network activity feed → Local MDS storage: persists feed
- Activity verification → Local MDS storage: reads and writes history
- Activity verification → Minima node: verifies confirmations
- Activity verification → Receipt recovery: recovers receipt IDs
- MiniDapp screens → Pool recovery: backs up or restores
- Pool recovery → Minima node: checks reserve proofs
- LP positions → LP statements: shows pool accounting
- LP positions → Pool calculator: opens calculator