Skip to content

Commit

Permalink
fix: contract
Browse files Browse the repository at this point in the history
  • Loading branch information
rhlsthrm committed Dec 19, 2024
1 parent 7a48f4c commit f5dbe84
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions packages/sdk/src/IonicSdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,19 @@ export class IonicBase {
address: this.chainDeployment.PoolLensSecondary.address as Address,
client: this.publicClient
}),
IonicLiquidator:
this.chainId === bob.id || this.chainId === lisk.id
? ({} as any)
: getContract({
abi: ionicUniV3LiquidatorAbi,
address: this.chainDeployment.IonicUniV3Liquidator.address as Address,
client: this.walletClient!
}),
IonicLiquidator: this.chainDeployment?.IonicUniV3Liquidator?.address
? getContract({
abi: ionicUniV3LiquidatorAbi,
address: this.chainDeployment.IonicUniV3Liquidator.address as Address,
client: this.walletClient!
})
: this.chainDeployment?.IonicLiquidator?.address
? getContract({
abi: ionicLiquidatorAbi,
address: this.chainDeployment.IonicLiquidator.address as Address,
client: this.publicClient
})
: ({} as any),

Check warning on line 140 in packages/sdk/src/IonicSdk/index.ts

View workflow job for this annotation

GitHub Actions / build-lint-and-test-local

Unexpected any. Specify a different type

Check warning on line 140 in packages/sdk/src/IonicSdk/index.ts

View workflow job for this annotation

GitHub Actions / build-lint-and-test-local

Unexpected any. Specify a different type
FeeDistributor: getContract({
abi: feeDistributorAbi,
address: this.chainDeployment.FeeDistributor.address as Address,
Expand Down

0 comments on commit f5dbe84

Please sign in to comment.