Skip to content

Commit

Permalink
Merge pull request #9422 from DefiLlama/hedera-unlocks
Browse files Browse the repository at this point in the history
LHYPE assets
  • Loading branch information
waynebruce0x authored Mar 6, 2025
2 parents 4710c19 + 35be42b commit ed47cd6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions coins/src/adapters/moneyMarkets/aave-debt/aaveDebt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ export const config = {
{ version: "v3", pool: "0x794a61358D6845594F94dc1DB02A252b5b4814aD" },
],
},
hyperliquid: {
pools: [
{ version: "v3", pool: "0xceCcE0EB9DD2Ef7996e01e25DD70e461F918A14b" },
],
},
} as any;

export default async function getTokenPrices(chain: string, timestamp: number) {
Expand Down
12 changes: 12 additions & 0 deletions coins/src/adapters/yield/derivs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,18 @@ const configs: { [adapter: string]: Config } = {
underlying: nullAddress, // IP
address: "0x5267F7eE069CEB3D8F1c760c215569b79d0685aD",
},
hywstHYPE: {
rate: async ({ api }) => {
const rate = await api.call({
abi: "uint256:balancePerShare",
target: "0xfFaa4a3D97fE9107Cef8a3F48c069F577Ff76cC1",
});
return rate / 1e18;
},
chain: "hyperliquid",
underlying: "0xfFaa4a3D97fE9107Cef8a3F48c069F577Ff76cC1",
address: "0xC8b6E0acf159E058E22c564C0C513ec21f8a1Bf5",
},
};

export async function derivs(timestamp: number) {
Expand Down

0 comments on commit ed47cd6

Please sign in to comment.