Skip to content

Commit

Permalink
build: v1.5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorovdg committed Aug 15, 2024
1 parent 3a2f7df commit 151ac0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@curvefi/stablecoin-api",
"version": "1.5.5",
"version": "1.5.6",
"description": "JavaScript library for Curve Stablecoin",
"main": "lib/index.js",
"author": "Macket",
Expand Down
6 changes: 4 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,9 @@ export const totalSupply = async (): Promise<{ total: string, minted: string, pe
}

export const getLsdApy = memoize(async(name: 'wstETH' | 'sfrxETH'): Promise<{
apy: number,
baseApy: number,
apy: number,
baseApy: number,
apyMean30d: number,
}> => {
const response = await axios.get('https://yields.llama.fi/pools');
const {data} = response.data;
Expand Down Expand Up @@ -323,6 +324,7 @@ export const getLsdApy = memoize(async(name: 'wstETH' | 'sfrxETH'): Promise<{
return {
apy: result.apy,
baseApy: result.apyBase,
apyMean30d: result.apyMean30d,
};
}

Expand Down

0 comments on commit 151ac0f

Please sign in to comment.