From 6b869d9e9e4823edc3edd85defb3b7f6e5f782eb Mon Sep 17 00:00:00 2001 From: waynebruce0x Date: Thu, 18 Apr 2024 17:24:55 +0100 Subject: [PATCH] target --- adapters/balance/index.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/adapters/balance/index.ts b/adapters/balance/index.ts index c5e5541..5cc1aa7 100644 --- a/adapters/balance/index.ts +++ b/adapters/balance/index.ts @@ -53,7 +53,14 @@ export async function balance( .for(Object.keys(chainData)) .process(async (block) => target == GAS_TOKEN - ? await getBalance({ target, block: Number(block), chain, decimals }) + ? await getBalance({ + target: owners[0], + block: Number(block), + chain, + decimals, + }).catch((r) => { + r; + }) : await multiCall({ calls: owners.map((o: string) => ({ target, params: [o] })), abi: "erc20:balanceOf",