@paraswap/dex-lib 4.0.23 → 4.0.24-bal-v3-nested-erc4626.0

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.
@@ -9,6 +9,7 @@ export type CommonImmutablePoolState = {
9
9
  tokens: string[];
10
10
  // For boosted pools underlying is the unwrapped token, e.g. USDC/DAI
11
11
  tokensUnderlying: (string | null)[];
12
+ tokensNestedERC4626Underlying: (string | null)[];
12
13
  weights: bigint[];
13
14
  // TODO re-introduce this once added to API
14
15
  // scalingFactors: bigint[];
@@ -19,6 +20,7 @@ export type CommonImmutablePoolState = {
19
20
  export interface CommonMutableState {
20
21
  tokenRates: bigint[];
21
22
  erc4626Rates: (bigint | null)[];
23
+ erc4626NestedRates: (bigint | null)[];
22
24
  balancesLiveScaled18: bigint[];
23
25
  swapFee: bigint;
24
26
  aggregateSwapFee: bigint;
@@ -78,10 +80,13 @@ export type DexParams = {
78
80
  balancerBatchRouterAddress: string;
79
81
  };
80
82
 
83
+ export enum TokenType {
84
+ MainToken = 1,
85
+ ERC4626,
86
+ ERC4626Nested,
87
+ }
88
+
81
89
  export type TokenInfo = {
82
- isBoosted: boolean;
83
- underlyingToken: string | null;
84
- mainToken: string;
85
90
  index: number;
86
- rate: bigint;
91
+ type: TokenType;
87
92
  };
@@ -581,6 +581,21 @@ export const Tokens: {
581
581
  decimals: 6,
582
582
  symbol: 'USUALM',
583
583
  },
584
+ USDL: {
585
+ address: '0xbdC7c08592Ee4aa51D06C27Ee23D5087D65aDbcD',
586
+ decimals: 18,
587
+ symbol: 'USDL',
588
+ },
589
+ csUSDL: {
590
+ address: '0xbEeFc011e94f43b8B7b455eBaB290C7Ab4E216f1',
591
+ decimals: 18,
592
+ symbol: 'csUSDL',
593
+ },
594
+ csUSDC: {
595
+ address: '0x7204b7dbf9412567835633b6f00c3edc3a8d6330',
596
+ decimals: 18,
597
+ symbol: 'csUSDC',
598
+ },
584
599
  },
585
600
  [Network.POLYGON]: {
586
601
  jGBP: {