Skip to content

Commit

Permalink
feat: pool owner should be factory owner
Browse files Browse the repository at this point in the history
  • Loading branch information
bhargavaparoksham committed Jan 23, 2025
1 parent 9d4a0cd commit 19b8b04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/protocol/AssetPoolFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ contract AssetPoolFactory is IAssetPoolFactory, Ownable {
rebalancingPeriod >= cyclePeriod
) revert InvalidParams();

address owner = owner();

// Clones a new AssetPool contract instance.
address pool = Clones.clone(assetPoolImplementation);
AssetPoolImplementation(pool).initialize(
Expand All @@ -73,7 +75,7 @@ contract AssetPoolFactory is IAssetPoolFactory, Ownable {
address(lpRegistry),
cyclePeriod,
rebalancingPeriod,
msg.sender
owner
);

// Emit the AssetPoolCreated event to notify listeners.
Expand Down

0 comments on commit 19b8b04

Please sign in to comment.