Class FeeDistributor

Hierarchy (view full)

Constructors

Properties

_contract: WrappedContract

The wrapped contract that the entity is holding.

Remarks

This should not be used directly. Instead, the getter contract should be used to have the correct type of the wrapped contract.

address: Address

the inner contract address

multicall?: Multicall

The Multicall instance used by this entity.

networkConnection: NetworkConnection

The networkConnection of this entity.

Accessors

Methods

  • Claim rewards for a specific user in given markets

    Type Parameters

    Parameters

    Returns FeeDistributorMetaMethodReturnType<T, "claimReward", {
        poolRewards: PoolReward[];
        totalReward: BN;
    }>

    When params is not defined, or when params.method is not defined, this method will perform the transaction, and return Promise<ethers.ContractTransaction>.

    Otherwise, params.method's value is used to determine the return type. See MetaMethodReturnType for the detailed explanation of the return type.

    Remarks

    If params.filterEmptyRewardPools equals true, then only the pools with non-zero rewards will be claimed.

    Note that the param.filterEmptyRewardPools does not filter out the result for meta-method, that is, the result data.poolRewards will still contain the pools with zero rewards.

Generated using TypeDoc