Skip to content

Commit

Permalink
minor improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
fonstack committed Sep 26, 2023
1 parent 3a987be commit 9123729
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/web/src/hooks/subgraph/vaults/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,7 @@ export const populateVaultsWithPricing = (vaults: IVault[], tokenPrices: number[
const governanceFee = Number(governanceSplit) / 100 / 100;
const committeeFee = (Number(vault.committeeRewardSplit) / 100 / 100) * splitFactor;

let maxRewardFactor = 1;
if (isAudit) {
// For audits the max bounty is 100% - governanceFee - committeeFee
maxRewardFactor = maxRewardFactor - governanceFee - committeeFee;
} else {
// maxRewardFactor = vault.version === "v1" ? 10000 : +vault.maxBounty;
maxRewardFactor = maxRewardFactor - governanceFee - committeeFee;
}
const maxRewardFactor = 1 - governanceFee - committeeFee;

return {
...vault,
Expand Down

0 comments on commit 9123729

Please sign in to comment.