From 65782bd1a6a30b7b859bb448b9e7999ff755cd3a Mon Sep 17 00:00:00 2001 From: Fionna Chan <13184582+fionnachan@users.noreply.github.com> Date: Tue, 16 Jul 2024 15:32:07 +0100 Subject: [PATCH] feat: hide LI.FI links (#1757) temporarily, due to an exploit --- .../src/util/fastBridges.ts | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/packages/arb-token-bridge-ui/src/util/fastBridges.ts b/packages/arb-token-bridge-ui/src/util/fastBridges.ts index c86a09e568..c9134b1621 100644 --- a/packages/arb-token-bridge-ui/src/util/fastBridges.ts +++ b/packages/arb-token-bridge-ui/src/util/fastBridges.ts @@ -151,7 +151,7 @@ export const USDCBridgeInfo = { tokenSymbolOnArbitrum: 'USDC.e', supportedBridges: [ FastBridgeNames.Celer, - FastBridgeNames.LIFI, + // FastBridgeNames.LIFI, FastBridgeNames.Wormhole, FastBridgeNames.Router ], @@ -187,26 +187,26 @@ export const USDCFastBridges: USDCFastBridgeInfo[] = [ } } }, - { - name: FastBridgeNames.LIFI, - imageSrc: LIFI, - getHref: ({ - from, - to, - fromTokenAddress, - toTokenAddress, - amount, - transferMode - }: getHrefParams) => { - switch (transferMode) { - case 'deposit': - return `https://jumper.exchange/?fromChain=${from}&fromToken=${fromTokenAddress}&toChain=${to}&toToken=${toTokenAddress}&fromAmount=${amount}` - case 'withdraw': - default: - return `https://jumper.exchange/?fromChain=${from}&fromToken=${fromTokenAddress}&toChain=${to}&toToken=${toTokenAddress}&fromAmount=${amount}` - } - } - }, + // { + // name: FastBridgeNames.LIFI, + // imageSrc: LIFI, + // getHref: ({ + // from, + // to, + // fromTokenAddress, + // toTokenAddress, + // amount, + // transferMode + // }: getHrefParams) => { + // switch (transferMode) { + // case 'deposit': + // return `https://jumper.exchange/?fromChain=${from}&fromToken=${fromTokenAddress}&toChain=${to}&toToken=${toTokenAddress}&fromAmount=${amount}` + // case 'withdraw': + // default: + // return `https://jumper.exchange/?fromChain=${from}&fromToken=${fromTokenAddress}&toChain=${to}&toToken=${toTokenAddress}&fromAmount=${amount}` + // } + // } + // }, { name: FastBridgeNames.Wormhole, imageSrc: Wormhole,