Releases: hifi-finance/hifi
Releases · hifi-finance/hifi
@hifi/protocol@1.5.0
Added
getRepayAmount
function in theBalanceSheetV1
contract.- TypeChain factories in npm package bundle.
Changed
- Improve wording in NatSpec comments.
- Refactor all test
burn
andmint
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
Added
Erc20
contract in npm package bundle.
Changed
- Allow any
UniswapV2Pair
to call theHifiFlashUniswapV2
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 theHifiFlashUniswapV2
contract.pairs_
argument in theHifiFlashUniswapV2
contract constructor.
@hifi/amm@1.5.0
Added
getBurnOutputs
function in theHifiPool
contract.
Changed
- Polish NatSpec comments.
- Rename
getMintParams
function togetMintInputs
. - 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
Fixed
- Sync peer dependency versions of @hifi/amm and @hifi/protocol.
@hifi/proxy-target@1.3.0
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
todepositAmount
. - Upgrade to @hifi/amm@1.4.0 and @hifi/protocol@1.4.0.
@hifi/flash-swap@1.3.1
Fixed
- Remove test contracts from npm package bundle.
@hifi/amm@1.4.0
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
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
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
YANKED.
Changed
- Upgrade to @hifi/amm@1.2.1.