Updated on 2026-08-14
This commit is contained in:
parent
91c52c039c
commit
ae758bc308
8 changed files with 87 additions and 51 deletions
|
|
@ -110,7 +110,10 @@ internal class StateBuilder(val actions: UiActions) {
|
|||
fromToken: Currency,
|
||||
): SwapStateHolder {
|
||||
val warnings = mutableListOf<SwapWarning>()
|
||||
if (!quoteModel.preparedSwapConfigState.isAllowedToSpend && quoteModel.preparedSwapConfigState.isFeeEnough) {
|
||||
if (!quoteModel.preparedSwapConfigState.isAllowedToSpend &&
|
||||
quoteModel.preparedSwapConfigState.isFeeEnough &&
|
||||
quoteModel.permissionState is PermissionDataState.PermissionReadyForRequest
|
||||
) {
|
||||
warnings.add(SwapWarning.PermissionNeeded(fromToken.symbol))
|
||||
}
|
||||
if (!quoteModel.preparedSwapConfigState.isBalanceEnough) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue