Skip to content

Commit

Permalink
docs(protocol): roll v1.6.0
Browse files Browse the repository at this point in the history
chore(amm,flash-swap,protocol,proxy-target): fix "prepack" script
  • Loading branch information
PaulRBerg committed Sep 24, 2021
1 parent 881eee5 commit a5e4dba
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/amm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"lint": "yarn lint:sol && yarn lint:ts && yarn prettier:check",
"lint:sol": "solhint --config ../../.solhint.json --max-warnings 0 \"contracts/**/*.sol\"",
"lint:ts": "eslint --config ../../.eslintrc.yaml --ignore-path ../../.eslintignore --ext .js,.ts .",
"prepack": "yarn build",
"prepack": "yarn build:contracts",
"prettier": "prettier --config ../../.prettierrc.js --ignore-path ../../.prettierignore --write \"**/*.{js,json,md,sol,ts,yaml,yml}\"",
"prettier:check": "prettier --check --config ../../.prettierrc.js --ignore-path ../../.prettierignore \"**/*.{js,json,md,sol,ts,yaml,yml}\"",
"test": "hardhat test",
Expand Down
2 changes: 1 addition & 1 deletion packages/flash-swap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"lint": "yarn lint:sol && yarn lint:ts && yarn prettier:check",
"lint:sol": "solhint --config ./.solhint.json --max-warnings 0 \"contracts/**/*.sol\"",
"lint:ts": "eslint --config ../../.eslintrc.yaml --ignore-path ../../.eslintignore --ext .js,.ts .",
"prepack": "yarn build",
"prepack": "yarn build:contracts",
"prettier": "prettier --config ../../.prettierrc.js --ignore-path ../../.prettierignore --write \"**/*.{js,json,md,sol,ts,yaml,yml}\"",
"prettier:check": "prettier --check --config ../../.prettierrc.js --ignore-path ../../.prettierignore \"**/*.{js,json,md,sol,ts,yaml,yml}\"",
"test": "hardhat test",
Expand Down
25 changes: 24 additions & 1 deletion packages/protocol/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic
Versioning](https://semver.org/spec/v2.0.0.html).

## [1.6.0] - 2021-09-24

### Added

- Collateral ceilings.

### Changed

- Declutter README and add usage guides
- Polish the NatSpec comments.
- Refactor `DEFAULT_COLLATERALIZATION_RATIO` to `DEFAULT_COLLATERAL_RATIO` in the `SFintrollerV1` contract.
- Refactor `COLLATERALIZATION_RATIO_LOWER_BOUND` to `COLLATERAL_RATIO_LOWER_BOUND` in the `SFintrollerV1` contract.
- Refactor `COLLATERALIZATION_RATIO_UPPER_BOUND` to `COLLATERAL_RATIO_UPPER_BOUND` in the `SFintrollerV1` contract.
- Refactor `collateralizationRatio` to `collateralRatio` in the `BalanceSheetV1` and the `FintrollerV1` contracts.
- Refactor `collateralizationRatio` to `ratio` in the `Collateral` struct in the `SFintrollerV1` contract.
- Sync peer dependencies.
- The `hypothetical` prefix to `new` in the variables used in the `BalanceSheetV1` contract.
- Update year in LICENSE.
- Upgrade to `@openzeppelin/contracts-upgradeable` v4.3.2.
- Upgrade to `@paulrberg/contracts` v3.6.0.
- Upgrade to `prb-math` v2.3.0.

## [1.5.0] - 2021-09-16

### Added
Expand All @@ -15,7 +37,7 @@ Versioning](https://semver.org/spec/v2.0.0.html).
### Changed

- Improve wording in NatSpec comments.
- Refactor all test `burn` and `mint` functions to `__godMode_burn` and `__godMode_mint`
- Refactor all test `burn` and `mint` functions to `__godMode_burn` and `__godMode_mint`.
- Set the list of non-recoverable tokens in the `HToken` contract constructor.
- Upgrade to `ethers` v5.4.6.
- Upgrade to `@paulrberg/contracts` v3.5.2.
Expand Down Expand Up @@ -45,5 +67,6 @@ Versioning](https://semver.org/spec/v2.0.0.html).

- Zero edge case in `getSeizableCollateralAmount` function.

[1.6.0]: https://github.com/hifi-finance/hifi/compare/@hifi/protocol@1.5.0...@hifi/protocol@1.6.0
[1.5.0]: https://github.com/hifi-finance/hifi/compare/@hifi/protocol@1.4.0...@hifi/protocol@1.5.0
[1.4.0]: https://github.com/hifi-finance/hifi/releases/tag/@hifi/protocol@1.4.0
4 changes: 2 additions & 2 deletions packages/protocol/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hifi/protocol",
"description": "The core Hifi fixed-rate, fixed-term lending protocol",
"version": "1.5.0",
"version": "1.6.0",
"author": {
"name": "Hifi",
"email": "contact@hifi.finance",
Expand Down Expand Up @@ -108,7 +108,7 @@
"lint": "yarn lint:sol && yarn lint:ts && yarn prettier:check",
"lint:sol": "solhint --config ../../.solhint.json --max-warnings 0 \"contracts/**/*.sol\"",
"lint:ts": "eslint --config ../../.eslintrc.yaml --ignore-path ../../.eslintignore --ext .js,.ts .",
"prepack": "yarn build",
"prepack": "yarn build:contracts",
"prettier": "prettier --config ../../.prettierrc.js --ignore-path ../../.prettierignore --write \"**/*.{js,json,md,sol,ts,yaml,yml}\"",
"prettier:check": "prettier --check --config ../../.prettierrc.js --ignore-path ../../.prettierignore \"**/*.{js,json,md,sol,ts,yaml,yml}\"",
"test": "hardhat test",
Expand Down
2 changes: 1 addition & 1 deletion packages/proxy-target/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"lint": "yarn lint:sol && yarn lint:ts && yarn prettier:check",
"lint:sol": "solhint --config ../../.solhint.json --max-warnings 0 \"contracts/**/*.sol\"",
"lint:ts": "eslint --config ../../.eslintrc.yaml --ignore-path ../../.eslintignore --ext .js,.ts .",
"prepack": "yarn build",
"prepack": "yarn build:contracts",
"prettier": "prettier --config ../../.prettierrc.js --ignore-path ../../.prettierignore --write \"**/*.{js,json,md,sol,ts,yaml,yml}\"",
"prettier:check": "prettier --check --config ../../.prettierrc.js --ignore-path ../../.prettierignore \"**/*.{js,json,md,sol,ts,yaml,yml}\"",
"typechain": "hardhat typechain"
Expand Down

0 comments on commit a5e4dba

Please sign in to comment.