From b2ae59164e727b154b7edf4bb823890cfb21d2a6 Mon Sep 17 00:00:00 2001 From: Rome Reginelli Date: Fri, 2 Dec 2022 13:53:20 -0800 Subject: [PATCH] AMM: Fix trading fee decimal comparison MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "units of 1/100,000" is equivalent to "⅒ basis points" which is correct. This 10,000 number is a carry over from when it was basis points, not ⅒ thereof --- .../protocol-reference/ledger-data/ledger-object-types/amm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/references/protocol-reference/ledger-data/ledger-object-types/amm.md b/content/references/protocol-reference/ledger-data/ledger-object-types/amm.md index 39a28c7d84..e654f95b93 100644 --- a/content/references/protocol-reference/ledger-data/ledger-object-types/amm.md +++ b/content/references/protocol-reference/ledger-data/ledger-object-types/amm.md @@ -79,7 +79,7 @@ The `AMM` object has the following fields: | `AMMAccount` | String | AccountID | Yes | The address of the [special account](accountroot.html#special-amm-accountroot-objects) that holds this AMM's assets. | | `AuctionSlot` | Object | STObject | No | Details of the current owner of the auction slot, as an [Auction Slot object](#auction-slot-object). | | `LPTokenBalance` | [Currency Amount][] | Amount | Yes | The total outstanding balance of liquidity provider tokens from this AMM instance. 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. | -| `TradingFee` | Number | UInt16 | Yes | The percentage fee to be charged for trades against this AMM instance, in units of 1/10,000. The maximum value is 1000, for a 1% fee. | +| `TradingFee` | Number | UInt16 | Yes | 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. | | `VoteSlots` | Array | STArray | No | A list of vote objects, representing votes on the pool's trading fee. | ### Auction Slot Object