Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Nov 6, 2024
1 parent 6522e61 commit 9432cec
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/indexer/allo/v1/handleEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -797,9 +797,18 @@ export async function handleEvent(
}

const strategyAddress = parseAddress(event.address);
const round = await db.getRoundByStrategyAddress(

const roundId = parseAddress(
await readContract({
contract: "AlloV1/MerklePayoutStrategyImplementation/V2",
address: strategyAddress,
functionName: "roundAddress",
})
);

const round = await db.getRoundById(
chainId,
strategyAddress
roundId
);

if (!round) {
Expand Down Expand Up @@ -845,7 +854,7 @@ export async function handleEvent(
{
type: "UpdateRoundByStrategyAddress",
chainId,
strategyAddress,
strategyAddress: strategyAddress,
round: {
matchingDistribution: distribution.data,
},
Expand Down

0 comments on commit 9432cec

Please sign in to comment.