@strkfarm/sdk 1.1.6 → 1.1.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.
|
@@ -66890,7 +66890,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
66890
66890
|
* Calculates assets before and now in a given token of TVL per share to observe growth
|
|
66891
66891
|
* @returns {Promise<number>} The weighted average APY across all pools
|
|
66892
66892
|
*/
|
|
66893
|
-
async netAPY(blockIdentifier = "latest", sinceBlocks =
|
|
66893
|
+
async netAPY(blockIdentifier = "latest", sinceBlocks = 6e5) {
|
|
66894
66894
|
const tvlNow = await this._getTVL(blockIdentifier);
|
|
66895
66895
|
const supplyNow = await this.totalSupply(blockIdentifier);
|
|
66896
66896
|
const priceNow = await this.getCurrentPrice(blockIdentifier);
|
|
@@ -67957,7 +67957,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67957
67957
|
netRisk: _corelatedPoolRiskFactors.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _corelatedPoolRiskFactors.reduce((acc, curr) => acc + curr.weight, 0),
|
|
67958
67958
|
notARisks: getNoRiskTags(_corelatedPoolRiskFactors)
|
|
67959
67959
|
},
|
|
67960
|
-
apyMethodology: "APY based on
|
|
67960
|
+
apyMethodology: "APY based on 30-day historical performance, including fees and rewards.",
|
|
67961
67961
|
additionalInfo: {
|
|
67962
67962
|
newBounds: {
|
|
67963
67963
|
lower: -1,
|
|
@@ -68068,6 +68068,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
68068
68068
|
Global.getDefaultTokens().find((t) => t.symbol === "ETH"),
|
|
68069
68069
|
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
68070
68070
|
],
|
|
68071
|
+
apyMethodology: "APY based on 7-day historical performance, including fees and rewards.",
|
|
68071
68072
|
additionalInfo: {
|
|
68072
68073
|
newBounds: "Managed by Re7",
|
|
68073
68074
|
truePrice: 1,
|
package/dist/index.browser.mjs
CHANGED
|
@@ -15315,7 +15315,7 @@ var EkuboCLVault = class _EkuboCLVault extends BaseStrategy {
|
|
|
15315
15315
|
* Calculates assets before and now in a given token of TVL per share to observe growth
|
|
15316
15316
|
* @returns {Promise<number>} The weighted average APY across all pools
|
|
15317
15317
|
*/
|
|
15318
|
-
async netAPY(blockIdentifier = "latest", sinceBlocks =
|
|
15318
|
+
async netAPY(blockIdentifier = "latest", sinceBlocks = 6e5) {
|
|
15319
15319
|
const tvlNow = await this._getTVL(blockIdentifier);
|
|
15320
15320
|
const supplyNow = await this.totalSupply(blockIdentifier);
|
|
15321
15321
|
const priceNow = await this.getCurrentPrice(blockIdentifier);
|
|
@@ -16382,7 +16382,7 @@ var xSTRKSTRK = {
|
|
|
16382
16382
|
netRisk: _corelatedPoolRiskFactors.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _corelatedPoolRiskFactors.reduce((acc, curr) => acc + curr.weight, 0),
|
|
16383
16383
|
notARisks: getNoRiskTags(_corelatedPoolRiskFactors)
|
|
16384
16384
|
},
|
|
16385
|
-
apyMethodology: "APY based on
|
|
16385
|
+
apyMethodology: "APY based on 30-day historical performance, including fees and rewards.",
|
|
16386
16386
|
additionalInfo: {
|
|
16387
16387
|
newBounds: {
|
|
16388
16388
|
lower: -1,
|
|
@@ -16493,6 +16493,7 @@ var ETHUSDCRe7Strategy = {
|
|
|
16493
16493
|
Global.getDefaultTokens().find((t) => t.symbol === "ETH"),
|
|
16494
16494
|
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16495
16495
|
],
|
|
16496
|
+
apyMethodology: "APY based on 7-day historical performance, including fees and rewards.",
|
|
16496
16497
|
additionalInfo: {
|
|
16497
16498
|
newBounds: "Managed by Re7",
|
|
16498
16499
|
truePrice: 1,
|
package/dist/index.js
CHANGED
|
@@ -15447,7 +15447,7 @@ var EkuboCLVault = class _EkuboCLVault extends BaseStrategy {
|
|
|
15447
15447
|
* Calculates assets before and now in a given token of TVL per share to observe growth
|
|
15448
15448
|
* @returns {Promise<number>} The weighted average APY across all pools
|
|
15449
15449
|
*/
|
|
15450
|
-
async netAPY(blockIdentifier = "latest", sinceBlocks =
|
|
15450
|
+
async netAPY(blockIdentifier = "latest", sinceBlocks = 6e5) {
|
|
15451
15451
|
const tvlNow = await this._getTVL(blockIdentifier);
|
|
15452
15452
|
const supplyNow = await this.totalSupply(blockIdentifier);
|
|
15453
15453
|
const priceNow = await this.getCurrentPrice(blockIdentifier);
|
|
@@ -16514,7 +16514,7 @@ var xSTRKSTRK = {
|
|
|
16514
16514
|
netRisk: _corelatedPoolRiskFactors.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _corelatedPoolRiskFactors.reduce((acc, curr) => acc + curr.weight, 0),
|
|
16515
16515
|
notARisks: getNoRiskTags(_corelatedPoolRiskFactors)
|
|
16516
16516
|
},
|
|
16517
|
-
apyMethodology: "APY based on
|
|
16517
|
+
apyMethodology: "APY based on 30-day historical performance, including fees and rewards.",
|
|
16518
16518
|
additionalInfo: {
|
|
16519
16519
|
newBounds: {
|
|
16520
16520
|
lower: -1,
|
|
@@ -16625,6 +16625,7 @@ var ETHUSDCRe7Strategy = {
|
|
|
16625
16625
|
Global.getDefaultTokens().find((t) => t.symbol === "ETH"),
|
|
16626
16626
|
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16627
16627
|
],
|
|
16628
|
+
apyMethodology: "APY based on 7-day historical performance, including fees and rewards.",
|
|
16628
16629
|
additionalInfo: {
|
|
16629
16630
|
newBounds: "Managed by Re7",
|
|
16630
16631
|
truePrice: 1,
|
package/dist/index.mjs
CHANGED
|
@@ -15364,7 +15364,7 @@ var EkuboCLVault = class _EkuboCLVault extends BaseStrategy {
|
|
|
15364
15364
|
* Calculates assets before and now in a given token of TVL per share to observe growth
|
|
15365
15365
|
* @returns {Promise<number>} The weighted average APY across all pools
|
|
15366
15366
|
*/
|
|
15367
|
-
async netAPY(blockIdentifier = "latest", sinceBlocks =
|
|
15367
|
+
async netAPY(blockIdentifier = "latest", sinceBlocks = 6e5) {
|
|
15368
15368
|
const tvlNow = await this._getTVL(blockIdentifier);
|
|
15369
15369
|
const supplyNow = await this.totalSupply(blockIdentifier);
|
|
15370
15370
|
const priceNow = await this.getCurrentPrice(blockIdentifier);
|
|
@@ -16431,7 +16431,7 @@ var xSTRKSTRK = {
|
|
|
16431
16431
|
netRisk: _corelatedPoolRiskFactors.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _corelatedPoolRiskFactors.reduce((acc, curr) => acc + curr.weight, 0),
|
|
16432
16432
|
notARisks: getNoRiskTags(_corelatedPoolRiskFactors)
|
|
16433
16433
|
},
|
|
16434
|
-
apyMethodology: "APY based on
|
|
16434
|
+
apyMethodology: "APY based on 30-day historical performance, including fees and rewards.",
|
|
16435
16435
|
additionalInfo: {
|
|
16436
16436
|
newBounds: {
|
|
16437
16437
|
lower: -1,
|
|
@@ -16542,6 +16542,7 @@ var ETHUSDCRe7Strategy = {
|
|
|
16542
16542
|
Global.getDefaultTokens().find((t) => t.symbol === "ETH"),
|
|
16543
16543
|
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16544
16544
|
],
|
|
16545
|
+
apyMethodology: "APY based on 7-day historical performance, including fees and rewards.",
|
|
16545
16546
|
additionalInfo: {
|
|
16546
16547
|
newBounds: "Managed by Re7",
|
|
16547
16548
|
truePrice: 1,
|
package/package.json
CHANGED
|
@@ -290,10 +290,10 @@ export class EkuboCLVault extends BaseStrategy<
|
|
|
290
290
|
*/
|
|
291
291
|
async netAPY(
|
|
292
292
|
blockIdentifier: BlockIdentifier = "latest",
|
|
293
|
-
sinceBlocks =
|
|
293
|
+
sinceBlocks = 600000
|
|
294
294
|
): Promise<number> {
|
|
295
295
|
// no special provisions required to account for defi spring rewards
|
|
296
|
-
// or strategy fees, bcz this returns realisitic apy based on
|
|
296
|
+
// or strategy fees, bcz this returns realisitic apy based on 30day performance
|
|
297
297
|
|
|
298
298
|
const tvlNow = await this._getTVL(blockIdentifier);
|
|
299
299
|
const supplyNow = await this.totalSupply(blockIdentifier);
|
|
@@ -321,14 +321,14 @@ export class EkuboCLVault extends BaseStrategy<
|
|
|
321
321
|
const supplyBefore = await this.totalSupply(blockBefore);
|
|
322
322
|
const priceBefore = await this.getCurrentPrice(blockBefore);
|
|
323
323
|
|
|
324
|
-
const tvlInToken0Now = tvlNow.amount0
|
|
325
|
-
.multipliedBy(priceNow.price)
|
|
324
|
+
const tvlInToken0Now = (tvlNow.amount0
|
|
325
|
+
.multipliedBy(priceNow.price))
|
|
326
326
|
.plus(tvlNow.amount1);
|
|
327
327
|
const tvlPerShareNow = tvlInToken0Now
|
|
328
328
|
.multipliedBy(1e18)
|
|
329
329
|
.dividedBy(adjustedSupplyNow.toString());
|
|
330
|
-
const tvlInToken0Bf = tvlBefore.amount0
|
|
331
|
-
.multipliedBy(priceBefore.price)
|
|
330
|
+
const tvlInToken0Bf = (tvlBefore.amount0
|
|
331
|
+
.multipliedBy(priceBefore.price))
|
|
332
332
|
.plus(tvlBefore.amount1);
|
|
333
333
|
const tvlPerShareBf = tvlInToken0Bf
|
|
334
334
|
.multipliedBy(1e18)
|
|
@@ -1703,7 +1703,7 @@ const xSTRKSTRK: IStrategyMetadata<CLVaultStrategySettings> = {
|
|
|
1703
1703
|
notARisks: getNoRiskTags(_corelatedPoolRiskFactors),
|
|
1704
1704
|
},
|
|
1705
1705
|
apyMethodology:
|
|
1706
|
-
"APY based on
|
|
1706
|
+
"APY based on 30-day historical performance, including fees and rewards.",
|
|
1707
1707
|
additionalInfo: {
|
|
1708
1708
|
newBounds: {
|
|
1709
1709
|
lower: -1,
|
|
@@ -1816,6 +1816,8 @@ const ETHUSDCRe7Strategy: IStrategyMetadata<CLVaultStrategySettings> = {
|
|
|
1816
1816
|
Global.getDefaultTokens().find((t) => t.symbol === "ETH")!,
|
|
1817
1817
|
Global.getDefaultTokens().find((t) => t.symbol === "USDC")!
|
|
1818
1818
|
],
|
|
1819
|
+
apyMethodology:
|
|
1820
|
+
"APY based on 7-day historical performance, including fees and rewards.",
|
|
1819
1821
|
additionalInfo: {
|
|
1820
1822
|
newBounds: "Managed by Re7",
|
|
1821
1823
|
truePrice: 1,
|