Skip to content

Commit

Permalink
feat: update updatePool function
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlak committed Dec 12, 2023
1 parent 8ff06bd commit 20a059e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion contracts/strategies/G3MStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,14 @@ contract G3MStrategy is IG3MStrategy {
) external onlyPortfolio {
if (caller != configs[poolId].controller) revert NotController();

// TODO: Add some actual features here
(uint256 endWeightX, uint256 endUpdate) =
abi.decode(data, (uint256, uint256));
(uint256 weightX,) = computeWeights(poolId);

configs[poolId].startWeightX = weightX;
configs[poolId].endWeightX = block.timestamp;
configs[poolId].endWeightX = endWeightX;
configs[poolId].endUpdate = endUpdate;
}

/// @inheritdoc IStrategy
Expand Down

0 comments on commit 20a059e

Please sign in to comment.