@merkl/api 0.20.28 → 0.20.29
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.
@@ -713,15 +713,9 @@ export class ClammDynamicData {
|
|
713
713
|
/**
|
714
714
|
* General APR (@notice potentially with a boost)
|
715
715
|
*/
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
: 0.00001;
|
720
|
-
let poolBalanceToken1WithoutBlacklist = poolBalanceToken1 - (blacklistedBalance1 ?? 0);
|
721
|
-
poolBalanceToken1WithoutBlacklist = !!poolBalanceToken1WithoutBlacklist
|
722
|
-
? poolBalanceToken1WithoutBlacklist
|
723
|
-
: 0.00001;
|
724
|
-
const poolLiquidityWithoutBlacklist = poolTotalLiquidity - (blacklistedLiquidity ?? 0);
|
716
|
+
const poolBalanceToken0WithoutBlacklist = Math.max(poolBalanceToken0 - (blacklistedBalance0 ?? 0), 0.00001);
|
717
|
+
const poolBalanceToken1WithoutBlacklist = Math.max(poolBalanceToken1 - (blacklistedBalance1 ?? 0), 0.00001);
|
718
|
+
const poolLiquidityWithoutBlacklist = Math.max(poolTotalLiquidity - (blacklistedLiquidity ?? 0), 0);
|
725
719
|
const tvl = isStrykeCampaign(amm)
|
726
720
|
? (await axios.get(`https://api.stryke.xyz/clamm/stats/tvl/${pool.address}?chainId=${chainId}`))
|
727
721
|
.data
|