Updated on 2026-08-14

This commit is contained in:
Tangem 2023-12-25 16:12:47 +03:00
parent 09e6cc0530
commit b024f91f19

View file

@ -302,6 +302,7 @@ internal class StateBuilder(
)
}
@Suppress("LongMethod", "CyclomaticComplexMethod")
private fun getWarningsForSuccessState(
quoteModel: SwapState.QuotesLoadedState,
fromToken: CryptoCurrency,
@ -327,7 +328,8 @@ internal class StateBuilder(
else -> Unit
}
if (!quoteModel.preparedSwapConfigState.isFeeEnough &&
quoteModel.preparedSwapConfigState.isBalanceEnough
quoteModel.preparedSwapConfigState.isBalanceEnough &&
quoteModel.permissionState !is PermissionDataState.PermissionLoading
) {
warnings.add(
SwapWarning.UnableToCoverFeeWarning(