Ripple is deleting 10,000 lines of XRPL code before lending goes live

by

Ripple is moving to shrink the XRP Ledger’s (XRPL) attack surface as it prepares to expand native lending.

The company has recommended removing more than 10,000 lines of unused XChainBridge code while Lending Protocol V1.1 undergoes an AI-only security review through Sherlock’s Audit Engine.

The parallel efforts come as crypto platforms face renewed pressure to strengthen their defenses. More than $1.31 billion was lost across 344 security incidents in the first half of 2026, with code vulnerabilities remaining the industry’s most common attack category.

Axelar leaves Ripple with 10,000 lines it no longer wants

The original case for keeping XChainBridge (XLS-38) weakened after Ripple turned to Axelar for the XRPL EVM Sidechain and broader demand for the native bridge failed to materialize.

XLS-38 was designed to let assets move between XRPL and connected sidechains through witness servers that observe transactions and attest to activity across networks. The architecture was intended to support private, permissioned, and experimental sidechains, while also providing a bridge between XRPL mainnet and the EVM Sidechain.

Ripple ultimately chose Axelar for the EVM Sidechain after evaluating security, user experience, decentralization, and the operational demands of maintaining a bridge.

The company said the XLS-38 witness model carried trade-offs that became harder to manage as the value protected by a bridge increased. Expanding the witness set could improve decentralization but add coordination and governance complexity, while a smaller group would concentrate more trust among operators.

Ripple announced its decision to use Axelar in June 2024 but kept XLS-38 available for a validator vote and gave developers roughly 12 to 15 months to demonstrate demand for private sidechains that specifically required the amendment.

However, that demand failed to reach the level Ripple expected.

The result is a substantial block of inactive code that developers must continue maintaining and reviewing even though its principal use case has been handled elsewhere.

Ripple estimates that withdrawing XChainBridge and the related fixXChainRewardRounding amendment would eventually remove more than 10,000 lines from xrpld.

Ripple identified maintenance burden, contributor complexity, and attack surface as costs of retaining dormant functionality, arguing that XRPL should remain lean as the network evolves.

The recommendation does not remove XLS-38 immediately. Ripple controls one validator vote, and the proposal remains subject to the XRPL amendment process.

If the community supports the change, Ripple plans to first mark XChainBridge as obsolete. Validators adopting a software version containing that designation would stop voting for the amendment, allowing the code to be removed in a later release once the network converges.

Ripple also left open the possibility of reconsidering if developers can demonstrate concrete projects that still require XLS-38.

Lending raises a different security challenge

Reducing legacy code comes as XRPL prepares to introduce lending infrastructure with considerably more financial interactions to secure.

Lending Protocol V1.1 builds on Ripple’s push to bring native borrowing and lending capabilities to XRPL alongside Single Asset Vaults. The underlying architecture combines loan lifecycle management, interest-rate calculations, multi-party fee routing, credential-based permissions, and interactions with asset pools.

Ripple has described the lending system as one of the most financially complex additions developed for XRPL since the network launched.

On Aug. 27, Sherlock said that V1.1 had entered an intensive AI-only security review through its Audit Engine. The system combines multiple AI auditors and frontier models with specialized security capabilities, adjusting coverage and depth to the protocol being examined.