Skip to content

Commit

Permalink
docs(flash-swap): roll v1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRBerg committed Nov 25, 2021
1 parent 1dabcaf commit f7a85c5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions packages/flash-swap/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@ 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.7.0] - 2021-11-25

### Added

- Allow collateral flash swap fee to be subsidized.
- Emit repay and subsidy amounts in the `FlashSwapCollateralAndLiquidateBorrow` event.

### Changed

- Generalize the computation in `getRepayAmount` to account for the case when the flash swap fee is paid in the same token.
- Order functions alphabetically.
- Polish the NatSpec comments.
- Remove the "internal" suffix in the internal functions names.
- Rename `FlashLiquidateBorrow` to `FlashSwapAndLiquidateBorrow`.
- Rename `InsufficientProfit` to `TurnoutNotSatisfied`.
- Rename `seizedCollateralAmount` to `seizeCollateralAmount`.
- Rename `subsidizedUnderlyingAmount` to `subsidyUnderlyingAmount`.
- Refactor the `getCollateralAndUnderlyingAmount` function to `getOtherTokenAndUnderlyingAmount`.
- Refactor the `HifiFlashUniswapV2` contract to `FlashUniswapV2`.

## [1.6.1] - 2021-10-25

### Changed
Expand Down Expand Up @@ -125,6 +145,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

- First release of the package.

[1.6.1]: https://github.com/hifi-finance/hifi/compare/@hifi/[email protected]...@hifi/[email protected]
[1.6.1]: https://github.com/hifi-finance/hifi/compare/@hifi/[email protected]...@hifi/[email protected]
[1.6.0]: https://github.com/hifi-finance/hifi/compare/@hifi/[email protected]...@hifi/[email protected]
[1.5.0]: https://github.com/hifi-finance/hifi/compare/@hifi/[email protected]...@hifi/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion packages/flash-swap/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hifi/flash-swap",
"description": "Flash swap implementations for liquidating underwater accounts",
"version": "1.6.1",
"version": "1.7.0",
"author": {
"name": "Hifi",
"email": "[email protected]",
Expand Down

0 comments on commit f7a85c5

Please sign in to comment.