diff --git a/src/index.ts b/src/index.ts index 31dfea5..02fa635 100644 --- a/src/index.ts +++ b/src/index.ts @@ -45,7 +45,7 @@ import { async function init ( providerType: 'JsonRpc' | 'Web3' | 'Infura' | 'Alchemy', providerSettings: { url?: string, privateKey?: string, batchMaxCount? : number } | { externalProvider: ethers.Eip1193Provider } | { network?: Networkish, apiKey?: string }, - options: { gasPrice?: number, maxFeePerGas?: number, maxPriorityFeePerGas?: number, chainId?: number } = {}, + options: { gasPrice?: number, maxFeePerGas?: number, maxPriorityFeePerGas?: number, chainId?: number } = {} ): Promise { await _lending.init(providerType, providerSettings, options); // @ts-ignore diff --git a/src/interfaces.ts b/src/interfaces.ts index 7a15a6f..8d3d7fb 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -151,11 +151,6 @@ interface Rates { lendApyPcent: number; } -interface Assets { - borrowed: AssetDetail; - collateral: AssetDetail; -} - interface AssetDetail { symbol: string; decimals: number; @@ -164,6 +159,11 @@ interface AssetDetail { usdPrice: number; } +interface Assets { + borrowed: AssetDetail; + collateral: AssetDetail; +} + interface VaultShares { pricePerShare: number; totalShares: number;