Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit ee28289

Browse files
committed
Update SwapSceneViewModel.swift
1 parent 4ef0117 commit ee28289

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Features/Swap/Sources/ViewModels/SwapSceneViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ extension SwapSceneViewModel {
393393
}
394394
guard !inputErrors.isEmpty else { return nil }
395395
if let best = inputErrors.filter({ $0.0 != nil }).min(by: { ($0.0 ?? 0) < ($1.0 ?? 0) }) {
396-
let adjusted = best.0.map { String($0 * 11 / 10) }
396+
let adjusted = best.0.map { String($0.increase(byPercent: 10)) }
397397
return .InputAmountError(minAmount: adjusted)
398398
}
399399
return .InputAmountError(minAmount: nil)

0 commit comments

Comments
 (0)