Fix bug, put buffer on the full refinancing

This commit is contained in:
Shivva 2020-10-24 13:38:44 +02:00 committed by Luis Schliesske
parent 080db7e6c2
commit 952f79124e

View File

@ -306,7 +306,7 @@ contract ConnectGelatoDebtBridgeFromMaker is MakerResolver {
);
_setInstaMemoryUints(
_add(wDaiDebtToMove, 1e18),
wDaiDebtToMove,
_sub(wColToWithdrawFromMaker, gasFeesPaidFromCol), // _wColToDepositInB
wDaiDebtToMove,
gasFeesPaidFromCol
@ -333,7 +333,7 @@ contract ConnectGelatoDebtBridgeFromMaker is MakerResolver {
uint256 gasFeesPaidFromCol = _getGelatoProviderFees();
_setInstaMemoryUints(
wDaiDebtToMove,
_add(wDaiDebtToMove, 1e18),
_sub(wColToWithdrawFromMaker, gasFeesPaidFromCol), // _wColToDepositInB
wDaiDebtToMove,
gasFeesPaidFromCol