Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Concentrated Liquidity Campaign

This page provides a detailed reference for the GetLiquidityCampaigns API, which allows you to retrieve information about concentrated liquidity campaigns for DEXes.

Endpoint

POST https://incentra-prd.brevis.network/sdk/v1/liquidityCampaigns

Request

FieldTypeDescription
chain_id[uint64]Filter by the chain ID(s) where the targeted DEX pool is deployed.
campaign_type[CampaignType]Filter by the DEX protocols. Enum will be specified later.
pool_id[string]Filter by pool identifier (e.g., pool address or ID).
campaign_id[string]Filter by specific campaign ID(s).
status[CampaignStatus]Filter by campaign status(es). Enum will be specified later.
user_address[string]Retrieve campaigns where the specified user address(es) has participated.

If any filter is not specified, it means there is no constraint for this filter.

CampaignType Enum

The CampaignType enum has the following values:

  • UNISWAP_V3
  • UNISWAP_V4
  • PANCAKESWAP_V3
  • PANCAKESWAP_V4
  • QUICKSWAP_V3


CampaignStatus Enum

The CampaignStatus enum has the following values:

  • DEPLOYING
  • CREATING_FAILED
  • INACTIVE
  • ACTIVE
  • ENDED
  • DEACTIVATED

Response

FieldTypeDescription
errErrMsgError details if the request failed.
campaigns[LiquidityCampaignInfo]List of matching liquidity campaigns.

LiquidityCampaignInfo Fields

Each campaign includes the following fields:

FileldTypeDescription
chain_iduint64Chain ID where the liquidity pool is deployed.
campaign_typeCampaignTypeThe DEX protocol/version for the campaign.
poolsPoolInfoInformation about the specific liquidity pool targeted by the campaign.
campaign_idstringUnique identifier for the campaign.
campaign_namestringCampaign display name.
start_timeuint64Campaign start timestamp.
end_timeuint64Campaign end timestamp.
reward_infoRewardInfoDetails about the reward token and amount. See RewardInfo below.
last_reward_attestation_timeuint64Last campaign reward attestation timestamp.
statusCampaignStatusCurrent status of the campaign. See CampaignStatus enum.

PoolInfo Fields

FieldTypeDescription
pool_idstringPool identifier (e.g., pool address or pool ID).
pool_namestringPool display name.

RewardInfo Fields

FieldTypeDescription
submission_chain_iduint64Campaign reward submission chain ID (see on-chain reward claim for details).
submission_contractstringCampaign reward submission contract address (see on-chain reward claim for details)
claim_chain_iduint64Chain ID where rewards can be claimed.
claim_contractstringSmart contract address for claiming rewards.
token_addressstringReward token address.
token_symbolstringReward token symbol.
reward_amtstringTotal reward amount for the campaign.
reward_usd_pricestringUSD price per reward token.
reward_per_hourstringReward amount distributed per hour.
aprfloatThe APR of the campaign (for example, 0.03 means 3% APR)
tvlfloatThe TVL of the liquidity pool (in USD value)

Example Request (curl)

{
    "chain_id": [
        1,
        42161
    ],
    "campaign_type": [
        1,
        2,
        3,
        4,
        5
    ],
    "pool_id": [
        "0xD0A4c8A1a14530C7C9EfDaD0BA37E8cF4204d230"
    ],
    "campaign_id": [],
    "status": [
        4,
        5
    ],
    "user_address": [] // no constraint for this filter 
}

Post with data.json

curl -X POST -H "Content-Type: application/json" -d @data.json https://incentra-prd.brevis.network/sdk/v1/liquidityCampaigns