Skip to content

Commit

Permalink
add return type
Browse files Browse the repository at this point in the history
  • Loading branch information
yangshan committed Feb 8, 2024
1 parent e46903d commit c71d6d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/huma-shared/src/v2/utils/poolConfigContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { getPoolConfigContractV2, getPoolInfoV2 } from './poolContract'
const getProtocolFeeInBps = async (
poolConfigContract: PoolConfig,
provider: JsonRpcProvider | Web3Provider | undefined,
) => {
): Promise<number> => {
const humaConfig = await poolConfigContract.humaConfig()
const humaConfigContract = getContract(
humaConfig,
Expand All @@ -30,7 +30,7 @@ const getProtocolFeeInBps = async (
const getFlcConfigs = async (
poolInfo: PoolInfoV2,
poolConfigContract: PoolConfig,
) => {
): Promise<FirstLossCoverConfigStructOutput[]> => {
const flcConfigs = await Promise.all(
Object.values(poolInfo.firstLossCovers).map((firstLossCover: string) =>
poolConfigContract.getFirstLossCoverConfig(firstLossCover),
Expand All @@ -41,7 +41,7 @@ const getFlcConfigs = async (

const getFlcTotalAssetsAfterRisk = (
flcConfigs: FirstLossCoverConfigStructOutput[],
) => {
): number => {
const flcTotalAssetsAfterRisk = flcConfigs.reduce(
(acc, flcConfig) =>
acc.add(
Expand Down

0 comments on commit c71d6d3

Please sign in to comment.