From 67c45e4c475c5a0f26a45decb302b14ee5cefc3a Mon Sep 17 00:00:00 2001 From: Tyler Sorensen Date: Mon, 8 Jun 2020 18:12:51 -0700 Subject: [PATCH] bump currency version to allow negative numbers in mcd plugin --- packages/dai-plugin-mcd/package.json | 2 +- packages/dai-plugin-mcd/test/SystemDataService.spec.js | 1 - yarn.lock | 10 +++++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/dai-plugin-mcd/package.json b/packages/dai-plugin-mcd/package.json index e12e7baeb..d68d8e2a3 100644 --- a/packages/dai-plugin-mcd/package.json +++ b/packages/dai-plugin-mcd/package.json @@ -23,7 +23,7 @@ "@makerdao/dai": ">=0.18.9" }, "dependencies": { - "@makerdao/currency": "^0.9.8", + "@makerdao/currency": "^0.9.9", "@makerdao/services-core": "^0.9.9", "bignumber.js": "^8.1.1", "rxjs": "^6.5.4" diff --git a/packages/dai-plugin-mcd/test/SystemDataService.spec.js b/packages/dai-plugin-mcd/test/SystemDataService.spec.js index 14d51eeed..0928f7b00 100644 --- a/packages/dai-plugin-mcd/test/SystemDataService.spec.js +++ b/packages/dai-plugin-mcd/test/SystemDataService.spec.js @@ -27,6 +27,5 @@ test('get global settlement status', async () => { test('get system surplus', async () => { const surplus = await service.getSystemSurplus(); - console.log('surplus.toNumber', surplus.toNumber()); expect(surplus).toEqual(DAI(0)); //TODO change to expect non-zero number }); diff --git a/yarn.lock b/yarn.lock index 821ef20fb..ec59b919a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1791,7 +1791,15 @@ npmlog "^4.1.2" write-file-atomic "^2.3.0" -"@makerdao/currency@>=0.9.0", "@makerdao/currency@^0.9.3", "@makerdao/currency@^0.9.5": +"@makerdao/currency@>=0.9.0", "@makerdao/currency@^0.9.9": + version "0.9.9" + resolved "https://registry.yarnpkg.com/@makerdao/currency/-/currency-0.9.9.tgz#b5f847362cb4648c30548313f005c80c1c878c9e" + integrity sha512-fr6MaiWxQ1IxEaSO8znnhcZTPb8P5ZJU5PS76lx5zAX8CF/ZykfDCX7lb4AMaOVCWajQ8OPN8ekO5a0MOJb3wg== + dependencies: + babel-runtime "^6.26.0" + bignumber.js "^8.1.1" + +"@makerdao/currency@^0.9.3", "@makerdao/currency@^0.9.5": version "0.9.7" resolved "https://registry.yarnpkg.com/@makerdao/currency/-/currency-0.9.7.tgz#7b7310cc4feb75ce78330116ae15dad2267040e0" integrity sha512-7N4w25lYwJf105RJZk/WZpxzUMs3GOxSJ4Qg2yro7V1bnsEHaZ0IeyrFOtUfo87Ia3tvld+k9JLG6ykYOxI3kw==