@aave/protocol-js
Version:
Aave protocol data aggregation tool
13 lines (12 loc) • 1.1 kB
TypeScript
import { IParaSwapLiquiditySwapAdapter } from '../contract-types';
import LiquiditySwapAdapterInterface from '../interfaces/LiquiditySwapAdapterParaswap';
import { Configuration, EthereumTransactionTypeExtended, LendingPoolMarketConfig } from '../types';
import { SwapAndDepositMethodType } from '../types/LiquiditySwapAdapterParaswapMethodTypes';
import BaseService from './BaseService';
export declare function augustusFromAmountOffsetFromCalldata(calldata: string): 100 | 4 | 68;
export default class LiquiditySwapAdapterService extends BaseService<IParaSwapLiquiditySwapAdapter> implements LiquiditySwapAdapterInterface {
readonly liquiditySwapAdapterAddress: string;
readonly swapCollateralConfig: LendingPoolMarketConfig | undefined;
constructor(config: Configuration, swapCollateralConfig: LendingPoolMarketConfig | undefined);
swapAndDeposit({ user, assetToSwapFrom, assetToSwapTo, amountToSwap, minAmountToReceive, permitParams, augustus, swapCallData, swapAll, }: SwapAndDepositMethodType, txs?: EthereumTransactionTypeExtended[]): EthereumTransactionTypeExtended;
}