@curvefi/api 2.41.0 → 2.41.1
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.
- package/README.md +1 -1
- package/lib/pools/PoolTemplate.d.ts +1 -1
- package/lib/pools/PoolTemplate.js +1 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -136,7 +136,7 @@ export declare class PoolTemplate {
|
|
|
136
136
|
claimCrvEstimateGas(): Promise<number>;
|
|
137
137
|
claimCrv(): Promise<string>;
|
|
138
138
|
boost: (address?: string) => Promise<string>;
|
|
139
|
-
|
|
139
|
+
userCrvApy: (address?: string) => Promise<number>;
|
|
140
140
|
maxBoostedStake: (...addresses: string[]) => Promise<IDict<string> | string>;
|
|
141
141
|
rewardTokens: ((useApi?: any) => Promise<{
|
|
142
142
|
token: string;
|
|
@@ -619,7 +619,7 @@ var PoolTemplate = /** @class */ (function () {
|
|
|
619
619
|
});
|
|
620
620
|
});
|
|
621
621
|
};
|
|
622
|
-
this.
|
|
622
|
+
this.userCrvApy = function (address) {
|
|
623
623
|
if (address === void 0) { address = ""; }
|
|
624
624
|
return __awaiter(_this, void 0, void 0, function () {
|
|
625
625
|
var _c, baseApy, maxApy, boost;
|
|
@@ -632,8 +632,6 @@ var PoolTemplate = /** @class */ (function () {
|
|
|
632
632
|
return [4 /*yield*/, this.statsTokenApy()];
|
|
633
633
|
case 1:
|
|
634
634
|
_c = _d.sent(), baseApy = _c[0], maxApy = _c[1];
|
|
635
|
-
if (curve.chainId !== 1)
|
|
636
|
-
return [2 /*return*/, baseApy];
|
|
637
635
|
return [4 /*yield*/, this.boost(address)];
|
|
638
636
|
case 2:
|
|
639
637
|
boost = _d.sent();
|