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