Skip to content

Releases: hifi-finance/hifi

@hifi/[email protected]

04 Mar 15:09
abfaa13
Compare
Choose a tag to compare

Changed

  • Allow underlying deposits after maturation in the HToken contract.

@hifi/[email protected]

04 Mar 14:07
1a3baab
Compare
Choose a tag to compare

Fixed

  • Use the correct onlyInitializing modifier in OwnableUpgradeable.

@hifi/[email protected]

04 Mar 15:16
7cfdc4c
Compare
Choose a tag to compare

Changed

  • Upgrade to @hifi/protocol v1.8.2.

@hifi/[email protected]

04 Mar 15:15
81eec30
Compare
Choose a tag to compare

Changed

  • Upgrade to @hifi/protocol v1.8.1.

@hifi/[email protected]

04 Mar 13:25
afd8755
Compare
Choose a tag to compare

Changed

  • Improve wording in README and NatSpec comments.
  • Inherit from IOwnable.sol in IHifiPoolRegistry.
  • Move the custom errors in the smart contract interface files.
  • Upgrade to @hifi/protocol v1.8.0.
  • Upgrade to @paulrberg/contracts v3.7.0.
  • Upgrade to ethers v5.5.4.
  • Upgrade to prb-math v2.4.3.

Removed

  • All *.d.ts type files.

@hifi/[email protected]

03 Mar 22:31
e260a49
Compare
Choose a tag to compare

Added

  • Deposit underlying functionality in HToken and associated permissions in Fintroller.
  • Fintroller address as addition constructor argument in HToken.
  • New BalanceSheetV2 contract, which upgrades BalanceSheetV1. This contract features a new setFintroller function.

Changed

  • Emit both current time and maturity time when reverting with the BondNotMatured custom error.
  • Improve wording in READMEa and NatSpec comments.
  • Mark the init function as internal in OwnableUpgradeable.
  • Move the custom errors in the smart contract interface files.
  • Rename the __OwnableUpgradeable__init function to __Ownable_init.
  • Turn the Fintroller into a non-upgradeable contract.
  • Upgrade to @openzeppelin/contracts-upgradeable v4.5.2.
  • Use hyphen-case instead of camelCase for directory names.
  • Use the latest onlyInitializable modifier instead of initializer
  • Use underlyingAmount instead of hTokenAmount in the redeem function in the HToken.

Fixed

  • Emit correct arguments in RepayBorrow event, fixing #162)

Removed

  • All *.d.ts type files.
  • SFintrollerV1 contract.
  • supplyUnderlying function in HToken.

@hifi/[email protected]

25 Nov 12:24
f7a85c5
Compare
Choose a tag to compare

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.

@hifi/[email protected]

25 Oct 13:06
Compare
Choose a tag to compare

Changed

  • Upgrade to @hifi/amm v1.7.1.
  • Upgrade to @hifi/protocol v1.7.1.

Fixed

  • Transfer correct amount of hToken dust in buyHTokenAndAddLiquidity function.

@hifi/[email protected]

25 Oct 13:05
Compare
Choose a tag to compare

Changed

  • Rename supplyUnderlyingAmount argument to underlyingAmount in the supplyUnderlying function in the HToken contract.
  • Make token amounts normalizations and denormalizations more accurate by using mul and div functions from PRBMath.

@hifi/[email protected]

25 Oct 13:06
Compare
Choose a tag to compare

Changed

  • Load vars in struct in uniswapV2Call function in the HifiFlashUniswapV2 contract.
  • Split the mintAndLiquidateBorrow function in two functions: mintHTokensInternal and liquidateBorrowInternal.
  • Upgrade to @hifi/protocol v1.7.1.

Fixed

  • Calculation of repayAmount in liquidateBorrowInternal function in the HifiFlashUniswapV2 contract.