fix: OptimizerV3Push3 as IOptimizer always returns bear defaults — integration risk (#1063)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
45142e762a
commit
62fc7957b0
4 changed files with 13 additions and 7 deletions
|
|
@ -103,6 +103,13 @@ contract OptimizerV3Push3Test is Test {
|
|||
assertEq(dd, BULL_DISCOVERY, "bull: discoveryDepth");
|
||||
}
|
||||
|
||||
// ---- getLiquidityParams() stub guard ----
|
||||
|
||||
function testGetLiquidityParamsReverts() public {
|
||||
vm.expectRevert("OptimizerV3Push3: not for production use");
|
||||
push3.getLiquidityParams();
|
||||
}
|
||||
|
||||
// ---- Bear cases ----
|
||||
|
||||
function testAlwaysBearAt0Percent() public view {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue