mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
bug fix on payback behalf
This commit is contained in:
parent
ab3c8178a8
commit
66726645dd
|
@ -313,7 +313,7 @@ contract CompoundResolver is Helpers {
|
|||
}
|
||||
setApproval(erc20, toRepay, cErc20);
|
||||
token.transferFrom(msg.sender, address(this), toRepay);
|
||||
require(cToken.repayBorrowBehalf(borrower, tokenAmt) == 0, "transfer approved?");
|
||||
require(cToken.repayBorrowBehalf(borrower, toRepay) == 0, "transfer approved?");
|
||||
emit LogRepayBehalf(
|
||||
borrower,
|
||||
erc20,
|
||||
|
|
Loading…
Reference in New Issue
Block a user