@gearbox-protocol/sdk 0.0.101 → 0.0.104

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.
Files changed (139) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +52 -0
  3. package/.husky/pre-push +4 -0
  4. package/lib/apy/convexAPY.js +7 -9
  5. package/lib/apy/lidoAPY.js +35 -29
  6. package/lib/contracts/contracts.d.ts +5 -2
  7. package/lib/contracts/contracts.js +19 -18
  8. package/lib/contracts/contractsRegister.js +13 -1
  9. package/lib/core/constants.d.ts +5 -3
  10. package/lib/core/constants.js +8 -6
  11. package/lib/core/creditAccount.d.ts +2 -2
  12. package/lib/core/creditAccount.js +12 -11
  13. package/lib/core/creditManager.d.ts +1 -1
  14. package/lib/core/creditManager.js +4 -10
  15. package/lib/core/creditSession.js +14 -3
  16. package/lib/core/eventOrTx.d.ts +1 -1
  17. package/lib/core/events.d.ts +19 -19
  18. package/lib/core/events.js +23 -21
  19. package/lib/core/pool.d.ts +1 -1
  20. package/lib/core/pool.js +1 -7
  21. package/lib/core/price.d.ts +1 -3
  22. package/lib/core/price.js +9 -7
  23. package/lib/core/strategy.d.ts +8 -6
  24. package/lib/core/strategy.js +25 -25
  25. package/lib/core/tokenDistributor.js +1 -1
  26. package/lib/core/transactions.d.ts +18 -3
  27. package/lib/core/transactions.js +39 -3
  28. package/lib/index.d.ts +8 -2
  29. package/lib/index.js +8 -1
  30. package/lib/oracles/priceFeeds.js +1 -1
  31. package/lib/pathfinder/convexLP.d.ts +1 -1
  32. package/lib/pathfinder/convexLP.js +26 -29
  33. package/lib/pathfinder/curveLP.d.ts +1 -1
  34. package/lib/pathfinder/curveLP.js +5 -7
  35. package/lib/pathfinder/path.d.ts +1 -1
  36. package/lib/pathfinder/path.js +38 -42
  37. package/lib/pathfinder/trade.d.ts +1 -2
  38. package/lib/pathfinder/tradeTypes.d.ts +5 -5
  39. package/lib/pathfinder/yVault.d.ts +2 -2
  40. package/lib/pathfinder/yVault.js +22 -22
  41. package/lib/payload/creditAccount.d.ts +4 -4
  42. package/lib/payload/creditManager.d.ts +3 -13
  43. package/lib/payload/pool.d.ts +2 -2
  44. package/lib/strategies/convex.d.ts +12 -0
  45. package/lib/strategies/convex.js +74 -1
  46. package/lib/strategies/creditFacade.d.ts +1 -0
  47. package/lib/strategies/creditFacade.js +3 -0
  48. package/lib/strategies/curve.d.ts +15 -60
  49. package/lib/strategies/curve.js +74 -1
  50. package/lib/strategies/lido.d.ts +6 -0
  51. package/lib/strategies/lido.js +23 -1
  52. package/lib/strategies/uniswapV2.d.ts +1 -0
  53. package/lib/strategies/uniswapV2.js +6 -19
  54. package/lib/strategies/uniswapV3.d.ts +1 -0
  55. package/lib/strategies/uniswapV3.js +4 -1
  56. package/lib/strategies/yearn.d.ts +8 -0
  57. package/lib/strategies/yearn.js +92 -12
  58. package/lib/tokens/convex.d.ts +3 -3
  59. package/lib/tokens/curveLP.d.ts +7 -2
  60. package/lib/tokens/curveLP.js +8 -1
  61. package/lib/tokens/gear.d.ts +2 -2
  62. package/lib/tokens/gear.js +1 -1
  63. package/lib/tokens/normal.d.ts +1 -1
  64. package/lib/tokens/token.js +8 -8
  65. package/lib/tokens/tokenData.d.ts +3 -1
  66. package/lib/tokens/tokenData.js +10 -8
  67. package/lib/tokens/yearn.d.ts +6 -2
  68. package/lib/tokens/yearn.js +6 -0
  69. package/lib/utils/errors.d.ts +6 -0
  70. package/lib/utils/errors.js +13 -0
  71. package/lib/utils/formatter.d.ts +1 -1
  72. package/lib/utils/formatter.js +17 -14
  73. package/lib/utils/loading.d.ts +2 -1
  74. package/lib/utils/loading.js +9 -13
  75. package/lib/utils/mappers.js +2 -2
  76. package/lib/utils/network.js +2 -2
  77. package/lib/utils/repeater.js +12 -24
  78. package/lib/utils/validate.js +1 -1
  79. package/package.json +24 -7
  80. package/src/apy/convexAPY.ts +13 -12
  81. package/src/apy/lidoAPY.ts +35 -27
  82. package/src/contracts/contracts.ts +27 -17
  83. package/src/contracts/contractsRegister.ts +16 -1
  84. package/src/core/constants.ts +8 -5
  85. package/src/core/creditAccount.ts +42 -16
  86. package/src/core/creditManager.ts +33 -7
  87. package/src/core/creditOperation.ts +7 -7
  88. package/src/core/creditSession.ts +25 -5
  89. package/src/core/errors.ts +1 -0
  90. package/src/core/eventOrTx.ts +8 -5
  91. package/src/core/events.ts +85 -24
  92. package/src/core/history.ts +46 -46
  93. package/src/core/operations.ts +6 -0
  94. package/src/core/pool.ts +16 -4
  95. package/src/core/price.ts +10 -13
  96. package/src/core/strategy.ts +54 -43
  97. package/src/core/tokenDistributor.ts +2 -2
  98. package/src/core/transactions.ts +427 -350
  99. package/src/index.ts +10 -3
  100. package/src/oracles/priceFeeds.ts +523 -523
  101. package/src/pathfinder/contracts.ts +15 -13
  102. package/src/pathfinder/convexLP.ts +29 -25
  103. package/src/pathfinder/curveLP.ts +57 -53
  104. package/src/pathfinder/path.ts +17 -9
  105. package/src/pathfinder/priority.ts +11 -11
  106. package/src/pathfinder/trade.ts +84 -77
  107. package/src/pathfinder/tradeTypes.ts +98 -94
  108. package/src/pathfinder/yVault.ts +32 -17
  109. package/src/payload/creditAccount.ts +4 -4
  110. package/src/payload/creditManager.ts +3 -13
  111. package/src/payload/pool.ts +2 -2
  112. package/src/payload/token.ts +3 -3
  113. package/src/strategies/convex.ts +360 -186
  114. package/src/strategies/creditFacade.ts +74 -53
  115. package/src/strategies/curve.ts +400 -189
  116. package/src/strategies/lido.ts +70 -32
  117. package/src/strategies/uniswapV2.ts +93 -111
  118. package/src/strategies/uniswapV3.ts +118 -91
  119. package/src/strategies/yearn.ts +187 -60
  120. package/src/tokens/connectors.ts +6 -6
  121. package/src/tokens/convex.ts +297 -296
  122. package/src/tokens/curveLP.ts +176 -165
  123. package/src/tokens/gear.ts +47 -45
  124. package/src/tokens/normal.ts +801 -802
  125. package/src/tokens/token.ts +13 -9
  126. package/src/tokens/tokenData.ts +19 -9
  127. package/src/tokens/tokenType.ts +11 -11
  128. package/src/tokens/yearn.ts +130 -124
  129. package/src/utils/errors.ts +11 -0
  130. package/src/utils/formatter.ts +22 -18
  131. package/src/utils/loading.ts +14 -6
  132. package/src/utils/mappers.ts +8 -6
  133. package/src/utils/multicall.ts +2 -0
  134. package/src/utils/network.ts +21 -21
  135. package/src/utils/repeater.ts +2 -2
  136. package/src/utils/validate.ts +1 -1
  137. package/lib/utils/events.d.ts +0 -2
  138. package/lib/utils/events.js +0 -13
  139. package/src/utils/events.ts +0 -10
