Releases: hifi-finance/hifi
Releases · hifi-finance/hifi
@hifi/[email protected]
Changed
- Allow underlying deposits after maturation in the
HToken
contract.
@hifi/[email protected]
Fixed
- Use the correct
onlyInitializing
modifier inOwnableUpgradeable
.
@hifi/[email protected]
Changed
- Upgrade to
@hifi/protocol
v1.8.2.
@hifi/[email protected]
Changed
- Upgrade to
@hifi/protocol
v1.8.1.
@hifi/[email protected]
Changed
- Improve wording in README and NatSpec comments.
- Inherit from
IOwnable.sol
inIHifiPoolRegistry
. - 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]
Added
- Deposit underlying functionality in
HToken
and associated permissions inFintroller
. - Fintroller address as addition constructor argument in
HToken
. - New
BalanceSheetV2
contract, which upgradesBalanceSheetV1
. This contract features a newsetFintroller
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
inOwnableUpgradeable
. - 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 ofinitializer
- Use
underlyingAmount
instead ofhTokenAmount
in theredeem
function in theHToken
.
Fixed
- Emit correct arguments in
RepayBorrow
event, fixing #162)
Removed
- All
*.d.ts
type files. SFintrollerV1
contract.supplyUnderlying
function inHToken
.
@hifi/[email protected]
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
toFlashSwapAndLiquidateBorrow
. - Rename
InsufficientProfit
toTurnoutNotSatisfied
. - Rename
seizedCollateralAmount
toseizeCollateralAmount
. - Rename
subsidizedUnderlyingAmount
tosubsidyUnderlyingAmount
. - Refactor the
getCollateralAndUnderlyingAmount
function togetOtherTokenAndUnderlyingAmount
. - Refactor the
HifiFlashUniswapV2
contract toFlashUniswapV2
.
@hifi/[email protected]
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]
Changed
- Rename
supplyUnderlyingAmount
argument tounderlyingAmount
in thesupplyUnderlying
function in theHToken
contract. - Make token amounts normalizations and denormalizations more accurate by using
mul
anddiv
functions from PRBMath.
@hifi/[email protected]
Changed
- Load vars in struct in
uniswapV2Call
function in theHifiFlashUniswapV2
contract. - Split the
mintAndLiquidateBorrow
function in two functions:mintHTokensInternal
andliquidateBorrowInternal
. - Upgrade to
@hifi/protocol
v1.7.1.
Fixed
- Calculation of
repayAmount
inliquidateBorrowInternal
function in theHifiFlashUniswapV2
contract.