@dhedge/trading-widget 1.1.2 → 1.1.3
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/{index-12cdd57d.js → index-037c1d88.js} +5 -2
- package/{index-9b6c0638.cjs → index-658eed6d.cjs} +2 -2
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/{pyth-adapter-90f8dd5f.cjs → pyth-adapter-4374c971.cjs} +1 -1
- package/{pyth-adapter-5a825d46.js → pyth-adapter-9083af33.js} +1 -1
|
@@ -30894,7 +30894,7 @@ const jy = (n) => bz.some(
|
|
|
30894
30894
|
}) => {
|
|
30895
30895
|
if (!r)
|
|
30896
30896
|
return null;
|
|
30897
|
-
const d = new a$(), p = (await import("./pyth-adapter-
|
|
30897
|
+
const d = new a$(), p = (await import("./pyth-adapter-9083af33.js")).PythAdapter, v = new r$(
|
|
30898
30898
|
// Check compatibility
|
|
30899
30899
|
// Remove casting after viem update https://github.com/Synthetixio/erc7412/blob/main/package.json#L30
|
|
30900
30900
|
[new p(Sz)],
|
|
@@ -34642,7 +34642,10 @@ const Ik = (n, r) => {
|
|
|
34642
34642
|
receiveAssetValue: n
|
|
34643
34643
|
}), p = Ik(d, 100);
|
|
34644
34644
|
pt(() => {
|
|
34645
|
-
|
|
34645
|
+
if (r) {
|
|
34646
|
+
const v = p < 0 ? Math.abs(p) : 0;
|
|
34647
|
+
u({ minSlippage: v });
|
|
34648
|
+
}
|
|
34646
34649
|
}, [u, r, p]);
|
|
34647
34650
|
}, V8 = () => {
|
|
34648
34651
|
const { chainId: n, address: r, deprecated: o } = At(), { isPrivateVault: u = !1 } = Kd({
|