@dhedge/trading-widget 2.0.4 → 2.0.6
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/core-kit/const/tokens/polygon.d.ts +1 -1
- package/core-kit/types/trading.types.d.ts +1 -1
- package/{index-6f9f1263.js → index-2695acb4.js} +5 -5
- package/{index-fcb38d25.cjs → index-76aa975f.cjs} +2 -2
- package/index.cjs +1 -1
- package/index.d.ts +1 -1
- package/index.js +13 -13
- package/package.json +2 -1
- package/{pyth-adapter-9c02b4f7.js → pyth-adapter-7ad6b950.js} +1 -1
- package/{pyth-adapter-919fe86e.cjs → pyth-adapter-f5a7d59c.cjs} +1 -1
|
@@ -4,7 +4,7 @@ export declare const BRIDGED_USDC_POLYGON: TradingToken;
|
|
|
4
4
|
export declare const USDC_POLYGON: TradingToken;
|
|
5
5
|
export declare const PAXG_POLYGON: TradingToken;
|
|
6
6
|
export declare const WBTC_POLYGON: TradingToken;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const WPOL_POLYGON: TradingToken;
|
|
8
8
|
export declare const USDT_POLYGON: TradingToken;
|
|
9
9
|
export declare const DAI_POLYGON: TradingToken;
|
|
10
10
|
export declare const TBTC_POLYGON: TradingToken;
|
|
@@ -8,7 +8,7 @@ export interface TradingParams {
|
|
|
8
8
|
poolDepositAddress?: Address;
|
|
9
9
|
receiveAssetAddress: Address;
|
|
10
10
|
}
|
|
11
|
-
export type NativeTokenSymbol = 'ETH' | '
|
|
11
|
+
export type NativeTokenSymbol = 'ETH' | 'POL';
|
|
12
12
|
export type ChainNativeTokenMap = {
|
|
13
13
|
[key in ChainId]?: {
|
|
14
14
|
nativeTokenSymbol: NativeTokenSymbol;
|
|
@@ -28367,8 +28367,8 @@ const Tt = "0x0000000000000000000000000000000000000000", D8 = BigInt(
|
|
|
28367
28367
|
[Yi.id]: Yi
|
|
28368
28368
|
}, kh = {
|
|
28369
28369
|
[Ds.id]: {
|
|
28370
|
-
nativeTokenSymbol: "
|
|
28371
|
-
wrappedNativeTokenName: "
|
|
28370
|
+
nativeTokenSymbol: "POL",
|
|
28371
|
+
wrappedNativeTokenName: "WPOL",
|
|
28372
28372
|
address: "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
|
|
28373
28373
|
decimals: Ct
|
|
28374
28374
|
},
|
|
@@ -31373,7 +31373,7 @@ const Tt = "0x0000000000000000000000000000000000000000", D8 = BigInt(
|
|
|
31373
31373
|
value: ""
|
|
31374
31374
|
}, O7 = {
|
|
31375
31375
|
address: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
|
|
31376
|
-
symbol: "
|
|
31376
|
+
symbol: "WPOL",
|
|
31377
31377
|
decimals: 8,
|
|
31378
31378
|
value: ""
|
|
31379
31379
|
}, k7 = {
|
|
@@ -31450,7 +31450,7 @@ const Tt = "0x0000000000000000000000000000000000000000", D8 = BigInt(
|
|
|
31450
31450
|
"0xc1e02884af4a283ca25ab63c45360d220d69da52": "USDC",
|
|
31451
31451
|
"0xc3198eb5102fb3335c0e911ef1da4bc07e403dd1": "USDC",
|
|
31452
31452
|
"0xddd6b1f34e12c0230ab23cbd4514560b24438514": "ARB",
|
|
31453
|
-
"0xe9b5260d99d283ff887859c569baf8ad1bd12aac": "
|
|
31453
|
+
"0xe9b5260d99d283ff887859c569baf8ad1bd12aac": "wstETH"
|
|
31454
31454
|
}, L7 = {
|
|
31455
31455
|
"0xc1e02884af4a283ca25ab63c45360d220d69da52": [
|
|
31456
31456
|
"170141183460469231731687303715884105982",
|
|
@@ -36275,7 +36275,7 @@ const pN = {
|
|
|
36275
36275
|
const { chainId: p, vaultAddress: y, account: g } = f;
|
|
36276
36276
|
if (!g || !t)
|
|
36277
36277
|
return pN;
|
|
36278
|
-
const T = (await import("./pyth-adapter-
|
|
36278
|
+
const T = (await import("./pyth-adapter-7ad6b950.js")).PythAdapter, S = Rb({
|
|
36279
36279
|
abi: Zb("synthetixV3Core"),
|
|
36280
36280
|
functionName: "getPositionDebt",
|
|
36281
36281
|
args: L7[y.toLowerCase()] ?? []
|