From 151ac0f3c8a18437b23f09f9da4704dd1008146a Mon Sep 17 00:00:00 2001 From: fedorovdg Date: Thu, 15 Aug 2024 20:47:49 +0300 Subject: [PATCH] build: v1.5.6 --- package.json | 2 +- src/utils.ts | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e55f9bf..3dc3d85 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/utils.ts b/src/utils.ts index 3b0dd1a..65b4c40 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -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; @@ -323,6 +324,7 @@ export const getLsdApy = memoize(async(name: 'wstETH' | 'sfrxETH'): Promise<{ return { apy: result.apy, baseApy: result.apyBase, + apyMean30d: result.apyMean30d, }; }