Skip to content

Commit 137f05c

Browse files
committed
fix(parseAndValidateMerkleTree): Updates fixed units to 100M
We updated the fixed amount to better support USDC which holds 6 decimals
1 parent c75a52e commit 137f05c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/parseAndValidateMerkleTreeDump.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ export const parseAndValidateMerkleTree = (request: ValidateAllowListRequest) =>
3636
};
3737
}
3838

39-
if (totalUnitsInEntries !== parseEther("1")) {
39+
if (totalUnitsInEntries !== 100_000_000n) {
4040
return {
4141
data: _merkleTree,
4242
valid: false,
4343
errors: {
44-
totalUnits: "Total units should amount to 1 eth in wei (1e18) units"
44+
totalUnits: "Total units should amount to 100M (100_000_000) units"
4545
}
4646
};
4747
}

0 commit comments

Comments
 (0)