File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
grant-explorer/src/features/projects/hooks Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,15 @@ export function getAlloAddress(chainId: number) {
83
83
return allo . address ( ) ;
84
84
}
85
85
86
+ export function getDirectAllocationPoolId ( chainId : number ) {
87
+ switch ( chainId ) {
88
+ case 11155111 :
89
+ return 375 ;
90
+ default :
91
+ return undefined ;
92
+ }
93
+ }
94
+
86
95
export class AlloV2 implements Allo {
87
96
private transactionSender : TransactionSender ;
88
97
private ipfsUploader : IpfsUploader ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export type DirectAllocationParams = {
31
31
fundAmount : number ;
32
32
payoutToken : TToken ;
33
33
recipient : string ;
34
- nonce : number ;
34
+ nonce : bigint ;
35
35
requireTokenApproval ?: boolean ;
36
36
} ;
37
37
@@ -163,7 +163,6 @@ async function _directAllocation({
163
163
. toBigInt ( ) ;
164
164
165
165
const recipientAddress = getAddress ( recipient ) ;
166
- const projectNonce = BigInt ( nonce ) ;
167
166
168
167
context . setTokenApprovalStatus ( ProgressStatus . IN_PROGRESS ) ;
169
168
@@ -173,7 +172,7 @@ async function _directAllocation({
173
172
tokenAddress : payoutToken . address ,
174
173
amount,
175
174
recipient : recipientAddress ,
176
- nonce : projectNonce ,
175
+ nonce,
177
176
requireTokenApproval,
178
177
} )
179
178
. on ( "tokenApprovalStatus" , ( tx ) => {
You can’t perform that action at this time.
0 commit comments