diff --git a/ui/app/AppLayouts/Wallet/stores/WalletAssetsStore.qml b/ui/app/AppLayouts/Wallet/stores/WalletAssetsStore.qml index 8c284174a6..5e76e4e159 100644 --- a/ui/app/AppLayouts/Wallet/stores/WalletAssetsStore.qml +++ b/ui/app/AppLayouts/Wallet/stores/WalletAssetsStore.qml @@ -101,4 +101,21 @@ QtObject { rightModel: _jointTokensBySymbolModel joinRole: "tokensKey" } + + // This is hard coded for now, and should be updated whenever Hop add new tokens for support + // This should be dynamically fetched somehow in the future + readonly property var tokensSupportedByHopBridge: ["USDC", "USDC.e", "USDT", "DAI", "HOP", "SNX", "sUSD", "rETH", "MAGIC"] + + readonly property SortFilterProxyModel bridgeableGroupedAccountAssetsModel: SortFilterProxyModel { + objectName: "bridgeableGroupedAccountAssetsModel" + sourceModel: root.groupedAccountAssetsModel + + filters: [ + FastExpressionFilter { + expression: root.tokensSupportedByHopBridge.includes(model.symbol) + expectedRoles: ["symbol"] + } + ] + } } + diff --git a/ui/imports/shared/popups/send/SendModal.qml b/ui/imports/shared/popups/send/SendModal.qml index 0d0e21f640..5e075a2be7 100644 --- a/ui/imports/shared/popups/send/SendModal.qml +++ b/ui/imports/shared/popups/send/SendModal.qml @@ -360,7 +360,9 @@ StatusDialog { TokenSelectorViewAdaptor { id: assetsAdaptor - assetsModel: popup.store.walletAssetStore.groupedAccountAssetsModel + assetsModel: d.isBridgeTx ? + popup.store.walletAssetStore.bridgeableGroupedAccountAssetsModel : + popup.store.walletAssetStore.groupedAccountAssetsModel flatNetworksModel: popup.store.flatNetworksModel currentCurrency: popup.store.currencyStore.currentCurrency