Skip to content

Commit

Permalink
Remove catch error, let's see if it keeps happening
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgall committed Apr 3, 2024
1 parent 9502942 commit cd96779
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/utils/azorius.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,7 @@ const getQuorum = async (
let quorum;

if (strategyType === VotingStrategyType.LINEAR_ERC20 && erc20StrategyContract) {
try {
quorum = await erc20StrategyContract.quorumVotes(proposalId);
} catch (e) {
// For who knows reason - strategy.quorumVotes might give you an error
// Seems like occuring when token deployment haven't worked properly
logError('Error while getting strategy quorum', e);
quorum = BigNumber.from(0);
}
quorum = await erc20StrategyContract.quorumVotes(proposalId);
} else if (strategyType === VotingStrategyType.LINEAR_ERC721 && erc721StrategyContract) {
quorum = await erc721StrategyContract.quorumThreshold();
} else {
Expand Down

0 comments on commit cd96779

Please sign in to comment.