Skip to content

Commit fe63370

Browse files
committed
fix: add some buffer for borrowed amount when the underlyings are the same in migration previewer
1 parent 8268d22 commit fe63370

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/migration/AccountMigratorPreviewer.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ contract AccountMigratorPreviewer is IAccountMigratorPreviewer {
220220
ICreditManagerV3(sourceCreditManager).underlying()
221221
== ICreditManagerV3(result.migrationParams.targetCreditManager).underlying()
222222
) {
223-
result.migrationParams.targetBorrowAmount = debtAmount;
223+
result.migrationParams.targetBorrowAmount = debtAmount * 100005 / 100000;
224224
return;
225225
}
226226

0 commit comments

Comments
 (0)