Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

feat: Add Liquidity Providers Table#61

Open
qgatssdev wants to merge 2 commits intosoroswap:mainfrom
qgatssdev:@qgatssdev/liquidity-providers
Open

feat: Add Liquidity Providers Table#61
qgatssdev wants to merge 2 commits intosoroswap:mainfrom
qgatssdev:@qgatssdev/liquidity-providers

Conversation

@qgatssdev
Copy link

@qgatssdev qgatssdev commented Dec 24, 2024

Add Liquidity Providers Table and Event Tracking

Closes #37

Changes

  1. Added new ssw_prov table to track liquidity providers:

    • Provider addresses
    • Pool addresses
    • Share amounts
    • Pool percentage holdings
  2. Created providers module with:

    • Event handlers for add/remove liquidity events
    • Share percentage calculations
    • Data storage and updates
  3. Added test suite for providers tracking:

    • Provider record verification
    • Share amount validation
    • Percentage calculation tests
    • Cross-network testing (mainnet/testnet)
  4. Added utility functions:

    • get-providers.ts for querying provider data

Technical Details

  • Table limited to 9 characters due to Zephyr constraints
  • Share percentages scaled by 1,000,000 for precision
  • Event handlers integrated with existing pairs workflow
  • Full test coverage for mainnet and testnet

@vercel
Copy link

vercel bot commented Dec 24, 2024

@qgatssdev is attempting to deploy a commit to the PaltaLabs OU Team on Vercel.

A member of the Team first needs to authorize it.

@qgatssdev qgatssdev marked this pull request as draft December 24, 2024 17:06
@qgatssdev qgatssdev marked this pull request as ready for review December 24, 2024 19:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Table for Soroswap Liqudity Providers

1 participant