diff --git a/storybook/pages/SwapSignModalPage.qml b/storybook/pages/SwapSignModalPage.qml index 87ead2dd69..663bff910e 100644 --- a/storybook/pages/SwapSignModalPage.qml +++ b/storybook/pages/SwapSignModalPage.qml @@ -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 diff --git a/storybook/qmlTests/tests/tst_SwapSignModal.qml b/storybook/qmlTests/tests/tst_SwapSignModal.qml index 098b032221..3b693bf88d 100644 --- a/storybook/qmlTests/tests/tst_SwapSignModal.qml +++ b/storybook/qmlTests/tests/tst_SwapSignModal.qml @@ -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 diff --git a/ui/app/AppLayouts/Wallet/popups/swap/SwapModal.qml b/ui/app/AppLayouts/Wallet/popups/swap/SwapModal.qml index 34475e1dcd..ae06057526 100644 --- a/ui/app/AppLayouts/Wallet/popups/swap/SwapModal.qml +++ b/ui/app/AppLayouts/Wallet/popups/swap/SwapModal.qml @@ -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() diff --git a/ui/app/AppLayouts/Wallet/popups/swap/SwapSignModal.qml b/ui/app/AppLayouts/Wallet/popups/swap/SwapSignModal.qml index 448cc62b3c..9fee1a76dc 100644 --- a/ui/app/AppLayouts/Wallet/popups/swap/SwapSignModal.qml +++ b/ui/app/AppLayouts/Wallet/popups/swap/SwapSignModal.qml @@ -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 diff --git a/ui/imports/utils/Constants.qml b/ui/imports/utils/Constants.qml index 665b972552..831a4e6ffa 100644 --- a/ui/imports/utils/Constants.qml +++ b/ui/imports/utils/Constants.qml @@ -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"