We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6522e61 commit 9432cecCopy full SHA for 9432cec
src/indexer/allo/v1/handleEvent.ts
@@ -797,9 +797,18 @@ export async function handleEvent(
797
}
798
799
const strategyAddress = parseAddress(event.address);
800
- const round = await db.getRoundByStrategyAddress(
+
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(
810
chainId,
- strategyAddress
811
+ roundId
812
);
813
814
if (!round) {
@@ -845,7 +854,7 @@ export async function handleEvent(
845
854
{
846
855
type: "UpdateRoundByStrategyAddress",
847
856
848
- strategyAddress,
857
+ strategyAddress: strategyAddress,
849
858
round: {
850
859
matchingDistribution: distribution.data,
851
860
},
0 commit comments