XRPL AMM

CertiKCode version: not recorded (see the report)

CertiK reviewed XRP Ledger (XRPL AMM) on 21 Jun 2023: 31 findings, 0 critical; 29 marked fixed, 2 open.

No open critical findings
Open the reportOpen XRP Ledger’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings31

Statuses are the security firm’s own, from its report.

SeverityOpenAcknowledgedFixed
Critical000
High000
Medium008
Low2021
LowBig LP holder can minimize feesOpen

The TradingFee of the AMM instance is a votable parameter. Any account that holds the corresponding LPTokens can cast a vote using the new `AMMVote` transaction. During `AMMVote` processing the weights of all the votes are recomputed, and the TradingFee for the AMM instance is updated. Up to 8 voting slots supported. However, the voting can be manipulated, a rich person can perform trades without fees. Consider the scenario: - Griefer has significant balances of TokenA and TokenB but wants to rebalance their portfolio. - Griefer performs `AMMDeposit(tfTwoAsset)` with significant amounts. - Using big LPTokens balance Griefer submits `AMMVote(0%)` to minimize the effective fees. - Griefer performs the desired swap operation with low fees. - Griefer performs `AMMWithdraw(tfTwoAsset)` to return their tokens. - As a result, the trader can perform quick liquidity deposits just to **avoid the fees**.

LowBig LP holder can push out other fee votersOpen

The TradingFee of the AMM instance is a votable parameter. Any account that holds the corresponding LPTokens can cast a vote using the new `AMMVote` transaction. During `AMMVote` processing the weights of all the votes are recomputed, and the TradingFee for the AMM instance is updated. Up to 8 voting slots supported. However, a rich person can push out other voters. Consider the scenario: - Imagine Griefer's weight is 81, and the other traders' weights are 10 each, 70 in total. - Then Griefer is supposed to have 54% voting power only. - However, they can split the LPTokens equally into 8 accounts and perform `AMMVote`. - That will push out other voters, **giving 100% voting power**. - Griefer can combine back the LPTokens.

Contracts in scope

No deployed address is recorded for this audit.

The report names a repository or files. Open the report to see its scope.

Part of XRP Ledger’s security record

XRP Ledger
Audits2 audits by 1 firmLast audit Aug 2023, by CertiK.
Critical findingsNo open critical findingsAcross 2 reports.
Open XRP Ledger’s security record

Security firm

CertiK

1,044 projects reviewed · 1,375 reports · latest May 2025

See CertiK’s audits

Something wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.

Tell us