@@ -1,334 +1,335 @@
1
- import {TradeAction, TradeType} from "../pathfinder/tradeTypes";
2
- import {TokenBase} from "./token";
3
- import {ConvexPoolContract} from "../contracts/contracts";
4
- import {CurveLPToken} from "./curveLP";
5
- import {TokenType} from "./tokenType";
1
+ import { TradeAction, TradeType } from "../pathfinder/tradeTypes";
2
+ import type { TokenBase } from "./token";
3
+ import type { ConvexPoolContract } from "../contracts/contracts";
4
+ import type { CurveLPToken } from "./curveLP";
5
+ import { TokenType } from "./tokenType";
6
6
 
7
7
  export type ConvexLPToken =
8
- | "cvx3Crv"
9
- | "cvxsteCRV"
10
- | "cvxFRAX3CRV"
11
- | "cvxLUSD3CRV"
12
- | "cvxcrvPlain3andSUSD"
13
- | "cvxgusd3CRV";
8
+ | "cvx3Crv"
9
+ | "cvxsteCRV"
10
+ | "cvxFRAX3CRV"
11
+ | "cvxLUSD3CRV"
12
+ | "cvxcrvPlain3andSUSD"
13
+ | "cvxgusd3CRV";
14
14
 
15
15
  export type ConvexStakedPhantomToken =
