@curvefi/api 2.67.6 → 2.67.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -188,6 +188,7 @@ export declare class PoolTemplate extends CorePool {
188
188
  _getCoinIdx: (coin: string | number, useUnderlying?: boolean) => number;
189
189
  _getRates: () => Promise<bigint[]>;
190
190
  private _storedRatesBN;
191
+ getStoredRates(useUnderlying?: boolean): Promise<string[]>;
191
192
  _underlyingPrices: () => Promise<number[]>;
192
193
  _wrappedPrices: () => Promise<number[]>;
193
194
  private getGaugeStatus;
@@ -1864,6 +1864,17 @@ export class PoolTemplate extends CorePool {
1864
1864
  throw Error(`swapWrapped method doesn't exist for pool ${this.name} (id: ${this.name})`);
1865
1865
  });
1866
1866
  }
1867
+ getStoredRates() {
1868
+ return __awaiter(this, arguments, void 0, function* (useUnderlying = false) {
1869
+ try {
1870
+ const storedRatesBN = yield this._storedRatesBN(useUnderlying);
1871
+ return storedRatesBN.map(rate => rate.toString());
1872
+ }
1873
+ catch (error) {
1874
+ throw new Error(`Failed to get stored rates for pool ${this.name}`);
1875
+ }
1876
+ });
1877
+ }
1867
1878
  getGaugeStatus() {
1868
1879
  return __awaiter(this, void 0, void 0, function* () {
1869
1880
  const gaugeData = yield _getAllGaugesFormatted();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.67.6",
3
+ "version": "2.67.7",
4
4
  "description": "JavaScript library for curve.finance",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",