Skip to content

Commit 9432cec

Browse files
committed
update
1 parent 6522e61 commit 9432cec

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/indexer/allo/v1/handleEvent.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -797,9 +797,18 @@ export async function handleEvent(
797797
}
798798

799799
const strategyAddress = parseAddress(event.address);
800-
const round = await db.getRoundByStrategyAddress(
800+
801+
const roundId = parseAddress(
802+
await readContract({
803+
contract: "AlloV1/MerklePayoutStrategyImplementation/V2",
804+
address: strategyAddress,
805+
functionName: "roundAddress",
806+
})
807+
);
808+
809+
const round = await db.getRoundById(
801810
chainId,
802-
strategyAddress
811+
roundId
803812
);
804813

805814
if (!round) {
@@ -845,7 +854,7 @@ export async function handleEvent(
845854
{
846855
type: "UpdateRoundByStrategyAddress",
847856
chainId,
848-
strategyAddress,
857+
strategyAddress: strategyAddress,
849858
round: {
850859
matchingDistribution: distribution.data,
851860
},

0 commit comments

Comments
 (0)