All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.11.0 - 2023-01-04
- Add missing "override" specifier to
removeLiquidityAndWithdrawUnderlyingWithSignature
. - Use "external" modifier instead of "public", where applicable.
- Upgrade to
@hifi/protocol
v1.11.0. - Upgrade to
@hifi/amm
v1.11.0.
- Respond to audit finding regarding usage of
transfer
instead ofsafeTransfer
(QSP-14). - Respond to audit finding regarding
depositUnderlying()
can result in temporarily stuck funds (QSP-6). - Respond to audit finding regarding unlocked pragma (QSP-23).
1.10.0 - 2022-08-18
- Fix license and broken URLs in README.
- Support repaying user debt dust in
depositUnderlyingAndRepayBorrow
function.
1.9.0 - 2022-05-06
- Replace
depositUnderlyingAndBorrowHTokenAndAddLiquidity
function withdepositUnderlyingAndMintHTokenAndAddLiquidity
function. - Replace
removeLiquidityAndRepayBorrowAndWithdrawCollateral
function withremoveLiquidityAndWithdrawUnderlying
function. - Upgrade to
solidity-docgen
v0.6.0-beta.8.
underlyingRedeemed
calculations inremoveLiquidityAndRedeem
function.- Add missing remaining hToken relay logic in
removeLiquidityAndRedeem
function.
1.8.0 - 2022-03-29
- Refactor the directory trees in the generated types.
- Refactor the ethers factories as per the latest typechain output.
- Upgrade to the latest ethers packages.
- Upgrade to
@hifi/amm
v1.10.0. - Upgrade to
@hifi/protocol
v1.10.0.
- Remove types for
IErc20
.
1.7.1 - 2022-03-16
- Upgrade to
@hifi/amm
v1.9.1. - Upgrade to
@hifi/protocol
v1.9.0.
1.7.0 - 2022-03-08
- An
underlyingAmount
argument toredeem
function.
- Improve wording in README and NatSpec comments.
- Rewrite the proxy target to conform to the latest API of the Hifi protocol.
- Upgrade to
@hifi/amm
v1.8.2. - Upgrade to
@hifi/protocol
v1.8.2. - Upgrade to
@openzeppelin/contracts-upgradeable
v4.5.2. - The
redeemHToken
function and its derivatives intoredeem
. - The
underlyingAsCollateral
wording into justunderlying
. - The
supplyUnderlying
function and its derivatives intodepositUnderlying
.
- All
*.d.ts
type files.
1.6.1 - 2021-10-25
- Upgrade to
@hifi/amm
v1.7.1. - Upgrade to
@hifi/protocol
v1.7.1.
- Transfer correct amount of hToken dust in
buyHTokenAndAddLiquidity
function.
1.6.0 - 2021-10-20
- Mark
@ethersproject/abi
,@ethersproject/bytes
and@ethersproject/providers
as normal deps instead of dev deps. - Move types from
typechain
directory todist/types
. - Ship declaration maps and source maps with the npm package.
- Upgrade to
@hifi/amm
v1.7.0. - Upgrade to
@hifi/protocol
v1.7.0. - Upgrade to
@paulrberg/contracts
v3.6.1. - Upgrade to
ethers
v5.5.1. - Upgrade to Solidity v0.8.9.
- Check zero edge cases in the
buyHToken
andsellHToken
functions in theHifiPool
contract.
1.5.0 - 2021-09-24
- Declutter README and add usage guides.
- Polish the NatSpec comments.
- Sync peer dependencies.
- Update year in LICENSE.
- Upgrade to
@hifi/protocol
v1.6.0. - Upgrade to
@hifi/amm
v1.6.0. - Upgrade to
@paulrberg/contracts
v3.6.0.
1.4.0 - 2021-09-16
depositUnderlyingAsCollateralAndBorrowHTokenAndAddLiquidity
function.removeLiquidityAndRepayBorrowAndWithdrawCollateral
function.repayAmount
argument to theremoveLiquidityAndRepayBorrowAndWithdrawCollateral
function.
- Mark
withdrawCollateral
function as public. - Move amount normalization computations in internal function.
- Polish NatSpec comments.
- Upgrade to
ethers
v5.4.6. - Upgrade to
@hifi/amm
v1.5.0. - Upgrade to
@hifi/protocol
v1.5.0. - Upgrade to
@paulrberg/contracts
v3.5.2. - Use Solidity compiler v0.8.7.
- Call
getQuoteForSellingHToken
instead ofgetQuoteForSellingUnderlying
in theremoveLiquidityAndSellHToken
function. - Check debt amount before repaying borrow in
buyHTokenAndRepayBorrow
function.
removeLiquidityAndSellUnderlyingAndRepayBorrow
function.
1.3.1 - 2021-08-13
- Sync peer dependency versions of @hifi/amm and @hifi/protocol.
1.3.0 - 2021-08-13
- Ethers as a peer dependency.
- New
depositCollateralAndBorrowHTokenAndAddLiquidity
function. - TypeChain bindings for IErc20 in the npm package bundle.
- TypeChain factories in the npm package bundle.
- Mark
borrowHTokenAndAddLiquidity
function as public. - Refactor
collateralAmount
todepositAmount
. - Upgrade to @hifi/amm@1.4.0 and @hifi/protocol@1.4.0.
1.2.0 - 2021-08-03
- Ask the user to pass the address of the WETH contract when interacting with the
wrapEthAndDepositCollateral
and thewrapEthAndDepositAndBorrowHTokenAndSellHToken
functions. - Delete the interface function and storage variable
WETH_ADDRESS
. - Upgrade to @hifi/amm@1.3.0.
- Upgrade to @hifi/protocol@1.3.0.
1.1.1 - 2021-08-03
YANKED.
- Upgrade to @hifi/amm@1.2.1.
1.1.0 - 2021-08-03
YANKED.
- Upgrade to @hifi/amm@1.2.0.
- Upgrade to @hifi/protocol@1.2.0.
- Include the
commons.ts
file in thetypechain
folder shipped to the npm registry. - Max hToken amount in the
buyUnderlyingAndAddLiquidity
function.
1.0.0 - 2021-07-31
YANKED.
- First release of the package.