Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix(trader-joe): Fix chef v3 farms reward rate (#3019)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpoulin committed Nov 7, 2023
1 parent 89e607c commit 9d9ee54
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -55,7 +55,10 @@ export class AvalancheTraderJoeChefV3FarmContractPositionFetcher extends MasterC
}

async getTotalRewardRate({ contract }: GetMasterChefDataPropsParams<TraderJoeChefV3>) {
return contract.joePerSec();
return await contract.joePerSec().catch(err => {
if (isMulticallUnderlyingError(err)) return 0;
throw err;
});
}

async getPoolAllocPoints({ contract, definition }: GetMasterChefDataPropsParams<TraderJoeChefV3>) {
Expand Down

0 comments on commit 9d9ee54

Please sign in to comment.