@@ -11,6 +11,7 @@ import "Orders/"
11
11
import App 1.0
12
12
import Dex.Themes 1.0 as Dex
13
13
14
+
14
15
MultipageModal
15
16
{
16
17
id: root
@@ -24,9 +25,9 @@ MultipageModal
24
25
titleText: qsTr (" Confirm Exchange Details" )
25
26
title .font .pixelSize : Style .textSize2
26
27
titleAlignment: Qt .AlignHCenter
27
- titleTopMargin: 10
28
- topMarginAfterTitle: 0
29
- flickMax: window .height - 450
28
+ titleTopMargin: 0
29
+ topMarginAfterTitle: 10
30
+ flickMax: window .height - 480
30
31
31
32
header: [
32
33
RowLayout
@@ -71,6 +72,39 @@ MultipageModal
71
72
Layout .fillWidth : true
72
73
Layout .alignment : Qt .AlignHCenter
73
74
75
+ // Large margin Warning
76
+ FloatingBackground
77
+ {
78
+ Layout .alignment : Qt .AlignCenter
79
+ width: 425
80
+ height: 30
81
+ color: Style .colorRed2
82
+ visible: Math .abs (parseFloat (API .app .trading_pg .cex_price_diff )) >= 50
83
+
84
+ RowLayout
85
+ {
86
+ Layout .fillWidth : true
87
+
88
+ Item { width: 3 }
89
+
90
+ DefaultCheckBox
91
+ {
92
+ id: allow_bad_trade
93
+ Layout .alignment : Qt .AlignCenter
94
+ textColor: Style .colorWhite0
95
+ visible: Math .abs (parseFloat (API .app .trading_pg .cex_price_diff )) >= 50
96
+ spacing: 2
97
+ boxWidth: 20
98
+ boxHeight: 20
99
+ labelWidth: 400
100
+ label .wrapMode : Label .NoWrap
101
+ text: qsTr (" Trade price is more than 50% different to CEX! Confirm?" )
102
+ }
103
+
104
+ Item { width: 3 }
105
+ }
106
+ }
107
+
74
108
DefaultText
75
109
{
76
110
Layout .alignment : Qt .AlignHCenter
@@ -368,7 +402,7 @@ MultipageModal
368
402
leftPadding: 45
369
403
rightPadding: 45
370
404
radius: 10
371
- enabled: ! buy_sell_rpc_busy && last_trading_error === TradingError . None
405
+ enabled: General . is_swap_safe (allow_bad_trade)
372
406
onClicked:
373
407
{
374
408
trade ({ enable_custom_config: enable_custom_config .checked ,
0 commit comments