Releases: hifi-finance/hifi
Releases · hifi-finance/hifi
@hifi/amm@1.7.1
Changed
- Upgrade to
@hifi/protocol
v1.7.1.
@hifi/proxy-target@1.6.0
Changed
- 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.
Fixed
- Check zero edge cases in the
buyHToken
andsellHToken
functions in theHifiPool
contract.
@hifi/protocol@1.7.0
Changed
- Mark
@ethersproject/abi
,@ethersproject/bytes
and@ethersproject/providers
as normal deps instead of dev deps. - Move types from
typechain
directory todist/types
. - Rename
HToken__MaturityPast
custom error toHToken__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 removeprb-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 theHToken
contract.
Removed
artifacts
from npm package.
@hifi/flash-swap@1.6.0
Changed
- 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/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
againstdebtAmount
in theHifiFlashUniswapV2
contract.
Removed
artifacts
from npm package.
@hifi/amm@1.7.0
Changed
- Mark
@ethersproject/abi
,@ethersproject/bytes
and@ethersproject/providers
as normal deps instead of dev deps. - Move types from
typechain
directory todist/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 removeprb-math.js
dev dep. - Upgrade to Solidity v0.8.9.
Fixed
- Check zero edge cases in the
buyHToken
andsellHToken
functions in theHifiPool
contract.
Removed
artifacts
from npm package.
@hifi/proxy-target@1.5.0
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
Added
- Collateral ceilings.
Changed
- Declutter README and add usage guides
- Polish the NatSpec comments.
- Refactor
DEFAULT_COLLATERALIZATION_RATIO
toDEFAULT_COLLATERAL_RATIO
in theSFintrollerV1
contract. - Refactor
COLLATERALIZATION_RATIO_LOWER_BOUND
toCOLLATERAL_RATIO_LOWER_BOUND
in theSFintrollerV1
contract. - Refactor
COLLATERALIZATION_RATIO_UPPER_BOUND
toCOLLATERAL_RATIO_UPPER_BOUND
in theSFintrollerV1
contract. - Refactor
collateralizationRatio
tocollateralRatio
in theBalanceSheetV1
and theFintrollerV1
contracts. - Refactor
collateralizationRatio
toratio
in theCollateral
struct in theSFintrollerV1
contract. - Sync peer dependencies.
- The
hypothetical
prefix tonew
in the variables used in theBalanceSheetV1
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
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
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
Added
depositUnderlyingAsCollateralAndBorrowHTokenAndAddLiquidity
function.removeLiquidityAndRepayBorrowAndWithdrawCollateral
function.repayAmount
argument to theremoveLiquidityAndRepayBorrowAndWithdrawCollateral
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 ofgetQuoteForSellingUnderlying
in theremoveLiquidityAndSellHToken
function. - Check debt amount before repaying borrow in
buyHTokenAndRepayBorrow
function.
Removed
removeLiquidityAndSellUnderlyingAndRepayBorrow
function.