From 7340803cbdf708d7fa97ecfac49ce4d7da03fd33 Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Fri, 19 Mar 2021 22:29:20 +0530 Subject: [PATCH] Updated event --- contracts/mapping/compound.sol | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/contracts/mapping/compound.sol b/contracts/mapping/compound.sol index 8b7338c8..55683c88 100644 --- a/contracts/mapping/compound.sol +++ b/contracts/mapping/compound.sol @@ -21,8 +21,8 @@ abstract contract Helpers { address token; } - event LogCTokensAdded(string[] names, address[] tokens, address[] ctokens); - event LogCTokensUpdated(string[] names, address[] tokens, address[] ctokens); + event LogCTokenAdded(string indexed name, address indexed token, address indexed ctoken); + event LogCTokenUpdated(string indexed name, address indexed token, address indexed ctoken); ConnectorsInterface public immutable connectors; @@ -70,8 +70,8 @@ abstract contract Helpers { _ctokens[i], _tokens[i] ); + emit LogCTokenAdded(_names[i], _tokens[i], _ctokens[i]); } - emit LogCTokensAdded(_names, _tokens, _ctokens); } function updateCtokenMapping( @@ -104,8 +104,8 @@ abstract contract Helpers { _ctokens[i], _tokens[i] ); + emit LogCTokensUpdated(_names[i], _tokens[i], _ctokens[i]); } - emit LogCTokensUpdated(_names, _tokens, _ctokens); } function addCtokenMapping( @@ -124,7 +124,7 @@ abstract contract Helpers { } contract InstaCompoundMapping is Helpers { - string constant public name = "Compound-Mapping-v1"; + string constant public name = "Compound-Mapping-v1.1"; constructor( address _connectors,