Skip to content

Commit

Permalink
update params
Browse files Browse the repository at this point in the history
  • Loading branch information
boudra committed May 14, 2024
1 parent 67f12e0 commit 2cdf5dc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/common/src/allo/allo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export interface Allo {
>;

batchDistributeFunds: (args: {
payoutStrategy: Address;
payoutStrategyOrPoolId: string;
allProjects: MatchingStatsData[];
projectIdsToBePaid: string[];
}) => AlloOperation<
Expand Down
8 changes: 4 additions & 4 deletions packages/common/src/allo/backends/allo-v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,8 @@ export class AlloV1 implements Allo {
args.roundData.applicationsEndTime
? dateToEthereumTimestamp(args.roundData.applicationsEndTime)
: args.roundData.roundEndTime
? dateToEthereumTimestamp(args.roundData.roundEndTime)
: maxUint256,
? dateToEthereumTimestamp(args.roundData.roundEndTime)
: maxUint256,
dateToEthereumTimestamp(args.roundData.roundStartTime),
args.roundData.roundEndTime
? dateToEthereumTimestamp(args.roundData.roundEndTime)
Expand Down Expand Up @@ -984,7 +984,7 @@ export class AlloV1 implements Allo {
}

batchDistributeFunds(args: {
payoutStrategy: Address;
payoutStrategyOrPoolId: string;
allProjects: MatchingStatsData[];
projectIdsToBePaid: string[];
}): AlloOperation<
Expand Down Expand Up @@ -1029,7 +1029,7 @@ export class AlloV1 implements Allo {
});

const txResult = await sendTransaction(this.transactionSender, {
address: args.payoutStrategy,
address: getAddress(args.payoutStrategyOrPoolId),
abi: MerklePayoutStrategyImplementationABI,
functionName: "payout",
args: [projectsWithMerkleProof],
Expand Down
4 changes: 2 additions & 2 deletions packages/common/src/allo/backends/allo-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ export class AlloV2 implements Allo {
}

batchDistributeFunds(args: {
payoutStrategy: Address;
payoutStrategyOrPoolId: string;
allProjects: MatchingStatsData[];
projectIdsToBePaid: string[];
}): AlloOperation<
Expand All @@ -1175,7 +1175,7 @@ export class AlloV2 implements Allo {
}
> {
return new AlloOperation(async ({ emit }) => {
const poolId = BigInt(args.payoutStrategy);
const poolId = BigInt(args.payoutStrategyOrPoolId);
const recipientIds: Address[] = args.projectIdsToBePaid.map((id) =>
getAddress(id)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,10 @@ export function PayProjectsTable(props: {
if (roundId) {
const result = await allo
.batchDistributeFunds({
payoutStrategy:
payoutStrategyOrPoolId:
alloVersion === "allo-v1"
? getAddress(props.round.id)
: getAddress(props.round.payoutStrategy.id),
? getAddress(props.round.payoutStrategy.id)
: props.round.id,
allProjects: props.allProjects,
projectIdsToBePaid: selectedProjects.map((p) => p.projectId),
})
Expand Down

0 comments on commit 2cdf5dc

Please sign in to comment.