From 9d9ee545c421ec425026a80c50d94753f93d0009 Mon Sep 17 00:00:00 2001 From: William Poulin Date: Mon, 6 Nov 2023 22:28:30 -0500 Subject: [PATCH] fix(trader-joe): Fix chef v3 farms reward rate (#3019) --- .../trader-joe.chef-v3-farm.contract-position-fetcher.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/apps/trader-joe/avalanche/trader-joe.chef-v3-farm.contract-position-fetcher.ts b/src/apps/trader-joe/avalanche/trader-joe.chef-v3-farm.contract-position-fetcher.ts index 0a9510f8c..e6c8182c5 100644 --- a/src/apps/trader-joe/avalanche/trader-joe.chef-v3-farm.contract-position-fetcher.ts +++ b/src/apps/trader-joe/avalanche/trader-joe.chef-v3-farm.contract-position-fetcher.ts @@ -55,7 +55,10 @@ export class AvalancheTraderJoeChefV3FarmContractPositionFetcher extends MasterC } async getTotalRewardRate({ contract }: GetMasterChefDataPropsParams) { - return contract.joePerSec(); + return await contract.joePerSec().catch(err => { + if (isMulticallUnderlyingError(err)) return 0; + throw err; + }); } async getPoolAllocPoints({ contract, definition }: GetMasterChefDataPropsParams) {