16
- | "stkcvx3Crv"
17
- | "stkcvxsteCRV"
18
- | "stkcvxFRAX3CRV"
19
- | "stkcvxLUSD3CRV"
20
- | "stkcvxcrvPlain3andSUSD"
21
- | "stkcvxgusd3CRV";
16
+ | "stkcvx3Crv"
17
+ | "stkcvxsteCRV"
18
+ | "stkcvxFRAX3CRV"
19
+ | "stkcvxLUSD3CRV"
20
+ | "stkcvxcrvPlain3andSUSD"
21
+ | "stkcvxgusd3CRV";
22
22
 
23
23
  type BaseConvexToken = {
24
- pool: ConvexPoolContract;
25
- pid: number;
26
- underlying: CurveLPToken;
27
- lpActions: Array<TradeAction>;
24
+ pool: ConvexPoolContract;
25
+ pid: number;
26
+ underlying: CurveLPToken;
27
+ lpActions: Array<TradeAction>;
28
28
  } & TokenBase;
29
29
 
30
30
  export type ConvexLPTokenData = {
31
- symbol: ConvexLPToken;
32
- type: TokenType.CONVEX_LP_TOKEN;
33
- stakedToken: ConvexStakedPhantomToken;
34
-
31
+ symbol: ConvexLPToken;
32
+ type: TokenType.CONVEX_LP_TOKEN;
33
+ stakedToken: ConvexStakedPhantomToken;
35
34
  } & BaseConvexToken;
36
35
 
37
36
  export type ConvexPhantomTokenData = {
38
- symbol: ConvexStakedPhantomToken;
39
- type: TokenType.CONVEX_STAKED_PHANTOM_TOKEN;
40
- lpToken: ConvexLPToken;
37
+ symbol: ConvexStakedPhantomToken;
38
+ type: TokenType.CONVEX_STAKED_PHANTOM_TOKEN;
39
+ lpToken: ConvexLPToken;
41
40
  } & BaseConvexToken;
42
41
 
