Skip to content

Releases: hifi-finance/hifi

@hifi/amm@1.7.1

25 Oct 13:05
Compare
Choose a tag to compare

Changed

  • Upgrade to @hifi/protocol v1.7.1.

@hifi/proxy-target@1.6.0

20 Oct 18:15
Compare
Choose a tag to compare

Changed

  • Mark @ethersproject/abi, @ethersproject/bytes and @ethersproject/providers as normal deps instead of dev deps.
  • Move types from typechain directory to dist/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.

Fixed

  • Check zero edge cases in the buyHToken and sellHToken functions in the HifiPool contract.

@hifi/protocol@1.7.0

20 Oct 18:14
Compare
Choose a tag to compare

Changed

  • Mark @ethersproject/abi, @ethersproject/bytes and @ethersproject/providers as normal deps instead of dev deps.
  • Move types from typechain directory to dist/types.
  • Rename HToken__MaturityPast custom error to HToken__MaturityPassed.
  • Ship declaration maps and source maps with the npm package.
  • Upgrade to @paulrberg/contracts v3.6.1.
  • Upgrade to ethers v5.5.1.
  • Upgrade to prb-math v2.4.0 and remove prb-math.js dev dep.
  • Upgrade to Solidity v0.8.9.

Fixed

  • Compare collateral ceiling to contract balance in the BalanceSheetV1 contract.
  • Revert when the calculated underlying amount is zero in the redeem function in the HToken contract.

Removed

  • artifacts from npm package.

@hifi/flash-swap@1.6.0

20 Oct 18:15
Compare
Choose a tag to compare

Changed

  • Mark @ethersproject/abi, @ethersproject/bytes and @ethersproject/providers as normal deps instead of dev deps.
  • Move types from typechain directory to dist/types.
  • Ship declaration maps and source maps with the npm package.
  • 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.

Fixed

  • Check mintedHTokenAmount against debtAmount in the HifiFlashUniswapV2 contract.

Removed

  • artifacts from npm package.

@hifi/amm@1.7.0

20 Oct 18:14
Compare
Choose a tag to compare

Changed

  • Mark @ethersproject/abi, @ethersproject/bytes and @ethersproject/providers as normal deps instead of dev deps.
  • Move types from typechain directory to dist/types.
  • Order storage vars alphabetically.
  • Ship declaration maps and source maps with the npm package.
  • Upgrade to @hifi/protocol v1.7.0.
  • Upgrade to @paulrberg/contracts v3.6.1.
  • Upgrade to ethers v5.5.1.
  • Upgrade to prb-math v2.4.0 and remove prb-math.js dev dep.
  • Upgrade to Solidity v0.8.9.

Fixed

  • Check zero edge cases in the buyHToken and sellHToken functions in the HifiPool contract.

Removed

  • artifacts from npm package.

@hifi/proxy-target@1.5.0

24 Sep 19:59
Compare
Choose a tag to compare

Changed

  • 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.

@hifi/protocol@1.6.0

24 Sep 19:14
Compare
Choose a tag to compare

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.

@hifi/flash-swap@1.5.0

24 Sep 19:41
Compare
Choose a tag to compare

Changed

  • 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 @paulrberg/contracts v3.6.0.

@hifi/amm@1.6.0

24 Sep 19:27
Compare
Choose a tag to compare

Changed

  • Declutter the 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 @paulrberg/contracts v3.6.0.
  • Upgrade to prb-math v2.3.0.

@hifi/proxy-target@1.4.0

16 Sep 15:20
Compare
Choose a tag to compare

Added

  • depositUnderlyingAsCollateralAndBorrowHTokenAndAddLiquidity function.
  • removeLiquidityAndRepayBorrowAndWithdrawCollateral function.
  • repayAmount argument to the removeLiquidityAndRepayBorrowAndWithdrawCollateral function.

Changed

  • 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.
  • Upgrade to Solidity compiler v0.8.7.

Fixed

  • Call getQuoteForSellingHToken instead of getQuoteForSellingUnderlying in the removeLiquidityAndSellHToken function.
  • Check debt amount before repaying borrow in buyHTokenAndRepayBorrow function.

Removed

  • removeLiquidityAndSellUnderlyingAndRepayBorrow function.