UNPKG

@bandz/protocol-js

Version:

Bandz protocol data aggregation tool

13 lines (12 loc) 867 B
import IERC20ServiceInterface from '../interfaces/ERC20'; import { ILendToAaveMigrator } from '../contract-types'; import LTAMigratorInterface from '../interfaces/LTAMigrator'; import { Configuration, SmartBCHTransactionTypeExtended, MigratorConfig, tSmartBCHAddress, tStringCurrencyUnits } from '../types'; import BaseService from './BaseService'; export default class LTAMigratorService extends BaseService<ILendToAaveMigrator> implements LTAMigratorInterface { readonly erc20Service: IERC20ServiceInterface; readonly migratorAddress: string; readonly migratorConfig: MigratorConfig | undefined; constructor(config: Configuration, erc20Service: IERC20ServiceInterface, migratorConfig: MigratorConfig | undefined); migrateLendToAave(user: tSmartBCHAddress, amount: tStringCurrencyUnits): Promise<SmartBCHTransactionTypeExtended[]>; }