From c8f4f163b2bc1ed19e8eb10a75ba13bea4bd49f0 Mon Sep 17 00:00:00 2001 From: eagle Date: Fri, 17 Jan 2025 16:46:02 +0530 Subject: [PATCH] feat: update pool creation event name --- src/interfaces/IAssetPoolFactory.sol | 2 +- src/protocol/AssetPoolFactory.sol | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/interfaces/IAssetPoolFactory.sol b/src/interfaces/IAssetPoolFactory.sol index d78be80..fcf5f10 100644 --- a/src/interfaces/IAssetPoolFactory.sol +++ b/src/interfaces/IAssetPoolFactory.sol @@ -20,7 +20,7 @@ interface IAssetPoolFactory { * @param cycleLength Duration of a single investment cycle in seconds. * @param rebalancingPeriod Duration of the rebalancing period within a cycle in seconds. */ - event PoolCreated( + event AssetPoolCreated( address indexed pool, string assetSymbol, address depositToken, diff --git a/src/protocol/AssetPoolFactory.sol b/src/protocol/AssetPoolFactory.sol index 0fc295e..38c944b 100644 --- a/src/protocol/AssetPoolFactory.sol +++ b/src/protocol/AssetPoolFactory.sol @@ -73,8 +73,8 @@ contract AssetPoolFactory is IAssetPoolFactory, Ownable { // Register the newly created pool in the LP Registry. lpRegistry.addPool(address(pool)); - // Emit the PoolCreated event to notify listeners. - emit PoolCreated( + // Emit the AssetPoolCreated event to notify listeners. + emit AssetPoolCreated( address(pool), assetSymbol, depositToken,