Add assertUint256Max1e18 validator in index.ts and apply it to the ci, anchorShare, and discoveryDepth output literals. Programs emitting values > 1e18 for these fields now fail with a clear transpiler-level error instead of silently violating LiquidityManager invariants at runtime. Add tests 12-14 in test_transpiler_clamping.sh covering the over-range rejection for each of the three fields. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| inject.sh | ||
| optimizer_seed.push3 | ||
| optimizer_v3.push3 | ||
| package-lock.json | ||
| package.json | ||
| test_inject_extraction.sh | ||
| test_transpiler_clamping.sh | ||
| tsconfig.json | ||