fix: address review feedback for #958
- Document new LiquidityManager events in kraiken-lib/src/version.ts per AGENTS.md pre-PR checklist item 6 (Kraiken VERSION unchanged; no ponder subscriber impact) - Add vm.expectEmit assertions to testSetFeeDestinationLocked_Reverts for the setup call that now emits FeeDestinationSet + FeeDestinationLocked Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d08388240d
commit
f33d5e932d
2 changed files with 8 additions and 0 deletions
|
|
@ -25,6 +25,10 @@ export const STACK_META_ID = 'stack-meta';
|
||||||
* Version History:
|
* Version History:
|
||||||
* - v1: Initial deployment (30-tier TAX_RATES, index-based staking)
|
* - v1: Initial deployment (30-tier TAX_RATES, index-based staking)
|
||||||
* - v2: OptimizerV3, VWAP mirror floor, directional VWAP recording
|
* - v2: OptimizerV3, VWAP mirror floor, directional VWAP recording
|
||||||
|
*
|
||||||
|
* LiquidityManager event additions (no Kraiken VERSION bump):
|
||||||
|
* - FeeDestinationSet(address indexed newDest) — emitted on every setFeeDestination() assignment
|
||||||
|
* - FeeDestinationLocked(address indexed dest) — emitted when the fee destination lock engages
|
||||||
*/
|
*/
|
||||||
export const COMPATIBLE_CONTRACT_VERSIONS = [1, 2];
|
export const COMPATIBLE_CONTRACT_VERSIONS = [1, 2];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1035,6 +1035,10 @@ contract LiquidityManagerTest is UniSwapHelper {
|
||||||
*/
|
*/
|
||||||
function testSetFeeDestinationLocked_Reverts() public {
|
function testSetFeeDestinationLocked_Reverts() public {
|
||||||
LiquidityManager freshLm = new LiquidityManager(address(factory), address(weth), address(harberg), address(optimizer));
|
LiquidityManager freshLm = new LiquidityManager(address(factory), address(weth), address(harberg), address(optimizer));
|
||||||
|
vm.expectEmit(true, false, false, false, address(freshLm));
|
||||||
|
emit LiquidityManager.FeeDestinationSet(address(harberg));
|
||||||
|
vm.expectEmit(true, false, false, false, address(freshLm));
|
||||||
|
emit LiquidityManager.FeeDestinationLocked(address(harberg));
|
||||||
freshLm.setFeeDestination(address(harberg));
|
freshLm.setFeeDestination(address(harberg));
|
||||||
vm.expectRevert("fee destination locked");
|
vm.expectRevert("fee destination locked");
|
||||||
freshLm.setFeeDestination(makeAddr("anyAddr"));
|
freshLm.setFeeDestination(makeAddr("anyAddr"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue