Skip to content

Commit 3e40e73

Browse files
Merge pull request #3610 from gitcoinco/fix-direct-donation
fix: donating with erc20 issue during direct donations
2 parents bf735f7 + fd5371a commit 3e40e73

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

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

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -117,35 +117,28 @@ export function getDirectAllocationPoolId(chainId: number) {
117117
}
118118

119119
export function getDirectAllocationStrategyAddress(chainId: number) {
120+
// This should be the strategy address, once the pool is created
120121
switch (chainId) {
121122
case 11155111:
122123
return "0xd60BCfa8714949c478d88da51A7450703A32Cf35";
123124
case 10:
124-
return "0x56662F9c0174cD6ae14b214fC52Bd6Eb6B6eA602";
125+
return "0x91ad709fe04e214ef53218572d8d8690a8b4fdd0";
125126
case 42161:
126-
return "0x56662F9c0174cD6ae14b214fC52Bd6Eb6B6eA602";
127+
return "0x91ad709fe04e214ef53218572d8d8690a8b4fdd0";
127128
case 42220:
128-
return "0x56662F9c0174cD6ae14b214fC52Bd6Eb6B6eA602";
129+
return "0x9da0a7978b7bd826e06800427cbf1ec1200393e3";
129130
case 8453:
130-
return "0x56662F9c0174cD6ae14b214fC52Bd6Eb6B6eA602";
131+
return "0xef78f18f49dea8b8a5caa41633bb50b0666d40f1";
131132
case 43114:
132-
return "0x86b4329E7CB8674b015477C81356420D79c71A53";
133-
case 534353:
134-
return "0x56662F9c0174cD6ae14b214fC52Bd6Eb6B6eA602";
135-
case 534352:
136-
return "0x9da0a7978b7bd826e06800427cbf1ec1200393e3";
133+
return "0xcdf62dd1f9f9f412485dba39b491af9e09d81652";
137134
case 250:
138-
return "0x1E18cdce56B3754c4Dca34CB3a7439C24E8363de";
135+
return "0xf4ad959b0eceab17648cb964c3a1feadba8a5053";
139136
case 1:
140-
return "0x56662F9c0174cD6ae14b214fC52Bd6Eb6B6eA602";
141-
case 808:
142-
return "0x1cfa7A687cd18b99D255bFc25930d3a0b05EB00F";
143-
case 1329:
144-
return "0x7836f59bd6dc1d87a45df8b9a74eefcdf25bc8a9";
137+
return "0xef78f18f49dea8b8a5caa41633bb50b0666d40f1";
145138
case 42:
146-
return "0xeB6325d9daCD1E46A20C02F46E41d4CAE45C0980";
139+
return "0x471168a823d909fd3ffa5641757d9bb83ba5e35c";
147140
case 1088:
148-
return "0x56662F9c0174cD6ae14b214fC52Bd6Eb6B6eA602";
141+
return "0xef78f18f49dea8b8a5caa41633bb50b0666d40f1";
149142
default:
150143
return undefined;
151144
}
@@ -1547,7 +1540,9 @@ export class AlloV2 implements Allo {
15471540
emit("transactionStatus", success(receipt));
15481541
} catch (err) {
15491542
console.log(err);
1550-
const result = new AlloError(`Failed to ${args.addOrRemove} profile members`);
1543+
const result = new AlloError(
1544+
`Failed to ${args.addOrRemove} profile members`
1545+
);
15511546
emit("transactionStatus", error(result));
15521547
return error(result);
15531548
}

0 commit comments

Comments
 (0)