@sodax/dapp-kit 1.5.1-beta → 1.5.3-beta
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 +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/utils/dex-utils.ts +2 -1
package/dist/index.js
CHANGED
|
@@ -2266,7 +2266,8 @@ function createDepositParamsProps({
|
|
|
2266
2266
|
const originalAsset = tokenIndex === 0 ? poolSpokeAssets.token0 : poolSpokeAssets.token1;
|
|
2267
2267
|
return {
|
|
2268
2268
|
asset: originalAsset.address,
|
|
2269
|
-
|
|
2269
|
+
// Use deposit token decimals (original asset) for correct unit parsing
|
|
2270
|
+
amount: viem.parseUnits(String(amount), originalAsset.decimals),
|
|
2270
2271
|
poolToken: token.address
|
|
2271
2272
|
};
|
|
2272
2273
|
}
|