bug fix on payback behalf

This commit is contained in:
Samyak Jain 2019-10-12 21:50:54 +05:30
parent ab3c8178a8
commit 66726645dd

View File

@ -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,