Skip to content

Commit 0a7fe49

Browse files
authored
surf liquid description and category (#10781)
* surf liquid description and category * sfrxUSD sei * curve etlk * pendle exceptions patch
1 parent a30a93f commit 0a7fe49

File tree

5 files changed

+27
-6
lines changed

5 files changed

+27
-6
lines changed

coins/src/adapters/markets/curve/contracts.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,5 +158,10 @@
158158
"addressProvider": "0x4574921eb950d3Fd5B01562162EC566Cb8bc3648",
159159
"gasTokenDummy": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
160160
"wrapped": "0x6100E367285b01F48D07953803A2d8dCA5D19873"
161+
},
162+
"etlk": {
163+
"addressProvider": "0x4574921eb950d3Fd5B01562162EC566Cb8bc3648",
164+
"gasTokenDummy": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
165+
"wrapped": "0xc9B53AB2679f573e480d01e0f49e2B5CFB7a3EAb"
161166
}
162167
}

coins/src/adapters/markets/curve/index.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,15 @@ export function curve16(timestamp: number = 0) {
208208
]),
209209
]);
210210
}
211+
export function curve17(timestamp: number = 0) {
212+
return Promise.all([
213+
getTokenPrices2("etlk", [], timestamp, "eth-custom", [
214+
"0x0714027E44802b2Ff76389daF5371990CC3a4C24",
215+
'0x5D37F9B272ca7cdA2A05245b9a503746EefAC88f',
216+
"0x942644106B073E30D72c2C5D7529D5C296ea91ab"
217+
]),
218+
]);
219+
}
211220

212221
export const adapters = {
213222
curve,
@@ -226,5 +235,6 @@ export const adapters = {
226235
curve13,
227236
curve14,
228237
curve15,
229-
curve16
238+
curve16,
239+
curve17
230240
};

coins/src/adapters/tokenMapping.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6583,8 +6583,8 @@
65836583
},
65846584
"0x5Bff88cA1442c2496f7E475E9e7786383Bc070c0": {
65856585
"decimals": "18",
6586-
"symbol": "sFRAX",
6587-
"to": "coingecko#staked-frax"
6586+
"symbol": "sfrxUSD",
6587+
"to": "coingecko#staked-frax-usd"
65886588
},
65896589
"0xDD7d5e4Ea2125d43C16eEd8f1FFeFffa2F4b4aF6": {
65906590
"decimals": "18",

coins/src/adapters/yield/pendle/pendle.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,13 @@ export default async function getTokenPrices(
183183
const syPrice = allSyPrices[i]
184184
const lpRate = allLpRates0[i] ?? allLpRates1800[i] ?? allLpRates3600[i]
185185
if (!syPrice || !lpRate) return;
186-
const lpPrice = syPrice * (lpRate / (10 ** allSyDecimals[i]));
186+
187+
const asset = allAssetInfos[i].assetAddress
188+
const assetPrice = yieldTokenDataMap[asset]?.price
189+
if (assetExceptions.includes(info.sy) && !assetPrice) return;
190+
const syRate = assetExceptions.includes(info.sy) ? syPrice / assetPrice : syPrice
191+
192+
const lpPrice = syRate * (lpRate / (10 ** allSyDecimals[i]));
187193

188194
addToDBWritesList(
189195
writes,

defi/src/protocols/data4.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29128,14 +29128,14 @@ const data4: Protocol[] = [
2912829128
symbol: "-",
2912929129
url: "https://surfliquid.com/",
2913029130
description:
29131-
"Liquid staking protocol on Base chain.",
29131+
"SurfLiquid is an AI-powered DeFi platform designed to automate and optimise yield generation across the most profitable opportunities in decentralised finance.",
2913229132
chain: "Base",
2913329133
logo: `${baseIconsUrl}/surf-liquid.jpg`,
2913429134
audits: "0",
2913529135
audit_note: null,
2913629136
gecko_id: null,
2913729137
cmcId: null,
29138-
category: "Liquid Staking",
29138+
category: "Yield",
2913929139
chains: ["Base"],
2914029140
forkedFromIds: [],
2914129141
module: "surf-liquid/index.js",

0 commit comments

Comments
 (0)