@defisaver/positions-sdk 2.1.118 → 2.1.119
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/cjs/aaveV4/lend.js +2 -2
- package/esm/aaveV4/lend.js +2 -2
- package/package.json +1 -1
- package/src/aaveV4/lend.ts +2 -2
package/cjs/aaveV4/lend.js
CHANGED
|
@@ -36,7 +36,7 @@ exports.AAVE_V4_TOKENIZED_SPOKES = {
|
|
|
36
36
|
USDT_PRIME: '0x46c588DD8453aC259c1f6a54b4C9A93C2aC3762D',
|
|
37
37
|
USDC_PAXOS: '0x4131E0B2E7AFeCEAf3d3b4225aA61a3B2B7535b8',
|
|
38
38
|
USDT_PAXOS: '0x8Dabe53E8cB991c57f0307F6f419E6D469b0deAA',
|
|
39
|
-
|
|
39
|
+
PT_USDG_Sep_PAXOS: '0x27eF1140364948A0E30E248297FfDFE5a4091ec4',
|
|
40
40
|
};
|
|
41
41
|
exports.AAVE_V4_TOKENIZED_SPOKE_ADDRESSES = {
|
|
42
42
|
[common_1.NetworkNumber.Eth]: Object.values(exports.AAVE_V4_TOKENIZED_SPOKES),
|
|
@@ -70,7 +70,7 @@ const aaveV4GetTokenizedVaultKey = (symbol, hubNameOrKey) => {
|
|
|
70
70
|
const hubKey = (0, exports.aaveV4GetTokenizedHubKey)(hubNameOrKey);
|
|
71
71
|
if (!hubKey)
|
|
72
72
|
return null;
|
|
73
|
-
const normalizedSymbol = symbol.trim().replace(
|
|
73
|
+
const normalizedSymbol = symbol.trim().replace(/[-\s]+/g, '_');
|
|
74
74
|
return `${normalizedSymbol}_${hubKey}`;
|
|
75
75
|
};
|
|
76
76
|
exports.aaveV4GetTokenizedVaultKey = aaveV4GetTokenizedVaultKey;
|
package/esm/aaveV4/lend.js
CHANGED
|
@@ -32,7 +32,7 @@ export const AAVE_V4_TOKENIZED_SPOKES = {
|
|
|
32
32
|
USDT_PRIME: '0x46c588DD8453aC259c1f6a54b4C9A93C2aC3762D',
|
|
33
33
|
USDC_PAXOS: '0x4131E0B2E7AFeCEAf3d3b4225aA61a3B2B7535b8',
|
|
34
34
|
USDT_PAXOS: '0x8Dabe53E8cB991c57f0307F6f419E6D469b0deAA',
|
|
35
|
-
|
|
35
|
+
PT_USDG_Sep_PAXOS: '0x27eF1140364948A0E30E248297FfDFE5a4091ec4',
|
|
36
36
|
};
|
|
37
37
|
export const AAVE_V4_TOKENIZED_SPOKE_ADDRESSES = {
|
|
38
38
|
[NetworkNumber.Eth]: Object.values(AAVE_V4_TOKENIZED_SPOKES),
|
|
@@ -65,7 +65,7 @@ export const aaveV4GetTokenizedVaultKey = (symbol, hubNameOrKey) => {
|
|
|
65
65
|
const hubKey = aaveV4GetTokenizedHubKey(hubNameOrKey);
|
|
66
66
|
if (!hubKey)
|
|
67
67
|
return null;
|
|
68
|
-
const normalizedSymbol = symbol.trim().replace(
|
|
68
|
+
const normalizedSymbol = symbol.trim().replace(/[-\s]+/g, '_');
|
|
69
69
|
return `${normalizedSymbol}_${hubKey}`;
|
|
70
70
|
};
|
|
71
71
|
export const aaveV4GetTokenizedVaultAddress = (network, symbol, hubNameOrKey) => {
|
package/package.json
CHANGED
package/src/aaveV4/lend.ts
CHANGED
|
@@ -51,7 +51,7 @@ export const AAVE_V4_TOKENIZED_SPOKES: Record<string, EthAddress> = {
|
|
|
51
51
|
|
|
52
52
|
USDC_PAXOS: '0x4131E0B2E7AFeCEAf3d3b4225aA61a3B2B7535b8',
|
|
53
53
|
USDT_PAXOS: '0x8Dabe53E8cB991c57f0307F6f419E6D469b0deAA',
|
|
54
|
-
|
|
54
|
+
PT_USDG_Sep_PAXOS: '0x27eF1140364948A0E30E248297FfDFE5a4091ec4',
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
export const AAVE_V4_TOKENIZED_SPOKE_ADDRESSES: Partial<Record<NetworkNumber, EthAddress[]>> = {
|
|
@@ -85,7 +85,7 @@ export const aaveV4GetTokenizedVaultKey = (
|
|
|
85
85
|
const hubKey = aaveV4GetTokenizedHubKey(hubNameOrKey);
|
|
86
86
|
if (!hubKey) return null;
|
|
87
87
|
|
|
88
|
-
const normalizedSymbol = symbol.trim().replace(
|
|
88
|
+
const normalizedSymbol = symbol.trim().replace(/[-\s]+/g, '_');
|
|
89
89
|
|
|
90
90
|
return `${normalizedSymbol}_${hubKey}`;
|
|
91
91
|
};
|