Releases: liquity/dev
@liquity/lib-base-v3.0.0
@liquity/lib-base-v3.0.0 (2021-04-02)
Features
- add
blockTimestamp
to BlockPolledLiquityStore (df2cb8e) - add
frontendTag
toStabilityDeposit
(c7d5268) - finalize liquidation reserve and minimum debt (568375f)
- implement querying of remaining Stability Pool LQTY reward (1850dce)
- introduce Uniswap LP token staking (liquidity mining) (d3602f2)
BREAKING CHANGES
- interfaces in @liquity/lib-base have been extended.
Users won't have to make a code change, but care should be taken to upgrade
all SDK packages at the same time.
@liquity/lib-base-v2.0.2
@liquity/lib-base-v2.0.2 (2021-03-22)
Bug Fixes
@liquity/lib-ethers-v2.0.0
@liquity/lib-ethers-v2.0.0 (2021-03-09)
Bug Fixes
- calculate fees at the time of the latest block (d012ad4)
- correct borrowing rate in recovery mode (fb1242a), closes #300
- exclude temporary files from package (2ba1d9b)
- fix event listening in watchTroveWithoutRewards() (f5e70de)
- increase gas overhead for TXs that may issue LQTY (b3dc588)
Features
- add maximum acceptable rate param to borrowing and redemption (cac80da)
- add new property
haveUndercollateralizedTroves
to LiquityStoreState (6266649) - allow increasing truncated redemptions to next lowest redeemable amount (f15167d)
- introduce
UserTrove
class (be15c0f) - introduce minimum net debt (93e2e77)
- truncate redemption amount to ensure maximum possible redemption (574e263)
- update contract ABIs to include new events (05b875b)
- use latest version of the contracts (d66d88d)
BREAKING CHANGES
getTroves()
now returns an array ofUserTrove
s.
It would previously return an array of [string, Trove]
tuples, where the
first element of the tuple was the Trove owner's address. After the change,
the owner's address can be found as UserTrove.ownerAddress
.
openTrove()
,borrowLUSD()
andadjustTrove()
have a new
maxBorrowingRate
parameter, andredeemLUSD()
has a newmaxRedemptionRate
parameter.
The new parameters are optional, however the position of the existing optional
parameter overrides
has changed for these functions. All usages of these
functions where overrides
is used must be updated by passing undefined
as
second parameter (or a Decimalish
value to be used as the maximum acceptable
rate).
- Troves can no longer be created without borrowing LUSD.
Any transaction that would result in a Trove with less debt than the new
constant LUSD_MINIMUM_DEBT
will be reverted.
fees
has been moved fromLiquityStoreBaseState
toLiquityStoreDerivedState
.
Most users won't need to make a code change. However, care should
be taken to upgrade both SDK packages at the same time, to ensure
compatibility.
@liquity/lib-base-v2.0.1
@liquity/lib-base-v2.0.1 (2021-03-09)
Bug Fixes
- fix
whatChanged()
between aUserTrove
and aTrove
(63363bc)
@liquity/lib-base-v2.0.0
@liquity/lib-base-v2.0.0 (2021-03-09)
Bug Fixes
- calculate fees at the time of the latest block (d012ad4)
- correct borrowing rate in recovery mode (fb1242a), closes #300
- exclude temporary files from package (2ba1d9b)
- round up when unapplying borrowing fee (097e9ba)
Features
- add maximum acceptable rate param to borrowing and redemption (332f0f6)
- add new property
haveUndercollateralizedTroves
to LiquityStoreState (6266649) - allow increasing truncated redemptions to next lowest redeemable amount (f15167d)
- introduce
UserTrove
class (be15c0f) - introduce minimum net debt (93e2e77)
- verify the parameters of
Trove.create()
&Trove.adjust()
(cf32217)
BREAKING CHANGES
getTroves()
now returns an array ofUserTrove
s.
It would previously return an array of [string, Trove]
tuples, where the
first element of the tuple was the Trove owner's address. After the change,
the owner's address can be found as UserTrove.ownerAddress
.
- the
change
parameter ofTrove.apply()
is now of type
TroveChange<Decimal>
.
It used to take a TroveChange<Decimalish>
, however the only API function
that returns a TroveChange
is Trove.whatChanged()
, which has a return
type of TroveChange<Decimal>
.
Most users therefore won't notice a change.
- Troves can no longer be created without borrowing LUSD.
Any transaction that would result in a Trove with less debt than the new
constant LUSD_MINIMUM_DEBT
will be reverted.
fees
has been moved fromLiquityStoreBaseState
toLiquityStoreDerivedState
.
Most users won't need to make a code change. However, care should
be taken to upgrade both SDK packages at the same time, to ensure
compatibility.