Skip to content

Commit d3592a0

Browse files
committed
handle bb.snect
1 parent 2a7cb43 commit d3592a0

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/swapService/config/berachain.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
} from "../strategies"
77

88
const SNECT_BERACHAIN = "0x597877Ccf65be938BD214C4c46907669e3E62128"
9+
const BB_SNECT_BERACHAIN = "0x1d22592F66Fc92e0a64eE9300eAeca548cd466c5"
910

1011
const berachainRoutingConfig: ChainRoutingConfig = [
1112
// WRAPPERS
@@ -20,7 +21,7 @@ const berachainRoutingConfig: ChainRoutingConfig = [
2021
{
2122
strategy: StrategyERC4626Wrapper.name(),
2223
match: {
23-
tokensInOrOut: [SNECT_BERACHAIN],
24+
tokensInOrOut: [BB_SNECT_BERACHAIN],
2425
},
2526
},
2627
// DEFAULTS
@@ -40,6 +41,14 @@ const berachainRoutingConfig: ChainRoutingConfig = [
4041
},
4142
match: {},
4243
},
44+
45+
// FALLBACKS
46+
{
47+
strategy: StrategyERC4626Wrapper.name(),
48+
match: {
49+
tokensInOrOut: [SNECT_BERACHAIN],
50+
},
51+
},
4352
]
4453

4554
export default berachainRoutingConfig

src/swapService/strategies/strategyERC4626Wrapper.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ const defaultConfig: {
105105
asset: "0x1cE0a25D13CE4d52071aE7e02Cf1F6606F4C79d3",
106106
assetDustEVault: "0xb20536709f1002F901ed7fE2271f1804fEe18F09",
107107
},
108+
{
109+
chainId: 80094,
110+
protocol: "BB.sNECT",
111+
vault: "0x1d22592F66Fc92e0a64eE9300eAeca548cd466c5",
112+
asset: "0x597877Ccf65be938BD214C4c46907669e3E62128",
113+
assetDustEVault: "0x4a0c6479b628A8D6696B0197AC29495F2E95F46c",
114+
},
108115
],
109116
}
110117

0 commit comments

Comments
 (0)