Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions coins/src/adapters/markets/curve/contracts.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,10 @@
"addressProvider": "0x4574921eb950d3Fd5B01562162EC566Cb8bc3648",
"gasTokenDummy": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"wrapped": "0x6100E367285b01F48D07953803A2d8dCA5D19873"
},
"etlk": {
"addressProvider": "0x4574921eb950d3Fd5B01562162EC566Cb8bc3648",
"gasTokenDummy": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"wrapped": "0xc9B53AB2679f573e480d01e0f49e2B5CFB7a3EAb"
}
}
12 changes: 11 additions & 1 deletion coins/src/adapters/markets/curve/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,15 @@ export function curve16(timestamp: number = 0) {
]),
]);
}
export function curve17(timestamp: number = 0) {
return Promise.all([
getTokenPrices2("etlk", [], timestamp, "eth-custom", [
"0x0714027E44802b2Ff76389daF5371990CC3a4C24",
'0x5D37F9B272ca7cdA2A05245b9a503746EefAC88f',
"0x942644106B073E30D72c2C5D7529D5C296ea91ab"
]),
]);
}

export const adapters = {
curve,
Expand All @@ -226,5 +235,6 @@ export const adapters = {
curve13,
curve14,
curve15,
curve16
curve16,
curve17
};
4 changes: 2 additions & 2 deletions coins/src/adapters/tokenMapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -6583,8 +6583,8 @@
},
"0x5Bff88cA1442c2496f7E475E9e7786383Bc070c0": {
"decimals": "18",
"symbol": "sFRAX",
"to": "coingecko#staked-frax"
"symbol": "sfrxUSD",
"to": "coingecko#staked-frax-usd"
},
"0xDD7d5e4Ea2125d43C16eEd8f1FFeFffa2F4b4aF6": {
"decimals": "18",
Expand Down
8 changes: 7 additions & 1 deletion coins/src/adapters/yield/pendle/pendle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,13 @@ export default async function getTokenPrices(
const syPrice = allSyPrices[i]
const lpRate = allLpRates0[i] ?? allLpRates1800[i] ?? allLpRates3600[i]
if (!syPrice || !lpRate) return;
const lpPrice = syPrice * (lpRate / (10 ** allSyDecimals[i]));

const asset = allAssetInfos[i].assetAddress
const assetPrice = yieldTokenDataMap[asset]?.price
if (assetExceptions.includes(info.sy) && !assetPrice) return;
const syRate = assetExceptions.includes(info.sy) ? syPrice / assetPrice : syPrice

const lpPrice = syRate * (lpRate / (10 ** allSyDecimals[i]));

addToDBWritesList(
writes,
Expand Down
4 changes: 2 additions & 2 deletions defi/src/protocols/data4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29125,14 +29125,14 @@ const data4: Protocol[] = [
symbol: "-",
url: "https://surfliquid.com/",
description:
"Liquid staking protocol on Base chain.",
"SurfLiquid is an AI-powered DeFi platform designed to automate and optimise yield generation across the most profitable opportunities in decentralised finance.",
chain: "Base",
logo: `${baseIconsUrl}/surf-liquid.jpg`,
audits: "0",
audit_note: null,
gecko_id: null,
cmcId: null,
category: "Liquid Staking",
category: "Yield",
chains: ["Base"],
forkedFromIds: [],
module: "surf-liquid/index.js",
Expand Down