@alephium/powfi-sdk 0.0.1-rc.22 → 0.0.1-rc.23
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/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/clmm/tick.ts +3 -3
package/lib/index.js
CHANGED
|
@@ -14281,7 +14281,7 @@ var TickUtils = class {
|
|
|
14281
14281
|
}
|
|
14282
14282
|
static getNextTick(tick, tickSpacing, tokenBase, tokenQuote, baseIn, isAdd) {
|
|
14283
14283
|
const reverse = tokenBase.id > tokenQuote.id == baseIn;
|
|
14284
|
-
const delta = isAdd == reverse ? tickSpacing :
|
|
14284
|
+
const delta = isAdd == reverse ? -tickSpacing : tickSpacing;
|
|
14285
14285
|
return tick + delta;
|
|
14286
14286
|
}
|
|
14287
14287
|
static getAlignedPrice(priceIn, tokenBase, tokenQuote, tickSpacing, baseIn) {
|