mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
small event edit
This commit is contained in:
parent
f605ee1682
commit
fdcd5e0151
|
@ -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
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user