Skip to content

Commit

Permalink
feat: hide LI.FI links (#1757)
Browse files Browse the repository at this point in the history
temporarily, due to an exploit
  • Loading branch information
fionnachan authored Jul 16, 2024
1 parent 830e1d4 commit 65782bd
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions packages/arb-token-bridge-ui/src/util/fastBridges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export const USDCBridgeInfo = {
tokenSymbolOnArbitrum: 'USDC.e',
supportedBridges: [
FastBridgeNames.Celer,
FastBridgeNames.LIFI,
// FastBridgeNames.LIFI,
FastBridgeNames.Wormhole,
FastBridgeNames.Router
],
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 65782bd

Please sign in to comment.