@aave/protocol-js
Version:
Aave protocol data aggregation tool
20 lines (19 loc) • 1.04 kB
TypeScript
import { IAaveIncentivesController } from '../contract-types';
import { Configuration, EthereumTransactionTypeExtended, IncentivesConfig, tEthereumAddress } from '../types';
import BaseService from './BaseService';
export declare type ClaimRewardsMethodType = {
user: string;
assets: string[];
to: string;
};
export interface IncentivesControllerInterface {
incentivesControllerRewardTokenAddress: tEthereumAddress;
claimRewards: (args: ClaimRewardsMethodType) => EthereumTransactionTypeExtended[];
}
export default class IncentivesController extends BaseService<IAaveIncentivesController> implements IncentivesControllerInterface {
readonly incentivesControllerRewardTokenAddress: tEthereumAddress;
readonly incentivesControllerAddress: string;
readonly incentivesConfig: IncentivesConfig | undefined;
constructor(config: Configuration, incentivesConfig: IncentivesConfig | undefined);
claimRewards({ user, assets, to }: ClaimRewardsMethodType): EthereumTransactionTypeExtended[];
}