@merkl/api 0.20.60 → 0.20.61
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.
@@ -649,8 +649,8 @@ export class ClammDynamicData {
|
|
649
649
|
catch {
|
650
650
|
log.warn(`merklDynamic data - failed to handle whitelisted positions of pool ${pool.address} on ${NETWORK_LABELS[chainId]} - ${pos.owner} ${pos.tickLower} ${pos.tickUpper} ${pos.liquidity}`);
|
651
651
|
}
|
652
|
-
blacklistedBalance0 = blacklistedBalance0.sub(
|
653
|
-
blacklistedBalance1 = blacklistedBalance1.sub(
|
652
|
+
blacklistedBalance0 = blacklistedBalance0.sub(BigInt(Math.floor((BN2Number(amount0, 0) * childALM.almBalance0) / almHolding.almBalance0)));
|
653
|
+
blacklistedBalance1 = blacklistedBalance1.sub(BigInt(Math.floor((BN2Number(amount1, 0) * childALM.almBalance1) / almHolding.almBalance1)));
|
654
654
|
if (c.campaignParameters.isOutOfRangeIncentivized
|
655
655
|
? BN2Number(amount0, decimalsToken0) > 0 || BN2Number(amount1, decimalsToken1) > 0
|
656
656
|
: BN2Number(amount0, decimalsToken0) > 0 && BN2Number(amount1, decimalsToken1) > 0) {
|