diff --git a/package.json b/package.json index 4a60c88..b6e7840 100644 --- a/package.json +++ b/package.json @@ -42,8 +42,8 @@ }, "homepage": "https://github.com/Rubilmax/ethers-maths#readme", "dependencies": { - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/units": "^5.7.0" + "@ethersproject/bignumber": "^5.0.0", + "@ethersproject/units": "^5.0.0" }, "devDependencies": { "@trivago/prettier-plugin-sort-imports": "^3.3.0", @@ -64,7 +64,10 @@ "ts-jest": "^27.0.5", "typescript": "^4.7.4" }, - "peerDependencies": {}, + "peerDependencies": { + "@ethersproject/bignumber": "^5.0.0", + "@ethersproject/units": "^5.0.0" + }, "config": { "commitizen": { "path": "./node_modules/cz-conventional-changelog" diff --git a/src/index.ts b/src/index.ts index 2cc51a3..11b747c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -16,7 +16,7 @@ const HALF_WAD_PERCENT_RATIO = WAD_PERCENT_RATIO.div(2); const RAY_PERCENT_RATIO = RAY.div(PERCENT); const HALF_RAY_PERCENT_RATIO = RAY_PERCENT_RATIO.div(2); -declare module "@ethersproject/bignumber" { +declare module "@ethersproject/bignumber/lib/bignumber" { interface BigNumber { min: (other: BigNumberish) => BigNumber; max: (other: BigNumberish) => BigNumber; diff --git a/yarn.lock b/yarn.lock index 3a6cc1f..39e0ee1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -421,7 +421,7 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@ethersproject/bignumber@^5.7.0": +"@ethersproject/bignumber@^5.0.0", "@ethersproject/bignumber@^5.7.0": version "5.7.0" resolved "https://registry.yarnpkg.com/@ethersproject/bignumber/-/bignumber-5.7.0.tgz#e2f03837f268ba655ffba03a57853e18a18dc9c2" integrity sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw== @@ -449,7 +449,7 @@ resolved "https://registry.yarnpkg.com/@ethersproject/logger/-/logger-5.7.0.tgz#6ce9ae168e74fecf287be17062b590852c311892" integrity sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig== -"@ethersproject/units@^5.7.0": +"@ethersproject/units@^5.0.0": version "5.7.0" resolved "https://registry.yarnpkg.com/@ethersproject/units/-/units-5.7.0.tgz#637b563d7e14f42deeee39245275d477aae1d8b1" integrity sha512-pD3xLMy3SJu9kG5xDGI7+xhTEmGXlEqXU4OfNapmfnxLVY4EMSSRp7j1k7eezutBPH7RBN/7QPnwR7hzNlEFeg==