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

Create Table for Soroswap Liqudity Providers #37

@esteblock

Description

@esteblock

Budget: 300 USD

Guidelines:

Current Situation
At Soroswap we have tables for Router Events, Pairs, and Reserve Changes as you can see in https://github.com/soroswap/zephyr-programs/blob/main/programs/soroswap/zephyr.toml

What we need
We need to have information about our Liquidity Providers. We need their addresses, what pools they are contribution, and how much amount of LP tokens they have, what % of the pool they hold, etc...
In order to achieve this we would like to have a table that will look like

[[tables]]
name = "ssw_providers"

[[tables.columns]]
name = "provider_address" // address of the liquidity provider
col_type = "BYTEA"


[[tables.columns]]
name = "pool_address" // address of the pool
col_type = "BYTEA"

[[tables.columns]]
name = "shares" // amount of LP tokens the provider have
col_type = "BYTEA"
  • Create the table
  • Make the program fill the table
  • Create the tests
  • Check that all works fine

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions