@magmaprotocol/magma-clmm-sdk 0.5.43 → 0.5.44
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2594,7 +2594,7 @@ var BinMath = class {
|
|
|
2594
2594
|
static getPriceOfBinByBinId(binId, binStep, decimalsA, decimalsB) {
|
|
2595
2595
|
const twoDec = new Decimal6(2);
|
|
2596
2596
|
const price = new Decimal6(get_price_from_real_id2(binId, binStep));
|
|
2597
|
-
return price.div(twoDec.pow(128)).mul(Decimal6.pow(10,
|
|
2597
|
+
return price.div(twoDec.pow(128)).mul(Decimal6.pow(10, decimalsA - decimalsB));
|
|
2598
2598
|
}
|
|
2599
2599
|
};
|
|
2600
2600
|
|