Context
Strategy API. Purity contract (ADR #12) enforced by: no state-reading params. BellStrategy and future strategies implement this.
Ref: PRISM_PRD_v1.0.html §Day 3.
Scope
In scope:
packages/contracts/src/interfaces/IStrategy.sol
struct TargetPosition { int24 tickLower; int24 tickUpper; uint256 weight; }
computePositions(int24 currentTick, int24 tickSpacing, uint256 amount0, uint256 amount1)
shouldRebalance(int24 currentTick, int24 lastTick, uint256 lastTs)
Out of scope:
Acceptance Criteria
Dependencies
References
Estimate
S
Context
Strategy API. Purity contract (ADR #12) enforced by: no state-reading params. BellStrategy and future strategies implement this.
Ref: PRISM_PRD_v1.0.html §Day 3.
Scope
In scope:
packages/contracts/src/interfaces/IStrategy.solstruct TargetPosition { int24 tickLower; int24 tickUpper; uint256 weight; }computePositions(int24 currentTick, int24 tickSpacing, uint256 amount0, uint256 amount1)shouldRebalance(int24 currentTick, int24 lastTick, uint256 lastTs)Out of scope:
Acceptance Criteria
weighttype documented as basis points summing to exactly 10_000forge build(Solidity 0.8.25)Errors.sol); no string revertsReentrancyGuardTransienton PoolManager-facing externals where applicableforge test -vvvpasses;forge fmt --checkcleanDependencies
References
Estimate
S