aftermath-ts-sdk - v6.1.0
    Preparing search index...

    Interface ApiRewardsDistributionBody

    Request body for computing the rewards distribution across perpetuals accounts.

    This corresponds to POST /api/rewards/distribution, which replaces the removed POST /api/perpetuals/rebates/rewards.

    Given maker and taker reward pools and a list of accounts, computes per-account reward allocations and fee-tier rebates. When accountIds is omitted or empty, all eligible accounts are included.

    Note: All data returned is for the current epoch only.

    interface ApiRewardsDistributionBody {
        accountIds?: bigint[];
        calculationVariables: RewardsDistributionCalculationVariables;
        totalMakerRewards: number;
        totalTakerRewards: number;
    }

    Hierarchy (View Summary)

    Index
    accountIds?: bigint[]

    Optional account filter. Omit or pass an empty array for all eligible accounts. Caller serializes each id to the API's "123n" wire format and parses the response back, so pass real bigints here.

    Coefficients used to compute Q-scores and taker shares.

    totalMakerRewards: number

    Total maker reward pool to distribute among eligible market makers.

    totalTakerRewards: number

    Total taker reward pool to distribute among eligible takers.