File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,11 @@ import {
28
28
import { percentRegexp } from '../../services/config-manager-v2' ;
29
29
import { logger } from '../../services/logger' ;
30
30
import { getAddress } from 'ethers/lib/utils' ;
31
+ import { Ethereum } from '../../chains/ethereum/ethereum' ;
31
32
32
33
export class Shibaswap implements Uniswapish {
33
34
private static _instances : { [ name : string ] : Shibaswap } ;
34
- private chain : Shibarium ;
35
+ private chain : Shibarium | Ethereum ;
35
36
private _router : string ;
36
37
private _routerAbi : ContractInterface ;
37
38
private _gasLimitEstimate : number ;
@@ -42,8 +43,10 @@ export class Shibaswap implements Uniswapish {
42
43
43
44
private constructor ( chain : string , network : string ) {
44
45
const config = ShibaswapConfig . config ;
45
- if ( [ 'shibarium' , 'ethereum' ] . includes ( chain ) ) {
46
+ if ( chain === 'shibarium' ) {
46
47
this . chain = Shibarium . getInstance ( network ) ;
48
+ } else if ( chain === 'ethereum' ) {
49
+ this . chain = Ethereum . getInstance ( network ) ;
47
50
} else {
48
51
throw new Error ( 'unsupported chain' ) ;
49
52
}
You can’t perform that action at this time.
0 commit comments