Skip to content

Commit

Permalink
feat: update afterCreate
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlak committed Nov 16, 2023
1 parent 37dd842 commit 4c7b4b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contracts/strategies/G3MStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ contract G3MStrategy is IG3MStrategy {
function afterCreate(
uint64 poolId,
bytes calldata strategyArgs
) external returns (bool success) { }
) external returns (bool success) {
(uint256 weightX) = abi.decode(strategyArgs, (uint256));
configs[poolId] = Config(weightX);
return true;
}

function beforeSwap(
uint64 poolId,
Expand Down

0 comments on commit 4c7b4b0

Please sign in to comment.