Skip to content

Commit 59f3594

Browse files
committed
fix: add underlying dust in migration previewer when underlying is the same
1 parent fe63370 commit 59f3594

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contracts/migration/AccountMigratorPreviewer.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ contract AccountMigratorPreviewer is IAccountMigratorPreviewer {
221221
== ICreditManagerV3(result.migrationParams.targetCreditManager).underlying()
222222
) {
223223
result.migrationParams.targetBorrowAmount = debtAmount * 100005 / 100000;
224+
result.expectedUnderlyingDust = result.migrationParams.targetBorrowAmount - debtAmount;
224225
return;
225226
}
226227

0 commit comments

Comments
 (0)