diff --git a/src/clients/poolClient.ts b/src/clients/poolClient.ts index bbd7d53..41effff 100644 --- a/src/clients/poolClient.ts +++ b/src/clients/poolClient.ts @@ -756,7 +756,7 @@ export class PoolClient extends AptosContractWrapperBaseClass { return resp; } - public async getReserveEmodeCategory( + public async getReserveConfigurationData( asset: AccountAddress, ): Promise { const [ @@ -770,7 +770,7 @@ export class PoolClient extends AptosContractWrapperBaseClass { isActive, isFrozen, ] = await this.callViewMethod( - this.poolContract.GetReserveEModeCategoryFuncAddr, + this.poolContract.GetReserveConfigurationDataFuncAddr, [asset], ); return { @@ -786,6 +786,14 @@ export class PoolClient extends AptosContractWrapperBaseClass { }; } + public async getReserveEmodeCategory(asset: AccountAddress): Promise { + const [emodeCategory] = await this.callViewMethod( + this.poolContract.GetReserveEModeCategoryFuncAddr, + [asset], + ); + return emodeCategory as number; + } + public async getReserveCaps(asset: AccountAddress): Promise<{ borrowCap: bigint; supplyCap: bigint;