Skip to content

Releases: liquity/dev

@liquity/lib-base-v3.0.0

02 Apr 15:18
Compare
Choose a tag to compare

@liquity/lib-base-v3.0.0 (2021-04-02)

Features

  • add blockTimestamp to BlockPolledLiquityStore (df2cb8e)
  • add frontendTag to StabilityDeposit (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

22 Mar 09:22
Compare
Choose a tag to compare

@liquity/lib-base-v2.0.2 (2021-03-22)

Bug Fixes

  • avoid calling LiquityStore listeners that have already been unsubscribed (d4378a4), closes #342

@liquity/lib-ethers-v2.0.0

09 Mar 07:44
Compare
Choose a tag to compare

@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 of UserTroves.

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() and adjustTrove() have a new
    maxBorrowingRate parameter, and redeemLUSD() has a new maxRedemptionRate
    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 from LiquityStoreBaseState
    to LiquityStoreDerivedState.

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

09 Mar 08:42
Compare
Choose a tag to compare

@liquity/lib-base-v2.0.1 (2021-03-09)

Bug Fixes

  • fix whatChanged() between a UserTrove and a Trove (63363bc)

@liquity/lib-base-v2.0.0

09 Mar 07:43
Compare
Choose a tag to compare

@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 of UserTroves.

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 of Trove.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 from LiquityStoreBaseState
    to LiquityStoreDerivedState.

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-ethers-v1.0.0

12 Feb 12:42
Compare
Choose a tag to compare

@liquity/lib-ethers-v1.0.0 (2021-02-12)

Features

  • initial Liquity SDK release (92e6ce5)

@liquity/lib-base-v1.0.0

12 Feb 12:39
Compare
Choose a tag to compare

@liquity/lib-base-v1.0.0 (2021-02-12)

Features

  • initial Liquity SDK release (92e6ce5)