diff --git a/packages/dai-plugin-liquidations/src/LiquidationService.ts b/packages/dai-plugin-liquidations/src/LiquidationService.ts index 0d6d8870b..5a5c5a3f8 100644 --- a/packages/dai-plugin-liquidations/src/LiquidationService.ts +++ b/packages/dai-plugin-liquidations/src/LiquidationService.ts @@ -1,7 +1,7 @@ import { PublicService } from '@makerdao/services-core'; -import { utils as daiUtils } from '@makerdao/dai'; +import { utils } from '@makerdao/dai'; import assert from 'assert'; -import { utils } from 'ethers'; +import { utils as ethersUtils } from 'ethers'; import tracksTransactions from './utils/tracksTransactions'; const MAINNET_SERVER_URL = 'https://api.makerdao.com/graphql'; //const LOCAL_URL = 'http://localhost:3001/graphql'; @@ -13,10 +13,10 @@ export const RAY = new BigNumber('1e27'); export const nullBytes = '0x'; -const { bytes32ToNumber, numberToBytes32 } = daiUtils; +const { bytes32ToNumber, numberToBytes32 } = utils; export function stringToBytes(str) { - return utils.formatBytes32String(str); + return ethersUtils.formatBytes32String(str); } //hard-coded for now, but can get from pips, which you can get from ilk registry diff --git a/packages/dai-plugin-mcd/package.json b/packages/dai-plugin-mcd/package.json index 7dbcc28a4..b29860bc8 100644 --- a/packages/dai-plugin-mcd/package.json +++ b/packages/dai-plugin-mcd/package.json @@ -22,7 +22,7 @@ }, "peerDependencies": { "@makerdao/dai": "^0.42", - "@makerdao/services-core": "^0.11.1" + "@makerdao/services-core": "^0.11.3" }, "dependencies": { "@makerdao/currency": "0.9.9",