diff --git a/src/actions/market.ts b/src/actions/market.ts index 9a1ca83..55c428d 100644 --- a/src/actions/market.ts +++ b/src/actions/market.ts @@ -1,10 +1,5 @@ -import { - type Client, - decodeFunctionResult, - encodeFunctionData, - parseAbi, -} from 'viem' -import { call } from 'viem/actions' +import { type Client, parseAbi } from 'viem' +import { readContract } from 'viem/actions' import type { BaseMarket, MangroveActionsDefaultParams, @@ -71,7 +66,7 @@ export async function getMarkets( code: bytecode, abi: abi, functionName: 'getMarkets', - args: [mgvReader] + args: [mgvReader], }) return [...markets]