aftermath-ts-sdk - v3.3.3
    Preparing search index...

    Interface ApiPerpetualsCurrentRebateRewardsBody

    Request body for calculating rewards and rebates for perpetuals accounts.

    This corresponds to 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 ApiPerpetualsCurrentRebateRewardsBody {
        accountIds?: bigint[];
        calculationVariables: PerpetualsCalculationVariables;
        totalMakerRewards: number;
        totalTakerRewards: number;
    }

    Hierarchy (View Summary)

    Index
    accountIds?: bigint[]

    Optional account filter. Omit or pass an empty array for all eligible accounts.

    calculationVariables: PerpetualsCalculationVariables

    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.