Skip to content

Commit 421ea36

Browse files
committed
update config
1 parent ff6e075 commit 421ea36

File tree

4 files changed

+48
-7
lines changed

4 files changed

+48
-7
lines changed

src/swapService/config/mainnet.ts

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const mainnetRoutingConfig: ChainRoutingConfig = [
5252
sourcesFilter: {
5353
includeSources: [
5454
"kyberswap",
55-
"paraswap",
55+
// "paraswap",
5656
"odos",
5757
"1inch",
5858
"li-fi",
@@ -65,8 +65,7 @@ const mainnetRoutingConfig: ChainRoutingConfig = [
6565
tokensInOrOut: [USD0PLUSPLUS_MAINNET],
6666
},
6767
},
68-
69-
// DEFAULTS
68+
// WUSDL with paraswap
7069
{
7170
strategy: StrategyBalmySDK.name(),
7271
config: {
@@ -77,6 +76,26 @@ const mainnetRoutingConfig: ChainRoutingConfig = [
7776
"odos",
7877
"1inch",
7978
"li-fi",
79+
// "open-ocean",
80+
"uniswap",
81+
],
82+
},
83+
},
84+
match: {
85+
tokensInOrOut: [WUSDL_MAINNET],
86+
},
87+
},
88+
// DEFAULTS
89+
{
90+
strategy: StrategyBalmySDK.name(),
91+
config: {
92+
sourcesFilter: {
93+
includeSources: [
94+
"kyberswap",
95+
// "paraswap",
96+
"odos",
97+
"1inch",
98+
"li-fi",
8099
"open-ocean",
81100
"uniswap",
82101
],
@@ -107,7 +126,7 @@ const mainnetRoutingConfig: ChainRoutingConfig = [
107126
sourcesFilter: {
108127
includeSources: [
109128
"kyberswap",
110-
"paraswap",
129+
// "paraswap",
111130
"odos",
112131
"1inch",
113132
"li-fi",

src/swapService/strategies/strategyERC4626Wrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export class StrategyERC4626Wrapper {
235235
const intermediateDustDepositMulticallItem = encodeDepositMulticallItem(
236236
vaultData.asset,
237237
vaultData.assetDustEVault,
238-
1n,
238+
5n, // avoid zero shares
239239
swapParams.accountOut,
240240
)
241241

src/swapService/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,13 @@ export function addInOutDeposits(
242242
encodeDepositMulticallItem(
243243
swapParams.tokenIn.addressInfo,
244244
swapParams.vaultIn,
245-
1n,
245+
5n, // avoid zero shares error
246246
swapParams.accountIn,
247247
),
248248
encodeDepositMulticallItem(
249249
swapParams.tokenOut.addressInfo,
250250
swapParams.receiver,
251-
1n,
251+
5n, // avoid zero shares error
252252
swapParams.accountOut,
253253
),
254254
]

src/tokenLists/tokenList_1.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,4 +1515,26 @@ export default [
15151515
poolId: "180d6922-83b2-4b0f-bb5b-6c1938cbc24c",
15161516
},
15171517
},
1518+
{
1519+
addressInfo: "0x0655977feb2f289a4ab78af67bab0d17aab84367",
1520+
chainId: 1,
1521+
name: "Savings crvUSD",
1522+
symbol: "SCRVUSD",
1523+
decimals: 18,
1524+
logoURI:
1525+
"https://coin-images.coingecko.com/coins/images/51712/large/scrvUSD200x200.png?1731899723",
1526+
meta: {
1527+
poolId: "5fd328af-4203-471b-bd16-1705c726d926",
1528+
},
1529+
},
1530+
{
1531+
addressInfo: "0x657d9aba1dbb59e53f9f3ecaa878447dcfc96dcb",
1532+
chainId: 1,
1533+
name: "ynETH MAX",
1534+
symbol: "YNETHX",
1535+
decimals: 18,
1536+
logoURI:
1537+
"https://coin-images.coingecko.com/coins/images/51623/large/ynETHx.png?1731659494",
1538+
meta: {},
1539+
},
15181540
]

0 commit comments

Comments
 (0)