From 1e050b26449f54b23c155a5e3816aae88a7e61de Mon Sep 17 00:00:00 2001 From: clemlak Date: Tue, 5 Dec 2023 12:03:10 +0400 Subject: [PATCH] feat: updatePool --- contracts/strategies/G3MStrategy.sol | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/contracts/strategies/G3MStrategy.sol b/contracts/strategies/G3MStrategy.sol index b86e5b76..8f15f8f3 100644 --- a/contracts/strategies/G3MStrategy.sol +++ b/contracts/strategies/G3MStrategy.sol @@ -45,7 +45,17 @@ contract G3MStrategy is IG3MStrategy { return configs[poolId].weightX != 0; } - function updatePool(uint64, address, bytes memory) external { } + error NotController(); + + function updatePool( + uint64 poolId, + address caller, + bytes memory data + ) external onlyPortfolio { + if (caller != configs[poolId].controller) revert NotController(); + + // TODO: Add some actual features here + } /// @inheritdoc IStrategy function beforeSwap(