From e748bce0dd10a47bd9dbc85cfa4792377ca3a346 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 11 Oct 2024 11:24:34 +0800 Subject: [PATCH 1/3] add interport --- components/transaction/DepositThirdPartyBridge.vue | 8 ++++++++ public/img/Interport.svg | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 public/img/Interport.svg diff --git a/components/transaction/DepositThirdPartyBridge.vue b/components/transaction/DepositThirdPartyBridge.vue index 89b40eaf1..4166cfd1a 100644 --- a/components/transaction/DepositThirdPartyBridge.vue +++ b/components/transaction/DepositThirdPartyBridge.vue @@ -72,6 +72,12 @@ const ThirdPartyBridges = [ logo: "/img/Symbiosys.svg", url: "https://app.symbiosis.finance/swap?chainIn=Ethereum&chainOut=ZkLink&tokenIn=ETH&tokenOut=ETH", }, + { + name: "Interport", + logo: "/img/Interport.svg", + url: "https://app.interport.fi/bridge/1/42161/ETH/ETH", + desc: "Bridge more than $200 USDC to Nova to earn Nova Points.", + }, ]; const bridgePoints = ref(ThirdPartyBridges.map((item) => ({ ...item, points: 0 }))); const API_URL = "https://app-api.zklink.io/lrt-points/cache/bridge/latest/points"; @@ -81,12 +87,14 @@ const fetchBridgePoints = async () => { $fetch(API_URL, { params: { name: "meson" } }), // $fetch(API_URL, { params: { name: "owlet" } }), $fetch(API_URL, { params: { name: "symbiosis" } }), + $fetch(API_URL, { params: { name: "interport" } }), ])) as any[]; console.log(points, "points"); const _bridgePoints = bridgePoints.value; _bridgePoints[1].points = points[0]?.data; _bridgePoints[2].points = points[1]?.data; _bridgePoints[3].points = points[2]?.data; + _bridgePoints[4].points = points[3]?.data; bridgePoints.value = _bridgePoints; }; diff --git a/public/img/Interport.svg b/public/img/Interport.svg new file mode 100644 index 000000000..3a72a2001 --- /dev/null +++ b/public/img/Interport.svg @@ -0,0 +1,9 @@ + + + + + + + + + From e35b20e3473d178c209ecf53d78bf871c0bc1d0e Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 11 Oct 2024 14:37:55 +0800 Subject: [PATCH 2/3] hide interport info --- components/transaction/DepositThirdPartyBridge.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/components/transaction/DepositThirdPartyBridge.vue b/components/transaction/DepositThirdPartyBridge.vue index 4166cfd1a..2e791cabb 100644 --- a/components/transaction/DepositThirdPartyBridge.vue +++ b/components/transaction/DepositThirdPartyBridge.vue @@ -77,6 +77,7 @@ const ThirdPartyBridges = [ logo: "/img/Interport.svg", url: "https://app.interport.fi/bridge/1/42161/ETH/ETH", desc: "Bridge more than $200 USDC to Nova to earn Nova Points.", + noTooltip: true }, ]; const bridgePoints = ref(ThirdPartyBridges.map((item) => ({ ...item, points: 0 }))); From 764357116e40a5cc3ce3212ed6cf40eb58b717d0 Mon Sep 17 00:00:00 2001 From: leo Date: Sat, 12 Oct 2024 00:08:53 +0800 Subject: [PATCH 3/3] add interport --- components/transaction/DepositThirdPartyBridge.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/transaction/DepositThirdPartyBridge.vue b/components/transaction/DepositThirdPartyBridge.vue index 2e791cabb..38a6c87bc 100644 --- a/components/transaction/DepositThirdPartyBridge.vue +++ b/components/transaction/DepositThirdPartyBridge.vue @@ -75,7 +75,7 @@ const ThirdPartyBridges = [ { name: "Interport", logo: "/img/Interport.svg", - url: "https://app.interport.fi/bridge/1/42161/ETH/ETH", + url: "https://app.interport.fi/bridge/1/810180/USDT/USDT", desc: "Bridge more than $200 USDC to Nova to earn Nova Points.", noTooltip: true },