Updated event

This commit is contained in:
Thrilok Kumar 2021-03-19 22:29:20 +05:30
parent 3b01a50fd3
commit 7340803cbd

View File

@ -21,8 +21,8 @@ abstract contract Helpers {
address token; address token;
} }
event LogCTokensAdded(string[] names, address[] tokens, address[] ctokens); event LogCTokenAdded(string indexed name, address indexed token, address indexed ctoken);
event LogCTokensUpdated(string[] names, address[] tokens, address[] ctokens); event LogCTokenUpdated(string indexed name, address indexed token, address indexed ctoken);
ConnectorsInterface public immutable connectors; ConnectorsInterface public immutable connectors;
@ -70,8 +70,8 @@ abstract contract Helpers {
_ctokens[i], _ctokens[i],
_tokens[i] _tokens[i]
); );
emit LogCTokenAdded(_names[i], _tokens[i], _ctokens[i]);
} }
emit LogCTokensAdded(_names, _tokens, _ctokens);
} }
function updateCtokenMapping( function updateCtokenMapping(
@ -104,8 +104,8 @@ abstract contract Helpers {
_ctokens[i], _ctokens[i],
_tokens[i] _tokens[i]
); );
emit LogCTokensUpdated(_names[i], _tokens[i], _ctokens[i]);
} }
emit LogCTokensUpdated(_names, _tokens, _ctokens);
} }
function addCtokenMapping( function addCtokenMapping(
@ -124,7 +124,7 @@ abstract contract Helpers {
} }
contract InstaCompoundMapping is Helpers { contract InstaCompoundMapping is Helpers {
string constant public name = "Compound-Mapping-v1"; string constant public name = "Compound-Mapping-v1.1";
constructor( constructor(
address _connectors, address _connectors,