From ac4e9c91bda107fb13f8a8e444d80b8a6d102a99 Mon Sep 17 00:00:00 2001 From: Jaco Date: Tue, 28 Dec 2021 15:47:01 +0100 Subject: [PATCH] Removce teleport destination fees (#6745) --- packages/page-parachains/src/Teleport.tsx | 10 ++-------- packages/page-parachains/src/index.tsx | 2 ++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/page-parachains/src/Teleport.tsx b/packages/page-parachains/src/Teleport.tsx index 1870c84eb5..45e6d251dd 100644 --- a/packages/page-parachains/src/Teleport.tsx +++ b/packages/page-parachains/src/Teleport.tsx @@ -11,7 +11,7 @@ import React, { useMemo, useState } from 'react'; import { getTeleportWeight } from '@polkadot/apps-config'; import { ChainImg, Dropdown, InputAddress, InputBalance, MarkWarning, Modal, Spinner, TxButton } from '@polkadot/react-components'; -import { useApi, useApiUrl, useTeleport, useWeightFee } from '@polkadot/react-hooks'; +import { useApi, useApiUrl, useTeleport } from '@polkadot/react-hooks'; import { Available } from '@polkadot/react-query'; import { BN_ZERO, isFunction } from '@polkadot/util'; @@ -80,7 +80,6 @@ function Teleport ({ onClose }: Props): React.ReactElement | null { ); const destApi = useApiUrl(url); - const weightFee = useWeightFee(destWeight, destApi); const params = useMemo( () => { @@ -111,7 +110,7 @@ function Teleport ({ onClose }: Props): React.ReactElement | null { [api, amount, call, destWeight, isParaTeleport, recipientId, recipientParaId] ); - const hasAvailable = !!amount && amount.gte(weightFee); + const hasAvailable = !!amount; return ( | null { {destApi ? ( <> - ('destination transfer fee')} - />