From b612981604d5a2fa5a28a35f8666bed91f5dbda3 Mon Sep 17 00:00:00 2001 From: livingrockrises <90545960+livingrockrises@users.noreply.github.com> Date: Tue, 19 Nov 2024 06:32:30 +0700 Subject: [PATCH] refactor event --- contracts/interfaces/IBiconomyTokenPaymaster.sol | 2 +- contracts/token/BiconomyTokenPaymaster.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/interfaces/IBiconomyTokenPaymaster.sol b/contracts/interfaces/IBiconomyTokenPaymaster.sol index 0902b7b..2671488 100644 --- a/contracts/interfaces/IBiconomyTokenPaymaster.sol +++ b/contracts/interfaces/IBiconomyTokenPaymaster.sol @@ -39,7 +39,7 @@ interface IBiconomyTokenPaymaster { event RemovedFromTokenDirectory(address indexed tokenAddress); event UpdatedNativeAssetOracle(IOracle indexed oldOracle, IOracle indexed newOracle); event TokensSwappedAndRefilledEntryPoint(address indexed tokenAddress, uint256 indexed tokenAmount, uint256 indexed amountOut, address actor); - event TokenPriceUpdated(uint256 indexed currentPrice, uint256 indexed previousPrice, uint48 indexed cachedPriceTimestamp); + event TokenPriceUpdated(address indexed tokenAddress, uint256 indexed currentPrice, uint256 indexed previousPrice, uint48 cachedPriceTimestamp); event SwappableTokensAdded(address[] indexed tokenAddresses); function setSigner(address newVerifyingSigner) external payable; diff --git a/contracts/token/BiconomyTokenPaymaster.sol b/contracts/token/BiconomyTokenPaymaster.sol index ae35eff..4a861e1 100644 --- a/contracts/token/BiconomyTokenPaymaster.sol +++ b/contracts/token/BiconomyTokenPaymaster.sol @@ -429,7 +429,7 @@ contract BiconomyTokenPaymaster is } cachedPrices[tokenAddress] = newPrice; cachedPricesTimestamps[tokenAddress] = uint48(block.timestamp); - emit TokenPriceUpdated(newPrice, _cachedPrice, cachedPricesTimestamps[tokenAddress]); + emit TokenPriceUpdated(tokenAddress, newPrice, _cachedPrice, cachedPricesTimestamps[tokenAddress]); return newPrice; }