small event edit

This commit is contained in:
Samyak Jain 2019-06-02 19:04:04 +05:30
parent f605ee1682
commit fdcd5e0151

View File

@ -127,7 +127,6 @@ contract CompoundResolver is Helpers {
event LogRedeem(address erc20, address cErc20, uint tokenAmt, address owner); event LogRedeem(address erc20, address cErc20, uint tokenAmt, address owner);
event LogBorrow(address erc20, address cErc20, uint tokenAmt, address owner); event LogBorrow(address erc20, address cErc20, uint tokenAmt, address owner);
event LogRepay(address erc20, address cErc20, uint tokenAmt, address owner); event LogRepay(address erc20, address cErc20, uint tokenAmt, address owner);
event LogRepayBehalf(address erc20, address cErc20, uint tokenAmt, address owner, address borrower);
/** /**
* @dev Deposit ETH/ERC20 and mint Compound Tokens * @dev Deposit ETH/ERC20 and mint Compound Tokens
@ -291,12 +290,11 @@ contract CompoundResolver is Helpers {
token.transferFrom(msg.sender, address(this), toRepay); token.transferFrom(msg.sender, address(this), toRepay);
require(cToken.repayBorrowBehalf(borrower, tokenAmt) == 0, "transfer approved?"); require(cToken.repayBorrowBehalf(borrower, tokenAmt) == 0, "transfer approved?");
} }
emit LogRepayBehalf( emit LogRepay(
erc20, erc20,
cErc20, cErc20,
tokenAmt, tokenAmt,
address(this), address(this)
borrower
); );
} }