Skip to content

Commit e299c63

Browse files
committed
gitcoin donations
1 parent ec82b9f commit e299c63

File tree

7 files changed

+239
-234
lines changed

7 files changed

+239
-234
lines changed

packages/common/src/allo/backends/allo-v2.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ export class AlloV2 implements Allo {
148148
const amounts = Object.values(groupedAmounts);
149149

150150
if (directAllocation) {
151-
console.log("isDirectAllocation", directAllocation);
152151
poolIds.push(directAllocation.poolId);
153152
amounts.push(directAllocation?.amount ?? BigInt(0));
154153
const encoded: `0x${string}` = encodeAbiParameters(
@@ -161,12 +160,6 @@ export class AlloV2 implements Allo {
161160
]
162161
);
163162
data.push(encoded);
164-
165-
console.log("poolIds", poolIds);
166-
console.log("amounts", amounts);
167-
console.log("data", data);
168-
} else {
169-
console.log("isNotDirectAllocation");
170163
}
171164
/* decide which function to use based on whether token is native, permit-compatible or DAI */
172165
if (token.address === zeroAddress || token.address === NATIVE) {

packages/grant-explorer/src/features/round/DonateToGitcoin/DonateToGitcoin.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ export type DonationDetails = {
1212

1313
type DonateToGitcoinProps = {
1414
totalAmount: string;
15+
totalDonationsByChain: {
16+
[chainId: number]: number;
17+
};
1518
};
1619

1720
export const DonateToGitcoin = React.memo(
18-
({ totalAmount }: DonateToGitcoinProps) => {
21+
({ totalAmount, totalDonationsByChain }: DonateToGitcoinProps) => {
1922
const { isEnabled, setIsEnabled } = useDonateToGitcoin();
2023

2124
const handleCheckboxChange = useCallback(
@@ -50,7 +53,10 @@ export const DonateToGitcoin = React.memo(
5053
</p>
5154
</div>
5255

53-
<DonateToGitcoinContent totalAmount={totalAmount} />
56+
<DonateToGitcoinContent
57+
totalAmount={totalAmount}
58+
totalDonationsByChain={totalDonationsByChain}
59+
/>
5460
</div>
5561
);
5662
},

0 commit comments

Comments
 (0)