From de220002d40fc871f3100c4e7caf3f919b6e8f96 Mon Sep 17 00:00:00 2001 From: eborrallo Date: Tue, 17 Sep 2024 09:57:44 +0000 Subject: [PATCH] chore: format --- src/actions/market.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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]