43
- export const convexTokens: Record<ConvexLPToken | ConvexStakedPhantomToken,
44
- ConvexLPTokenData | ConvexPhantomTokenData> = {
45
- // CONVEX LP TOKENS
46
- cvx3Crv: {
47
- name: "cvx3Crv",
48
- decimals: 18,
42
+ export const convexTokens: Record<
43
+ ConvexLPToken | ConvexStakedPhantomToken,
44
+ ConvexLPTokenData | ConvexPhantomTokenData
45
+ > = {
46
+ // CONVEX LP TOKENS
47
+ cvx3Crv: {
48
+ name: "cvx3Crv",
49
+ decimals: 18,
49
50
 
50
- symbol: "cvx3Crv",
51
- type: TokenType.CONVEX_LP_TOKEN,
52
- pool: "CONVEX_3CRV_POOL",
53
- pid: 9,
54
- underlying: "3Crv",
55
- stakedToken: "stkcvx3Crv",
56
- lpActions: [
57
- {
58
- type: TradeType.ConvexWithdrawLP,
59
- contract: "CONVEX_BOOSTER",
60
- tokenOut: "3Crv"
61
- },
62
- {
63
- type: TradeType.ConvexStake,
64
- contract: "CONVEX_3CRV_POOL",
65
- tokenOut: "stkcvx3Crv"
66
- }
67
- ]
68
- },
51
+ symbol: "cvx3Crv",
52
+ type: TokenType.CONVEX_LP_TOKEN,
53
+ pool: "CONVEX_3CRV_POOL",
54
+ pid: 9,
55
+ underlying: "3Crv",
56
+ stakedToken: "stkcvx3Crv",
57
+ lpActions: [
58
+ {
59
+ type: TradeType.ConvexWithdrawLP,
60
+ contract: "CONVEX_BOOSTER",
61
+ tokenOut: "3Crv"
62
+ },
63
+ {
64
+ type: TradeType.ConvexStake,
65
+ contract: "CONVEX_3CRV_POOL",
66
+ tokenOut: "stkcvx3Crv"
67
+ }
68
+ ]
69
+ },
69
70
 
70
- cvxsteCRV: {
71
- name: "cvxsteCRV",
72
- decimals: 18,
71
+ cvxsteCRV: {
72
+ name: "cvxsteCRV",
73
+ decimals: 18,
73
74
 
74
- symbol: "cvxsteCRV",
75
- type: TokenType.CONVEX_LP_TOKEN,
76
- pool: "CONVEX_STECRV_POOL",
77
- pid: 25,
78
- underlying: "steCRV",
79
- stakedToken: "stkcvxsteCRV",
80
- lpActions: [
81
- {
82
- type: TradeType.ConvexWithdrawLP,
83
- contract: "CONVEX_BOOSTER",
84
- tokenOut: "steCRV"
85
- },
86
- {
87
- type: TradeType.ConvexStake,
88
- contract: "CONVEX_STECRV_POOL",
89
- tokenOut: "stkcvxsteCRV"
90
- }
91
- ]
92
- },
75
+ symbol: "cvxsteCRV",
76
+ type: TokenType.CONVEX_LP_TOKEN,
77
+ pool: "CONVEX_STECRV_POOL",
78
+ pid: 25,
79
+ underlying: "steCRV",
80
+ stakedToken: "stkcvxsteCRV",
81
+ lpActions: [
82
+ {
83
+ type: TradeType.ConvexWithdrawLP,
84
+ contract: "CONVEX_BOOSTER",
85
+ tokenOut: "steCRV"
86
+ },
87
+ {
88
+ type: TradeType.ConvexStake,
89
+ contract: "CONVEX_STECRV_POOL",
90
+ tokenOut: "stkcvxsteCRV"
91
+ }
92
+ ]
93
+ },
93
94
 
94
- cvxFRAX3CRV: {
95
- name: "cvxFRAX3CRV-f",
96
- decimals: 18,
95
+ cvxFRAX3CRV: {
96
+ name: "cvxFRAX3CRV-f",
97
+ decimals: 18,
97
98
 
98
- symbol: "cvxFRAX3CRV",
99
- type: TokenType.CONVEX_LP_TOKEN,
100
- pool: "CONVEX_FRAX3CRV_POOL",
101
- pid: 32,
102
- underlying: "FRAX3CRV",
103
- stakedToken: "stkcvxFRAX3CRV",
104
- lpActions: [
105
- {
106
- type: TradeType.ConvexWithdrawLP,
107
- contract: "CONVEX_BOOSTER",
108
- tokenOut: "FRAX3CRV"
109
- },
110
- {
111
- type: TradeType.ConvexStake,
112
- contract: "CONVEX_FRAX3CRV_POOL",
113
- tokenOut: "stkcvxFRAX3CRV"
114
- }
115
- ]
116
- },
99
+ symbol: "cvxFRAX3CRV",
100
+ type: TokenType.CONVEX_LP_TOKEN,
101
+ pool: "CONVEX_FRAX3CRV_POOL",
102
+ pid: 32,
103
+ underlying: "FRAX3CRV",
104
+ stakedToken: "stkcvxFRAX3CRV",
105
+ lpActions: [
106
+ {
107
+ type: TradeType.ConvexWithdrawLP,
108
+ contract: "CONVEX_BOOSTER",
109
+ tokenOut: "FRAX3CRV"
110
+ },
111
+ {
112
+ type: TradeType.ConvexStake,
113
+ contract: "CONVEX_FRAX3CRV_POOL",
114
+ tokenOut: "stkcvxFRAX3CRV"
115
+ }
116
+ ]
117
+ },
117
118
 
118
- cvxLUSD3CRV: {
119
- name: "cvxLUSD3CRV-f",
120
- decimals: 18,
119
+ cvxLUSD3CRV: {
120
+ name: "cvxLUSD3CRV-f",
121
+ decimals: 18,
121
122
 
122
- symbol: "cvxLUSD3CRV",
123
- type: TokenType.CONVEX_LP_TOKEN,
124
- pool: "CONVEX_LUSD3CRV_POOL",
125
- pid: 33,
126
- underlying: "LUSD3CRV",
127
- stakedToken: "stkcvxLUSD3CRV",
128
- lpActions: [
129
- {
130
- type: TradeType.ConvexWithdrawLP,
131
- contract: "CONVEX_BOOSTER",
132
- tokenOut: "LUSD3CRV"
133
- },
134
- {
135
- type: TradeType.ConvexStake,
136
- contract: "CONVEX_LUSD3CRV_POOL",
137
- tokenOut: "stkcvxLUSD3CRV"
138
- }
139
- ]
140
- },
123
+ symbol: "cvxLUSD3CRV",
124
+ type: TokenType.CONVEX_LP_TOKEN,
125
+ pool: "CONVEX_LUSD3CRV_POOL",
126
+ pid: 33,
127
+ underlying: "LUSD3CRV",
128
+ stakedToken: "stkcvxLUSD3CRV",
129
+ lpActions: [
130
+ {
131
+ type: TradeType.ConvexWithdrawLP,
132
+ contract: "CONVEX_BOOSTER",
133
+ tokenOut: "LUSD3CRV"
134
+ },
135
+ {
136
+ type: TradeType.ConvexStake,
137
+ contract: "CONVEX_LUSD3CRV_POOL",
138
+ tokenOut: "stkcvxLUSD3CRV"
139
+ }
140
+ ]
141
+ },
141
142
 
142
- cvxcrvPlain3andSUSD: {
143
- name: "cvxcrvPlain3andSUSD",
144
- decimals: 18,
143
+ cvxcrvPlain3andSUSD: {
144
+ name: "cvxcrvPlain3andSUSD",
145
+ decimals: 18,
145
146
 
146
- symbol: "cvxcrvPlain3andSUSD",
147
- type: TokenType.CONVEX_LP_TOKEN,
148
- pool: "CONVEX_SUSD_POOL",
149
- pid: 4,
150
- underlying: "crvPlain3andSUSD",
151
- stakedToken: "stkcvxcrvPlain3andSUSD",
152
- lpActions: [
153
- {
154
- type: TradeType.ConvexWithdrawLP,
155
- contract: "CONVEX_BOOSTER",
156
- tokenOut: "crvPlain3andSUSD"
157
- },
158
- {
159
- type: TradeType.ConvexStake,
160
- contract: "CONVEX_SUSD_POOL",
161
- tokenOut: "stkcvxcrvPlain3andSUSD"
162
- }
163
- ]
164
- },
147
+ symbol: "cvxcrvPlain3andSUSD",
148
+ type: TokenType.CONVEX_LP_TOKEN,
149
+ pool: "CONVEX_SUSD_POOL",
150
+ pid: 4,
151
+ underlying: "crvPlain3andSUSD",
152
+ stakedToken: "stkcvxcrvPlain3andSUSD",
153
+ lpActions: [
154
+ {
155
+ type: TradeType.ConvexWithdrawLP,
156
+ contract: "CONVEX_BOOSTER",
157
+ tokenOut: "crvPlain3andSUSD"
158
+ },
159
+ {
160
+ type: TradeType.ConvexStake,
161
+ contract: "CONVEX_SUSD_POOL",
162
+ tokenOut: "stkcvxcrvPlain3andSUSD"
163
+ }
164
+ ]
165
+ },
165
166
 
166
- cvxgusd3CRV: {
167
- name: "cvxgusd3CRV",
168
- decimals: 18,
167
+ cvxgusd3CRV: {
168
+ name: "cvxgusd3CRV",
169
+ decimals: 18,
169
170
 
170
- symbol: "cvxgusd3CRV",
171
- type: TokenType.CONVEX_LP_TOKEN,
172
- pool: "CONVEX_GUSD_POOL",
173
- pid: 10,
174
- underlying: "gusd3CRV",
175
- stakedToken: "stkcvxgusd3CRV",
176
- lpActions: [
177
- {
178
- type: TradeType.ConvexWithdrawLP,
179
- contract: "CONVEX_BOOSTER",
180
- tokenOut: "gusd3CRV"
181
- },
182
- {
183
- type: TradeType.ConvexStake,
184
- contract: "CONVEX_GUSD_POOL",
185
- tokenOut: "stkcvxgusd3CRV"
186
- }
187
- ]
188
- },
171
+ symbol: "cvxgusd3CRV",
172
+ type: TokenType.CONVEX_LP_TOKEN,
173
+ pool: "CONVEX_GUSD_POOL",
174
+ pid: 10,
175
+ underlying: "gusd3CRV",
176
+ stakedToken: "stkcvxgusd3CRV",
177
+ lpActions: [
178
+ {
179
+ type: TradeType.ConvexWithdrawLP,
180
+ contract: "CONVEX_BOOSTER",
181
+ tokenOut: "gusd3CRV"
182
+ },
183
+ {
184
+ type: TradeType.ConvexStake,
185
+ contract: "CONVEX_GUSD_POOL",
186
+ tokenOut: "stkcvxgusd3CRV"
187
+ }
188
+ ]
189
+ },
189
190
 
190
- // STAKED CONVEX
191
- stkcvx3Crv: {
192
- name: "stkcvx3Crv",
193
- decimals: 18,
191
+ // STAKED CONVEX
192
+ stkcvx3Crv: {
193
+ name: "stkcvx3Crv",
194
+ decimals: 18,
194
195
 
195
- symbol: "stkcvx3Crv",
196
- type: TokenType.CONVEX_STAKED_PHANTOM_TOKEN,
197
- pool: "CONVEX_3CRV_POOL",
198
- pid: 9,
199
- underlying: "3Crv",
200
- lpToken: "cvx3Crv",
201
- lpActions: [
202
- {
203
- type: TradeType.ConvexWithdraw,
204
- contract: "CONVEX_3CRV_POOL",
205
- tokenOut: "cvx3Crv"
206
- },
207
- {
208
- type: TradeType.ConvexWithdrawAndUnwrap,
209
- contract: "CONVEX_3CRV_POOL",
210
- tokenOut: "3Crv"
211
- }
212
- ]
213
- },
196
+ symbol: "stkcvx3Crv",
197
+ type: TokenType.CONVEX_STAKED_PHANTOM_TOKEN,
198
+ pool: "CONVEX_3CRV_POOL",
199
+ pid: 9,
200
+ underlying: "3Crv",
201
+ lpToken: "cvx3Crv",
202
+ lpActions: [
203
+ {
204
+ type: TradeType.ConvexWithdraw,
205
+ contract: "CONVEX_3CRV_POOL",
206
+ tokenOut: "cvx3Crv"
207
+ },
208
+ {
209
+ type: TradeType.ConvexWithdrawAndUnwrap,
210
+ contract: "CONVEX_3CRV_POOL",
211
+ tokenOut: "3Crv"
212
+ }
213
+ ]
214
+ },
214
215
 
215
- stkcvxsteCRV: {
216
- name: "stkcvxsteCRV",
217
- decimals: 18,
216
+ stkcvxsteCRV: {
217
+ name: "stkcvxsteCRV",
218
+ decimals: 18,
218
219
 
219
- symbol: "stkcvxsteCRV",
220
- type: TokenType.CONVEX_STAKED_PHANTOM_TOKEN,
221
- pool: "CONVEX_STECRV_POOL",
222
- pid: 25,
223
- underlying: "steCRV",
224
- lpToken: "cvxsteCRV",
225
- lpActions: [
226
- {
227
- type: TradeType.ConvexWithdraw,
228
- contract: "CONVEX_STECRV_POOL",
229
- tokenOut: "cvxsteCRV"
230
- },
231
- {
232
- type: TradeType.ConvexWithdrawAndUnwrap,
233
- contract: "CONVEX_STECRV_POOL",
234
- tokenOut: "steCRV"
235
- }
236
- ]
237
- },
220
+ symbol: "stkcvxsteCRV",
221
+ type: TokenType.CONVEX_STAKED_PHANTOM_TOKEN,
222
+ pool: "CONVEX_STECRV_POOL",
223
+ pid: 25,
224
+ underlying: "steCRV",
225
+ lpToken: "cvxsteCRV",
226
+ lpActions: [
227
+ {
228
+ type: TradeType.ConvexWithdraw,
229
+ contract: "CONVEX_STECRV_POOL",
230
+ tokenOut: "cvxsteCRV"
231
+ },
232
+ {
233
+ type: TradeType.ConvexWithdrawAndUnwrap,
234
+ contract: "CONVEX_STECRV_POOL",
235
+ tokenOut: "steCRV"
236
+ }
237
+ ]
238
+ },
238
239
 
239
- stkcvxFRAX3CRV: {
240
- name: "stkcvxFRAX3CRV-f",
241
- decimals: 18,
240
+ stkcvxFRAX3CRV: {
241
+ name: "stkcvxFRAX3CRV-f",
242
+ decimals: 18,
242
243
 
243
- symbol: "stkcvxFRAX3CRV",
244
- type: TokenType.CONVEX_STAKED_PHANTOM_TOKEN,
245
- pool: "CONVEX_FRAX3CRV_POOL",
246
- pid: 32,
247
- underlying: "FRAX3CRV",
248
- lpToken: "cvxFRAX3CRV",
249
- lpActions: [
250
- {
251
- type: TradeType.ConvexWithdraw,
252
- contract: "CONVEX_FRAX3CRV_POOL",
253
- tokenOut: "cvxFRAX3CRV"
254
- },
255
- {
256
- type: TradeType.ConvexWithdrawAndUnwrap,
257
- contract: "CONVEX_FRAX3CRV_POOL",
258
- tokenOut: "FRAX3CRV"
259
- }
260
- ]
261
- },
244
+ symbol: "stkcvxFRAX3CRV",
245
+ type: TokenType.CONVEX_STAKED_PHANTOM_TOKEN,
246
+ pool: "CONVEX_FRAX3CRV_POOL",
247
+ pid: 32,
248
+ underlying: "FRAX3CRV",
249
+ lpToken: "cvxFRAX3CRV",
250
+ lpActions: [
251
+ {
252
+ type: TradeType.ConvexWithdraw,
253
+ contract: "CONVEX_FRAX3CRV_POOL",
254
+ tokenOut: "cvxFRAX3CRV"
255
+ },
256
+ {
257
+ type: TradeType.ConvexWithdrawAndUnwrap,
258
+ contract: "CONVEX_FRAX3CRV_POOL",
259
+ tokenOut: "FRAX3CRV"
260
+ }
261
+ ]
262
+ },
262
263
 
263
- stkcvxLUSD3CRV: {
264
- name: "stkcvxLUSD3CRV-f",
265
- decimals: 18,
264
+ stkcvxLUSD3CRV: {
265
+ name: "stkcvxLUSD3CRV-f",
266
+ decimals: 18,
266
267
 
267
- symbol: "stkcvxLUSD3CRV",
268
- type: TokenType.CONVEX_STAKED_PHANTOM_TOKEN,
269
- pool: "CONVEX_LUSD3CRV_POOL",
270
- pid: 32,
271
- underlying: "LUSD3CRV",
272
- lpToken: "cvxLUSD3CRV",
273
- lpActions: [
274
- {
275
- type: TradeType.ConvexWithdraw,
276
- contract: "CONVEX_LUSD3CRV_POOL",
277
- tokenOut: "cvxLUSD3CRV"
278
- },
279
- {
280
- type: TradeType.ConvexWithdrawAndUnwrap,
281
- contract: "CONVEX_LUSD3CRV_POOL",
282
- tokenOut: "LUSD3CRV"
283
- }
284
- ]
285
- },
268
+ symbol: "stkcvxLUSD3CRV",
269
+ type: TokenType.CONVEX_STAKED_PHANTOM_TOKEN,
270
+ pool: "CONVEX_LUSD3CRV_POOL",
271
+ pid: 32,
272
+ underlying: "LUSD3CRV",
273
+ lpToken: "cvxLUSD3CRV",
274
+ lpActions: [
275
+ {
276
+ type: TradeType.ConvexWithdraw,
277
+ contract: "CONVEX_LUSD3CRV_POOL",
278
+ tokenOut: "cvxLUSD3CRV"
279
+ },
280
+ {
281
+ type: TradeType.ConvexWithdrawAndUnwrap,
282
+ contract: "CONVEX_LUSD3CRV_POOL",
283
+ tokenOut: "LUSD3CRV"
284
+ }
285
+ ]
286
+ },
286
287
 
287
- stkcvxcrvPlain3andSUSD: {
288
- name: "stkcvxcrvPlain3andSUSD",
289
- decimals: 18,
288
+ stkcvxcrvPlain3andSUSD: {
289
+ name: "stkcvxcrvPlain3andSUSD",
290
+ decimals: 18,
290
291
 
291
- symbol: "stkcvxcrvPlain3andSUSD",
292
- type: TokenType.CONVEX_STAKED_PHANTOM_TOKEN,
293
- pool: "CONVEX_SUSD_POOL",
294
- pid: 4,
295
- underlying: "crvPlain3andSUSD",
296
- lpToken: "cvxcrvPlain3andSUSD",
297
- lpActions: [
298
- {
299
- type: TradeType.ConvexWithdraw,
300
- contract: "CONVEX_SUSD_POOL",
301
- tokenOut: "cvxcrvPlain3andSUSD"
302
- },
303
- {
304
- type: TradeType.ConvexWithdrawAndUnwrap,
305
- contract: "CONVEX_SUSD_POOL",
306
- tokenOut: "crvPlain3andSUSD"
307
- }
308
- ]
309
- },
292
+ symbol: "stkcvxcrvPlain3andSUSD",
293
+ type: TokenType.CONVEX_STAKED_PHANTOM_TOKEN,
294
+ pool: "CONVEX_SUSD_POOL",
295
+ pid: 4,
296
+ underlying: "crvPlain3andSUSD",
297
+ lpToken: "cvxcrvPlain3andSUSD",
298
+ lpActions: [
299
+ {
300
+ type: TradeType.ConvexWithdraw,
301
+ contract: "CONVEX_SUSD_POOL",
302
+ tokenOut: "cvxcrvPlain3andSUSD"
303
+ },
304
+ {
305
+ type: TradeType.ConvexWithdrawAndUnwrap,
306
+ contract: "CONVEX_SUSD_POOL",
307
+ tokenOut: "crvPlain3andSUSD"
308
+ }
309
+ ]
310
+ },
310
311
 
311
- stkcvxgusd3CRV: {
312
- name: "stkcvxgusd3CRV",
313
- decimals: 18,
312
+ stkcvxgusd3CRV: {
313
+ name: "stkcvxgusd3CRV",
314
+ decimals: 18,
314
315
 
315
- symbol: "stkcvxgusd3CRV",
316
- type: TokenType.CONVEX_STAKED_PHANTOM_TOKEN,
317
- pool: "CONVEX_GUSD_POOL",
318
- pid: 10,
319
- underlying: "gusd3CRV",
320
- lpToken: "cvxgusd3CRV",
321
- lpActions: [
322
- {
323
- type: TradeType.ConvexWithdraw,
324
- contract: "CONVEX_GUSD_POOL",
325
- tokenOut: "cvxgusd3CRV"
326
- },
327
- {
328
- type: TradeType.ConvexWithdrawAndUnwrap,
329
- contract: "CONVEX_GUSD_POOL",
330
- tokenOut: "gusd3CRV"
331
- }
332
- ]
333
- }
316
+ symbol: "stkcvxgusd3CRV",
317
+ type: TokenType.CONVEX_STAKED_PHANTOM_TOKEN,
318
+ pool: "CONVEX_GUSD_POOL",
319
+ pid: 10,
320
+ underlying: "gusd3CRV",
321
+ lpToken: "cvxgusd3CRV",
322
+ lpActions: [
323
+ {
324
+ type: TradeType.ConvexWithdraw,
325
+ contract: "CONVEX_GUSD_POOL",
326
+ tokenOut: "cvxgusd3CRV"
327
+ },
328
+ {
329
+ type: TradeType.ConvexWithdrawAndUnwrap,
330
+ contract: "CONVEX_GUSD_POOL",
331
+ tokenOut: "gusd3CRV"
332
+ }
333
+ ]
334
+ }
334
335
  };