Skip to content

Commit

Permalink
add interport
Browse files Browse the repository at this point in the history
  • Loading branch information
leochw committed Oct 11, 2024
1 parent b17aa8e commit e748bce
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/transaction/DepositThirdPartyBridge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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;
};
Expand Down
Loading

0 comments on commit e748bce

Please sign in to comment.