Skip to content

Commit f6c0239

Browse files
committed
Added Ethereum support for ShibaSwap
1 parent e49212f commit f6c0239

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/connectors/shibaswap/shibaswap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class Shibaswap implements Uniswapish {
4242

4343
private constructor(chain: string, network: string) {
4444
const config = ShibaswapConfig.config;
45-
if (chain === 'shibarium') {
45+
if (['shibarium', 'ethereum'].includes(chain)) {
4646
this.chain = Shibarium.getInstance(network);
4747
} else {
4848
throw new Error('unsupported chain');

src/services/connection-manager.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,10 @@ export async function getConnector<T>(
247247
connectorInstance = Tinyman.getInstance(network);
248248
} else if (connector === 'plenty') {
249249
connectorInstance = Plenty.getInstance(network);
250-
} else if (chain === 'shibarium' && connector === 'shibaswap') {
250+
} else if (
251+
['shibarium', 'ethereum'].includes(chain) &&
252+
connector === 'shibaswap'
253+
) {
251254
connectorInstance = Shibaswap.getInstance(chain, network);
252255
} else if (chain === 'shibarium' && connector === 'chewyswap') {
253256
connectorInstance = Chewyswap.getInstance(chain, network);

0 commit comments

Comments
 (0)