Skip to content

Commit 9e7a982

Browse files
committed
Merge branch 'development' into fix/repay-dust
2 parents 087de60 + f5dbe84 commit 9e7a982

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

packages/sdk/src/IonicSdk/index.ts

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,19 @@ export class IonicBase {
125125
address: this.chainDeployment.PoolLensSecondary.address as Address,
126126
client: this.publicClient
127127
}),
128-
IonicLiquidator:
129-
this.chainId === bob.id || this.chainId === lisk.id
130-
? ({} as any)
131-
: getContract({
132-
abi: ionicUniV3LiquidatorAbi,
133-
address: this.chainDeployment.IonicUniV3Liquidator.address as Address,
134-
client: this.walletClient!
135-
}),
128+
IonicLiquidator: this.chainDeployment?.IonicUniV3Liquidator?.address
129+
? getContract({
130+
abi: ionicUniV3LiquidatorAbi,
131+
address: this.chainDeployment.IonicUniV3Liquidator.address as Address,
132+
client: this.walletClient!
133+
})
134+
: this.chainDeployment?.IonicLiquidator?.address
135+
? getContract({
136+
abi: ionicLiquidatorAbi,
137+
address: this.chainDeployment.IonicLiquidator.address as Address,
138+
client: this.publicClient
139+
})
140+
: ({} as any),
136141
FeeDistributor: getContract({
137142
abi: feeDistributorAbi,
138143
address: this.chainDeployment.FeeDistributor.address as Address,

0 commit comments

Comments
 (0)