Skip to content

Commit

Permalink
refactor: evmNetworkId cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Sep 25, 2023
1 parent f98a951 commit 7062a04
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/handlers/payout/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { isEmpty } from "lodash";
export interface IncentivesCalculationResult {
paymentToken: string;
rpc: string;
networkId: number;
evmNetworkId: number;
privateKey: string;
permitMaxPrice: number;
baseMultiplier: number;
Expand Down Expand Up @@ -225,7 +225,7 @@ export const incentivesCalculation = async (): Promise<IncentivesCalculationResu
return {
paymentToken,
rpc,
networkId: evmNetworkId,
evmNetworkId,
privateKey,
recipient,
multiplier,
Expand Down Expand Up @@ -269,7 +269,7 @@ export const calculateIssueAssigneeReward = async (incentivesCalculation: Incent
assigneeLogin,
incentivesCalculation.payload.repository.full_name,
incentivesCalculation.paymentToken,
incentivesCalculation.networkId.toString()
incentivesCalculation.evmNetworkId.toString()
);
if (penaltyAmount.gt(0)) {
logger.info(`Deducting penalty from bounty`);
Expand All @@ -280,7 +280,7 @@ export const calculateIssueAssigneeReward = async (incentivesCalculation: Incent
assigneeLogin,
incentivesCalculation.payload.repository.full_name,
incentivesCalculation.paymentToken,
incentivesCalculation.networkId.toString(),
incentivesCalculation.evmNetworkId.toString(),
bountyAmount
);
const msg = `Permit generation disabled because bounty amount after penalty is 0.`;
Expand Down Expand Up @@ -437,7 +437,7 @@ export const handleIssueClosed = async (
incentivesCalculation.assignee.login,
incentivesCalculation.payload.repository.full_name,
incentivesCalculation.paymentToken,
incentivesCalculation.networkId.toString(),
incentivesCalculation.evmNetworkId.toString(),
assigneeReward.reward[0].penaltyAmount
);
}
Expand Down

0 comments on commit 7062a04

Please sign in to comment.