fix(@desktop/wallet): Update the link to point to terms and condition of paraswap page.

This commit is contained in:
Khushboo Mehta 2024-07-22 18:22:33 +02:00 committed by Khushboo-dev-cpp
parent 347e0df8b0
commit b93edff484
5 changed files with 10 additions and 3 deletions

View File

@ -95,6 +95,9 @@ SplitView {
networkIconPath: Style.svg(priv.selectedNetwork.iconUrl)
networkBlockExplorerUrl: priv.selectedNetwork.blockExplorerURL
serviceProviderName: "Paraswap"
serviceProviderURL: Constants.swap.termsAndConditionParaswapUrl
fiatFees: "1.54 EUR"
cryptoFees: "0.001 ETH"
slippage: 0.5

View File

@ -47,6 +47,9 @@ Item {
networkIconPath: Style.svg("network/Network=Ethereum")
networkBlockExplorerUrl: "https://etherscan.io/"
serviceProviderName: "Paraswap"
serviceProviderURL: Constants.swap.termsAndConditionParaswapUrl
fiatFees: "1.54 EUR"
cryptoFees: "0.001 ETH"
slippage: 0.2

View File

@ -507,7 +507,7 @@ StatusDialog {
slippage: root.swapInputParamsForm.selectedSlippage
serviceProviderName: root.swapAdaptor.swapOutputData.txProviderName
// serviceProviderURL: "" // FIXME get the service provider URL from backend
serviceProviderURL: Constants.swap.termsAndConditionParaswapUrl // TODO https://github.com/status-im/status-desktop/issues/15329
onAccepted: {
root.swapAdaptor.sendSwapTx()

View File

@ -42,8 +42,8 @@ SignTransactionModalBase {
required property string cryptoFees
required property double slippage
property string serviceProviderName: "Paraswap"
property string serviceProviderURL: "https://www.paraswap.io/" // TODO https://github.com/status-im/status-desktop/issues/15329
required property string serviceProviderName
required property string serviceProviderURL
title: qsTr("Sign Swap")
//: e.g. (swap) 100 DAI to 100 USDT

View File

@ -1335,6 +1335,7 @@ QtObject {
this list dynamically */
readonly property string paraswapIcon: "paraswap"
readonly property string paraswapUrl: "app.paraswap.io"
readonly property string termsAndConditionParaswapUrl: "https://files.paraswap.io/tos_v4.pdf"
readonly property QtObject errorCodes: QtObject {
readonly property string errNotEnoughTokenBalance: "WR-016"