@curvefi/api 2.3.2 → 2.4.0

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.
@@ -1,5 +1,5 @@
1
1
  import memoize from "memoizee";
2
- import { IDict, IReward } from '../interfaces';
2
+ import { IDict, IReward, IProfit } from '../interfaces';
3
3
  export declare class PoolTemplate {
4
4
  id: string;
5
5
  name: string;
@@ -120,9 +120,13 @@ export declare class PoolTemplate {
120
120
  stake(lpTokenAmount: number | string): Promise<string>;
121
121
  private unstakeEstimateGas;
122
122
  unstake(lpTokenAmount: number | string): Promise<string>;
123
+ crvProfit: (address?: string) => Promise<IProfit>;
123
124
  claimableCrv(address?: string): Promise<string>;
124
125
  claimCrvEstimateGas(): Promise<number>;
125
126
  claimCrv(): Promise<string>;
127
+ boost: (address?: string) => Promise<string>;
128
+ currentCrvApy: (address?: string) => Promise<string>;
129
+ maxBoostedStake: (...addresses: string[]) => Promise<IDict<string> | string>;
126
130
  rewardTokens: (() => Promise<{
127
131
  token: string;
128
132
  symbol: string;
@@ -132,6 +136,7 @@ export declare class PoolTemplate {
132
136
  symbol: string;
133
137
  decimals: number;
134
138
  }[]>>;
139
+ rewardsProfit: (address?: string) => Promise<IProfit[]>;
135
140
  claimableRewards(address?: string): Promise<{
136
141
  token: string;
137
142
  symbol: string;
@@ -192,6 +197,24 @@ export declare class PoolTemplate {
192
197
  private walletUnderlyingCoinBalances;
193
198
  private walletWrappedCoinBalances;
194
199
  private walletAllCoinBalances;
200
+ private _userLpTotalBalance;
201
+ userBalances(address?: string): Promise<string[]>;
202
+ userWrappedBalances(address?: string): Promise<string[]>;
203
+ userLiquidityUSD(address?: string): Promise<string>;
204
+ baseProfit(address?: string): Promise<{
205
+ day: string;
206
+ week: string;
207
+ month: string;
208
+ year: string;
209
+ }>;
210
+ userShare(address?: string): Promise<{
211
+ lpUser: string;
212
+ lpTotal: string;
213
+ lpShare: string;
214
+ gaugeUser?: string;
215
+ gaugeTotal?: string;
216
+ gaugeShare?: string;
217
+ }>;
195
218
  private _swapExpected;
196
219
  swapExpected(inputCoin: string | number, outputCoin: string | number, amount: number | string): Promise<string>;
197
220
  swapPriceImpact(inputCoin: string | number, outputCoin: string | number, amount: number | string): Promise<string>;
@@ -209,9 +232,7 @@ export declare class PoolTemplate {
209
232
  swapWrappedApprove(inputCoin: string | number, amount: number | string): Promise<string[]>;
210
233
  private swapWrappedEstimateGas;
211
234
  swapWrapped(inputCoin: string | number, outputCoin: string | number, amount: number | string, slippage?: number): Promise<string>;
212
- gaugeMaxBoostedDeposit: (...addresses: string[]) => Promise<IDict<string>>;
213
235
  gaugeOptimalDeposits: (...accounts: string[]) => Promise<IDict<string>>;
214
- boost: (address: string) => Promise<string>;
215
236
  private _getCoinIdx;
216
237
  private _getRates;
217
238
  private _balances;