import IPoolService from '../interfaces/services/IPoolService'; import { DefaultProvider } from '../types'; export default class PoolService implements IPoolService { provider: DefaultProvider; chainId: number; constructor(provider: DefaultProvider, chainId: number); /** * Return balance for wallet in ERC20 token. * Use ERC20 Interface * @param address - wallet address * @param forAddress - ERC20 token address */ getUserTokenBalance(address: string, forAddress: string): any; /** * Retrieves the total supply of an ERC20 token. * This method queries the ERC20 contract to obtain the total supply of the token. * * @param forAddress - The address of the ERC20 token contract. * @returns A promise that resolves to a string representing the total supply of the token. */ getTotalSupply(forAddress: string): any; /** * Retrieves the symbol of an ERC20 token. * This method queries the ERC20 contract to obtain the token symbol. * * @param forAddress - The address of the ERC20 token contract. * @returns A promise that resolves to a string representing the symbol of the token. */ getTokenSymbol(forAddress: string): any; /** * Retrieves the number of decimals used by an ERC20 token. * This method queries the ERC20 contract to obtain the decimals value, which indicates the token's precision. * * @param forAddress - The address of the ERC20 token contract. * @returns A promise that resolves to a number representing the decimals used by the token. */ getTokenDecimals(forAddress: string): any; /** * Returns the USDT price for a provided ERC20 token address. * This method uses a DEX pair to determine the price. * * @param forAddress - The address of the ERC20 token. * @returns A promise that resolves to a string representing the price of the token in USDT. */ getDexPrice(forAddress: string): Promise; /** * Returns the collateral token address for a given ERC20 token address. * This method queries the Collateral Token Adapter contract to obtain the collateral token address. * * @param forAddress - The address of the ERC20 borrow token. * @returns A promise that resolves to a string representing the collateral token address. */ getCollateralTokenAddress(forAddress: string): any; /** * Set JsonRpcProvider provider for service * @param provider - JsonRpcProvider provider */ setProvider(provider: DefaultProvider): void; /** * Set chainId * @param chainId */ setChainId(chainId: number): void; } //# sourceMappingURL=PoolService.d.ts.map