Use correct token

This commit is contained in:
Mubaris NK 2021-01-12 15:34:53 +05:30
parent e3589a1f72
commit be564539a3
No known key found for this signature in database
GPG Key ID: 1F132294E8700320

View File

@ -1370,7 +1370,7 @@ contract RefinanceResolver is MakerHelpers {
CTokenInterface cToken = CTokenInterface(_cToken);
borrowAmt = _compPaybackOne(cDai, dai, data.debt);
depositAmt = _compWithdrawOne(cToken, TokenInterface(data.token), data.collateral);
depositAmt = _compWithdrawOne(cToken, token, data.collateral);
} else {
revert("invalid-option");
}