fix: testMomentumFullBearAtNegMaxDelta has no slot assertions (#1011)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
65f931ceac
commit
d2c1e83962
1 changed files with 7 additions and 0 deletions
|
|
@ -626,6 +626,13 @@ contract OptimizerNormalizedInputsTest is Test {
|
|||
mockPool.setTwapTicks(1000, 0); // longTwap=1000, shortTwap=0
|
||||
|
||||
optimizer.getLiquidityParams(); // must not revert
|
||||
|
||||
// Verify slots 3 (volatility) and 4 (momentum) via capture harness.
|
||||
// Note: with token0isWeth=false, pool ticks are negated into KRK-price space.
|
||||
// Pool shortTwap=0, longTwap=1000 → KRK-space twapDelta = +1000 (max bull).
|
||||
int256[8] memory m = capture.getComputedInputs();
|
||||
assertEq(m[3], int256(1e18), "volatility should be 1e18 at max negative delta");
|
||||
assertEq(m[4], int256(1e18), "momentum should be 1e18 (max bull in KRK-price space)");
|
||||
}
|
||||
|
||||
function testObserveRevertLeavesSlots34AsZero() public {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue