Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
fix utils imports in LiqService
Browse files Browse the repository at this point in the history
  • Loading branch information
b-pmcg committed Nov 18, 2021
1 parent 1fc8fa0 commit 6f25059
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/dai-plugin-liquidations/src/LiquidationService.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/dai-plugin-mcd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6f25059

Please sign in to comment.