Skip to content

Commit

Permalink
feat: updatePool
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlak committed Dec 5, 2023
1 parent 58507ab commit 1e050b2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion contracts/strategies/G3MStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1e050b2

Please sign in to comment.