Releases: hifi-finance/hifi
Releases · hifi-finance/hifi
@hifi/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
Fixed
- Sync peer dependency versions of @hifi/amm and @hifi/protocol.
@hifi/[email protected]
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/[email protected] and @hifi/[email protected].
@hifi/[email protected]
Fixed
- Remove test contracts from npm package bundle.
@hifi/[email protected]
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/[email protected].
@hifi/[email protected]
Added
- Ethers as a peer dependency.
- TypeChain factories in the npm package bundle.
Changed
- Improve wording in NatSpec comments for
getHypotheticalAccountLiquidity
function.
@hifi/[email protected]
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/[email protected].
- Upgrade to @hifi/[email protected].