From b2c96714a8166badd4bf209d6fdde3ebf414eb9a Mon Sep 17 00:00:00 2001 From: Omar Khan Date: Sun, 21 Jan 2024 20:50:47 -0500 Subject: [PATCH] fix AMM ledger object's LPTokenBalance type to IssuedCurrencyAmount (#2621) --- packages/xrpl/HISTORY.md | 3 +++ packages/xrpl/src/models/ledger/AMM.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/xrpl/HISTORY.md b/packages/xrpl/HISTORY.md index 0f5efc97..a1afd467 100644 --- a/packages/xrpl/HISTORY.md +++ b/packages/xrpl/HISTORY.md @@ -4,6 +4,9 @@ Subscribe to [the **xrpl-announce** mailing list](https://groups.google.com/g/xr ## Unreleased +### Fixed +* Fix `AMM` ledger object's `LPTokenBalance` type to `IssuedCurrencyAmount`. + ## 2.14.0 (2023-11-30) ### Added diff --git a/packages/xrpl/src/models/ledger/AMM.ts b/packages/xrpl/src/models/ledger/AMM.ts index b1914f45..5e72e1ac 100644 --- a/packages/xrpl/src/models/ledger/AMM.ts +++ b/packages/xrpl/src/models/ledger/AMM.ts @@ -60,7 +60,7 @@ export default interface AMM extends BaseLedgerEntry, MissingPreviousTxnID { * The holders of these tokens can vote on the AMM's trading fee in proportion to their holdings, * or redeem the tokens for a share of the AMM's assets which grows with the trading fees collected. */ - LPTokenBalance: Currency + LPTokenBalance: IssuedCurrencyAmount /** * The percentage fee to be charged for trades against this AMM instance, in units of 1/100,000. * The maximum value is 1000, for a 1% fee.