-
{
- setOpenWorldmap(true);
- }}
- >
-
-
+
+
+
+
-
-
- )}
-
-
-
- {/* If there is live Price and Premium data, show it. Otherwise show the order maker settings */}
-
-
-
-
-
- {currentOrder?.price_now !== undefined ? (
-
- ) : null}
-
- {currentOrder?.price_now === undefined && currentOrder?.is_explicit ? (
-
- ) : null}
-
- {currentOrder?.price_now === undefined && !currentOrder?.is_explicit ? (
-
- ) : null}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {/* if order is in a status that does not expire, do not show countdown */}
-
-
-
-
-
-
-
-
+ 0 ? 'Amount' : 'Amount Range'}
/>
-
-
-
-
+
+ {
+ setShowSatsDetails(!showSatsDetails);
+ }}
+ >
+ {showSatsDetails ? : }
+
+
+
+
+
+
+
+
+
+
+ {satsSummary.send}
+
+
+
+
+
+
+ {satsSummary.receive}
+
+
+
+
+
+
+
+
+
+
+
+ }
+ secondary={
+ currentOrder?.currency === 1000
+ ? t('Swap destination')
+ : t('Accepted payment methods')
+ }
+ />
+ {currentOrder?.payment_method.includes('Cash F2F') && (
+
+
+
+ {
+ setOpenWorldmap(true);
+ }}
+ >
+
+
+
+
+
+ )}
+
+
+
+ {/* If there is live Price and Premium data, show it. Otherwise show the order maker settings */}
+
+
+
+
+
+ {currentOrder?.price_now !== undefined ? (
+
+ ) : null}
+
+ {currentOrder?.price_now === undefined && currentOrder?.is_explicit ? (
+
+ ) : null}
+
+ {currentOrder?.price_now === undefined && !currentOrder?.is_explicit ? (
+
+ ) : null}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {/* if order is in a status that does not expire, do not show countdown */}
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+ )}
{/* If the user has a penalty/limit */}
@@ -538,10 +551,32 @@ const OrderDetails = ({
<>>
)}
- {!currentOrder?.is_participant ? (
+ {currentOrder.bad_request?.includes('password') && (
+
+ onPasswordChange(e.target.value)}
+ />
+
+ )}
+
+ {!currentOrder?.is_participant || currentOrder.bad_request?.includes('password') ? (
diff --git a/frontend/src/models/Maker.model.ts b/frontend/src/models/Maker.model.ts
index 042698f4..2d698662 100644
--- a/frontend/src/models/Maker.model.ts
+++ b/frontend/src/models/Maker.model.ts
@@ -21,6 +21,7 @@ export interface Maker {
badPremiumText: string;
latitude: number;
longitude: number;
+ password: string | null;
}
export const defaultMaker: Maker = {
@@ -47,6 +48,7 @@ export const defaultMaker: Maker = {
badSatoshisText: '',
latitude: 0,
longitude: 0,
+ password: null,
};
export default Maker;
diff --git a/frontend/src/models/Order.model.ts b/frontend/src/models/Order.model.ts
index bceddfa9..3f414874 100644
--- a/frontend/src/models/Order.model.ts
+++ b/frontend/src/models/Order.model.ts
@@ -22,6 +22,7 @@ export interface SubmitActionProps {
rating?: number;
amount?: number;
cancel_status?: number;
+ password?: string;
}
export interface TradeRobotSummary {
@@ -83,6 +84,7 @@ class Order {
satoshis_now: number = 0;
latitude: number = 0;
longitude: number = 0;
+ password: string | undefined = undefined;
premium_now: number | undefined = undefined;
premium_percentile: number = 0;
num_similar_orders: number = 0;
@@ -199,6 +201,7 @@ class Order {
bond_size: this.bond_size,
latitude: this.latitude,
longitude: this.longitude,
+ password: this.password,
};
if (slot) {
@@ -223,6 +226,7 @@ class Order {
) => {
return await this.submitAction(federation, slot, {
action: 'take',
+ password: this?.password,
amount: this?.currency === 1000 ? Number(takeAmount) / 100000000 : Number(takeAmount),
});
};
diff --git a/frontend/static/locales/ca.json b/frontend/static/locales/ca.json
index 2cee639c..2d0a3782 100644
--- a/frontend/static/locales/ca.json
+++ b/frontend/static/locales/ca.json
@@ -385,6 +385,7 @@
"Onchain amount to send (BTC)": "Quantitat a enviar Onchain (BTC)",
"Order current rate:": "Preu actual:",
"Order for ": "Ordre per ",
+ "Password": "Password",
"Premium over Market (%)": "Prima sobre el mercat (%)",
"Public Duration (HH:mm)": "Duració pública (HH:mm)",
"Public order length": "Duració de l'ordre pública",
diff --git a/frontend/static/locales/cs.json b/frontend/static/locales/cs.json
index d5382559..d7419067 100644
--- a/frontend/static/locales/cs.json
+++ b/frontend/static/locales/cs.json
@@ -385,6 +385,7 @@
"Onchain amount to send (BTC)": "Onchain amount to send (BTC)",
"Order current rate:": "Aktuální kurz nabídky:",
"Order for ": "Order for ",
+ "Password": "Password",
"Premium over Market (%)": "Prémium vůči tržní ceně (%)",
"Public Duration (HH:mm)": "Doba zveřejnění (HH:mm)",
"Public order length": "Public order length",
diff --git a/frontend/static/locales/de.json b/frontend/static/locales/de.json
index 7ab01c7f..07eb10e4 100644
--- a/frontend/static/locales/de.json
+++ b/frontend/static/locales/de.json
@@ -385,6 +385,7 @@
"Onchain amount to send (BTC)": "Onchain amount to send (BTC)",
"Order current rate:": "Aktueller Order-Kurs:",
"Order for ": "Order for ",
+ "Password": "Password",
"Premium over Market (%)": "Marktpreis Aufschlag (%)",
"Public Duration (HH:mm)": "Angebotslaufzeit (HH:mm)",
"Public order length": "Public order length",
diff --git a/frontend/static/locales/en.json b/frontend/static/locales/en.json
index f0f0e0f4..04518e2f 100644
--- a/frontend/static/locales/en.json
+++ b/frontend/static/locales/en.json
@@ -385,6 +385,7 @@
"Onchain amount to send (BTC)": "Onchain amount to send (BTC)",
"Order current rate:": "Order current rate:",
"Order for ": "Order for ",
+ "Password": "Password",
"Premium over Market (%)": "Premium over Market (%)",
"Public Duration (HH:mm)": "Public Duration (HH:mm)",
"Public order length": "Public order length",
diff --git a/frontend/static/locales/es.json b/frontend/static/locales/es.json
index 25629157..e3a80323 100644
--- a/frontend/static/locales/es.json
+++ b/frontend/static/locales/es.json
@@ -385,6 +385,7 @@
"Onchain amount to send (BTC)": "Cantidad onchain a enviar (BTC)",
"Order current rate:": "Precio actual:",
"Order for ": "Orden por ",
+ "Password": "Password",
"Premium over Market (%)": "Prima sobre el mercado (%)",
"Public Duration (HH:mm)": "Duración pública (HH:mm)",
"Public order length": "Public order length",
diff --git a/frontend/static/locales/eu.json b/frontend/static/locales/eu.json
index 24360caf..e1353864 100644
--- a/frontend/static/locales/eu.json
+++ b/frontend/static/locales/eu.json
@@ -385,6 +385,7 @@
"Onchain amount to send (BTC)": "Onchain amount to send (BTC)",
"Order current rate:": "Uneko Prezioa:",
"Order for ": "Order for ",
+ "Password": "Password",
"Premium over Market (%)": "Merkatuarekiko Prima (%)",
"Public Duration (HH:mm)": "Iraupen publikoa (HH:mm)",
"Public order length": "Public order length",
diff --git a/frontend/static/locales/fr.json b/frontend/static/locales/fr.json
index 10b7f31c..637f2ee1 100644
--- a/frontend/static/locales/fr.json
+++ b/frontend/static/locales/fr.json
@@ -385,6 +385,7 @@
"Onchain amount to send (BTC)": "Onchain montant à envoyer (BTC)",
"Order current rate:": "Commander le taux actuel:",
"Order for ": "Ordre pour ",
+ "Password": "Password",
"Premium over Market (%)": "Prime sur le marché (%)",
"Public Duration (HH:mm)": "Durée publique (HH:mm)",
"Public order length": "Durée de l'ordre public",
diff --git a/frontend/static/locales/it.json b/frontend/static/locales/it.json
index 863b7ab1..afb76d04 100644
--- a/frontend/static/locales/it.json
+++ b/frontend/static/locales/it.json
@@ -385,6 +385,7 @@
"Onchain amount to send (BTC)": "Importo da inviare onchain (BTC)",
"Order current rate:": "Ordina al prezzo corrente:",
"Order for ": "Ordina per ",
+ "Password": "Password",
"Premium over Market (%)": "Premio sul prezzo di mercato (%)",
"Public Duration (HH:mm)": "Durata pubblica (HH:mm)",
"Public order length": "Durata dell'ordine pubblico",
diff --git a/frontend/static/locales/ja.json b/frontend/static/locales/ja.json
index 7848f515..96e7972a 100644
--- a/frontend/static/locales/ja.json
+++ b/frontend/static/locales/ja.json
@@ -385,6 +385,7 @@
"Onchain amount to send (BTC)": "送信するオンチェーン量(BTC)",
"Order current rate:": "現在のレート:",
"Order for ": "Order for ",
+ "Password": "Password",
"Premium over Market (%)": "マーケットに対するプレミアム(%)",
"Public Duration (HH:mm)": "公開期間(HH:mm)",
"Public order length": "公開注文の期間",
diff --git a/frontend/static/locales/pl.json b/frontend/static/locales/pl.json
index 97ec0eb0..b62a7050 100644
--- a/frontend/static/locales/pl.json
+++ b/frontend/static/locales/pl.json
@@ -385,6 +385,7 @@
"Onchain amount to send (BTC)": "Onchain amount to send (BTC)",
"Order current rate:": "Order current rate:",
"Order for ": "Order for ",
+ "Password": "Password",
"Premium over Market (%)": "Premia nad rynkiem (%)",
"Public Duration (HH:mm)": "Czas trwania publicznego (HH:mm)",
"Public order length": "Public order length",
diff --git a/frontend/static/locales/pt.json b/frontend/static/locales/pt.json
index 9c2b5e28..05daf693 100644
--- a/frontend/static/locales/pt.json
+++ b/frontend/static/locales/pt.json
@@ -385,6 +385,7 @@
"Onchain amount to send (BTC)": "Valor onchain a enviar (BTC)",
"Order current rate:": "Taxa atual do pedido:",
"Order for ": "Ordem para ",
+ "Password": "Password",
"Premium over Market (%)": "Prêmio sobre o mercado (%)",
"Public Duration (HH:mm)": "Duração Pública (HH:mm)",
"Public order length": "Tempo da ordem pública",
diff --git a/frontend/static/locales/ru.json b/frontend/static/locales/ru.json
index 1cbe95ae..b603a4ed 100644
--- a/frontend/static/locales/ru.json
+++ b/frontend/static/locales/ru.json
@@ -385,6 +385,7 @@
"Onchain amount to send (BTC)": "Сумма для отправки на ончейн (BTC)",
"Order current rate:": "Текущий курс ордера:",
"Order for ": "Ордер на ",
+ "Password": "Password",
"Premium over Market (%)": "Наценка по сравнению с рынком (%)",
"Public Duration (HH:mm)": "Публичная продолжительность (ЧЧ: мм)",
"Public order length": "Длина общественного ордера",
diff --git a/frontend/static/locales/sv.json b/frontend/static/locales/sv.json
index a43118c9..69b3e36d 100644
--- a/frontend/static/locales/sv.json
+++ b/frontend/static/locales/sv.json
@@ -385,6 +385,7 @@
"Onchain amount to send (BTC)": "Onchain amount to send (BTC)",
"Order current rate:": "Aktuell kurs: ",
"Order for ": "Order for ",
+ "Password": "Password",
"Premium over Market (%)": "Premium över marknaden (%)",
"Public Duration (HH:mm)": "Publikt tidsspann (HH:mm)",
"Public order length": "Public order length",
diff --git a/frontend/static/locales/sw.json b/frontend/static/locales/sw.json
index 6a611675..b17a8041 100644
--- a/frontend/static/locales/sw.json
+++ b/frontend/static/locales/sw.json
@@ -385,6 +385,7 @@
"Onchain amount to send (BTC)": "Kiasi cha onchain cha kutuma (BTC)",
"Order current rate:": "Kiwango cha sasa cha amri:",
"Order for ": "Amri kwa ",
+ "Password": "Password",
"Premium over Market (%)": "Faida juu ya Soko (%)",
"Public Duration (HH:mm)": "Muda wa Umma (HH:mm)",
"Public order length": "Urefu wa amri ya umma",
diff --git a/frontend/static/locales/th.json b/frontend/static/locales/th.json
index 5ce12848..231ddd3e 100644
--- a/frontend/static/locales/th.json
+++ b/frontend/static/locales/th.json
@@ -385,6 +385,7 @@
"Onchain amount to send (BTC)": "Onchain amount to send (BTC)",
"Order current rate:": "ราคาที่คุณกำหนด:",
"Order for ": "Order for ",
+ "Password": "Password",
"Premium over Market (%)": "ค่าพรีเมี่ยมจากท้องตลาด (%)",
"Public Duration (HH:mm)": "ประกาศรายการซื้อขายมีอายุ (ชม:นาที)",
"Public order length": "Public order length",
diff --git a/frontend/static/locales/zh-SI.json b/frontend/static/locales/zh-SI.json
index 90eeae50..7d646ff7 100644
--- a/frontend/static/locales/zh-SI.json
+++ b/frontend/static/locales/zh-SI.json
@@ -385,6 +385,7 @@
"Onchain amount to send (BTC)": "链上发送金额(BTC)",
"Order current rate:": "订单当前价格:",
"Order for ": "Order for ",
+ "Password": "Password",
"Premium over Market (%)": "市场溢价(%)",
"Public Duration (HH:mm)": "公开时间 (HH:mm)",
"Public order length": "订单公开长度",
diff --git a/frontend/static/locales/zh-TR.json b/frontend/static/locales/zh-TR.json
index 662b0afb..1ac21087 100644
--- a/frontend/static/locales/zh-TR.json
+++ b/frontend/static/locales/zh-TR.json
@@ -385,6 +385,7 @@
"Onchain amount to send (BTC)": "鏈上發送金額(BTC)",
"Order current rate:": "訂單當前價格:",
"Order for ": "Order for ",
+ "Password": "Password",
"Premium over Market (%)": "市場溢價 (%)",
"Public Duration (HH:mm)": "公開時間 (HH:mm)",
"Public order length": "訂單公開長度",