Skip to content

Releases: hifi-finance/hifi

@hifi/protocol@1.5.0

16 Sep 12:35
Compare
Choose a tag to compare

Added

  • getRepayAmount function in the BalanceSheetV1 contract.
  • TypeChain factories in npm package bundle.

Changed

  • Improve wording in NatSpec comments.
  • 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 ethers dependency to v5.4.6
  • Upgrade @paulrberg/contracts dependency to v3.5.2
  • Upgrade @openzeppelin/contracts-upgradeable dependency to v4.3.1
  • Upgrade to Solidity compiler v0.8.7.
  • Use LGPL v3 license for all contracts.
  • Wrap the precision scalar in unchecked blocks to save gas.

Fixed

  • Do not return zero when the liquidation incentive is 100% in getSeizableCollateralAmount function in the
    BalanceSheetV1 contract.
  • Typos in NatSpec comments.

@hifi/flash-swap@1.4.0

16 Sep 13:59
Compare
Choose a tag to compare

Added

  • Erc20 contract in npm package bundle.

Changed

  • Allow any UniswapV2Pair to call the HifiFlashUniswapV2 contract.
  • Polish NatSpec comments.
  • Upgrade to ethers v5.4.6.
  • Upgrade to @hifi/protocol v1.5.0.
  • Upgrade to @paulrberg/contracts v3.5.2.
  • Upgrade to Solidity compiler v0.8.7.
  • Use "pre" and "post" prefixes instead of "old" and "new".

Fixed

  • Typos in NatSpec comments.

Removed

  • pairs mapping in the HifiFlashUniswapV2 contract.
  • pairs_ argument in the HifiFlashUniswapV2 contract constructor.

@hifi/amm@1.5.0

16 Sep 13:33
Compare
Choose a tag to compare

Added

  • getBurnOutputs function in the HifiPool contract.

Changed

  • Polish NatSpec comments.
  • Rename getMintParams function to getMintInputs.
  • Upgrade to ethers v5.4.6.
  • Upgrade to @hifi/protocol v1.5.0.
  • Upgrade to @paulrberg/contracts v3.5.2.
  • Upgrade to Solidity compiler v0.8.7.

Fixed

  • Allow minting of LP tokens only before maturity.
  • Typos in NatSpec comments.

@hifi/proxy-target@1.3.1

13 Aug 22:12
Compare
Choose a tag to compare

Fixed

  • Sync peer dependency versions of @hifi/amm and @hifi/protocol.

@hifi/proxy-target@1.3.0

13 Aug 22:01
Compare
Choose a tag to compare

Added

  • Ethers as a peer dependency.
  • New depositCollateralAndBorrowHTokenAndAddLiquidity function.
  • TypeChain bindings for IErc20 in the npm package bundle.
  • TypeChain factories in the npm package bundle.

Changed

  • Mark borrowHTokenAndAddLiquidity function as public.
  • Refactor collateralAmount to depositAmount.
  • Upgrade to @hifi/amm@1.4.0 and @hifi/protocol@1.4.0.

@hifi/flash-swap@1.3.1

13 Aug 22:15
Compare
Choose a tag to compare

Fixed

  • Remove test contracts from npm package bundle.

@hifi/amm@1.4.0

13 Aug 11:50
Compare
Choose a tag to compare

Added

  • Ethers as a peer dependency.
  • Erc20, Erc20Permit and Ownable in the npm package bundle.
  • New HifiPoolRegistry.sol contract, to track deployed AMMs.
  • TypeChain factories in the npm package bundle.

Changed

  • Upgrade to @hifi/protocol@1.4.0.

@hifi/protocol@1.4.0

13 Aug 11:50
Compare
Choose a tag to compare

Added

  • Ethers as a peer dependency.
  • TypeChain factories in the npm package bundle.

Changed

  • Improve wording in NatSpec comments for getHypotheticalAccountLiquidity function.

@hifi/proxy-target@1.2.0

09 Aug 09:46
Compare
Choose a tag to compare

Changed

  • Ask the user to pass the address of the WETH contract when interacting with the wrapEthAndDepositCollateral and the
    wrapEthAndDepositAndBorrowHTokenAndSellHToken functions.
  • Delete the interface function and storage variable WETH_ADDRESS.
  • Upgrade to @hifi/amm@1.3.0.
  • Upgrade to @hifi/protocol@1.3.0.

@hifi/proxy-target@1.1.1

09 Aug 09:46
Compare
Choose a tag to compare

YANKED.

Changed

  • Upgrade to @hifi/amm@1.2.1.