From 7254e9812ccef66670cac3550b71bee66bde34a8 Mon Sep 17 00:00:00 2001 From: smk762 Date: Wed, 20 Nov 2024 20:17:32 +0800 Subject: [PATCH] use UtxoPerKbyte for custom utxo fees --- atomic_defi_design/Dex/Wallet/SendModal.qml | 2 +- src/core/atomicdex/pages/qt.wallet.page.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/atomic_defi_design/Dex/Wallet/SendModal.qml b/atomic_defi_design/Dex/Wallet/SendModal.qml index 0b19e98ee..c6f61248a 100644 --- a/atomic_defi_design/Dex/Wallet/SendModal.qml +++ b/atomic_defi_design/Dex/Wallet/SendModal.qml @@ -681,7 +681,7 @@ MultipageModal Layout.preferredHeight: 38 Layout.alignment: Qt.AlignHCenter - placeholderText: qsTr("Enter the custom fee") + " [" + api_wallet_page.ticker + "]" + placeholderText: qsTr("Enter the custom fee") + " (" + api_wallet_page.ticker + "/kb)" } // Token coins diff --git a/src/core/atomicdex/pages/qt.wallet.page.cpp b/src/core/atomicdex/pages/qt.wallet.page.cpp index d9b7fa9d5..2d7e438a9 100644 --- a/src/core/atomicdex/pages/qt.wallet.page.cpp +++ b/src/core/atomicdex/pages/qt.wallet.page.cpp @@ -526,7 +526,7 @@ namespace atomic_dex qDebug() << fees_data; auto json_fees = nlohmann::json::parse(QString(QJsonDocument(QVariant(fees_data).toJsonObject()).toJson()).toStdString()); withdraw_init_req.fees = t_withdraw_init_fees{ - .type = "UtxoFixed", + .type = "UtxoPerKbyte", .amount = json_fees.at("fees_amount").get() }; } @@ -702,7 +702,7 @@ namespace atomic_dex { qDebug() << fees_data; withdraw_req.fees = t_withdraw_fees{ - .type = "UtxoFixed", + .type = "UtxoPerKbyte", .amount = json_fees.at("fees_amount").get(), .gas_limit = json_fees.at("gas_limit").get()}; if (coin_info.coin_type == CoinType::ERC20)