Skip to content

Commit

Permalink
Merge pull request #185 from GeneralMagicio/feat/rename-variables
Browse files Browse the repository at this point in the history
Renamed variables according to update
  • Loading branch information
aminlatifi authored Oct 8, 2024
2 parents a9b25ba + 031bd13 commit 3e67059
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/components/DonarDashboard/RoundCollectHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const RoundCollectHeader: FC<IRoundCollectHeaderProps> = ({

if (POLPrice) {
setMaxPOLCap(
info.cumulativeCapPerProject /
info.cumulativeUSDCapPerProject /
(activeRoundDetails?.tokenPrice || POLPrice),
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/round.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const calculateCapAmount = async (
if (!activeRoundDetails) return null;

let maxPOLAmount =
activeRoundDetails?.cumulativeCapPerProject /
activeRoundDetails?.cumulativeUSDCapPerProject /
activeRoundDetails?.tokenPrice;

const roundRecords = await fetchProjectRoundRecords(
Expand Down
16 changes: 8 additions & 8 deletions src/queries/round.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export const GET_ALL_ROUNDS = `
roundUSDCapPerProject
roundUSDCapPerUserPerProject
tokenPrice
cumulativeCapPerProject
cumulativeCapPerUserPerProject
cumulativeUSDCapPerProject
cumulativeUSDCapPerUserPerProject
}
... on QfRound {
__typename
Expand All @@ -24,8 +24,8 @@ export const GET_ALL_ROUNDS = `
roundUSDCapPerProject
roundUSDCapPerUserPerProject
tokenPrice
cumulativeCapPerProject
cumulativeCapPerUserPerProject
cumulativeUSDCapPerProject
cumulativeUSDCapPerUserPerProject
}
}
}
Expand All @@ -45,8 +45,8 @@ export const GET_ACTIVE_ROUND = `
roundUSDCapPerProject
roundUSDCapPerUserPerProject
tokenPrice
cumulativeCapPerProject
cumulativeCapPerUserPerProject
cumulativeUSDCapPerProject
cumulativeUSDCapPerUserPerProject
}
... on QfRound {
__typename
Expand All @@ -58,8 +58,8 @@ export const GET_ACTIVE_ROUND = `
roundUSDCapPerProject
roundUSDCapPerUserPerProject
tokenPrice
cumulativeCapPerProject
cumulativeCapPerUserPerProject
cumulativeUSDCapPerProject
cumulativeUSDCapPerUserPerProject
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/types/round.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export interface IEarlyAccessRound {
roundUSDCapPerProject: number;
roundUSDCapPerUserPerProject: number;
tokenPrice: number;
cumulativeCapPerProject: number;
cumulativeCapPerUserPerProject: number;
cumulativeUSDCapPerProject: number;
cumulativeUSDCapPerUserPerProject: number;
}

export interface IQfRound {
Expand All @@ -23,6 +23,6 @@ export interface IQfRound {
roundUSDCapPerProject: number;
roundUSDCapPerUserPerProject: number;
tokenPrice: number;
cumulativeCapPerProject: number;
cumulativeCapPerUserPerProject: number;
cumulativeUSDCapPerProject: number;
cumulativeUSDCapPerUserPerProject: number;
}

0 comments on commit 3e67059

Please sign in to comment.