XRP Ledger’s design blocks the flash mortgage assaults costing DeFi lots of of thousands and thousands

XRP Ledger’s design blocks the flash mortgage assaults costing DeFi lots of of thousands and thousands

The 2 largest DeFi exploits of the previous two months have one factor in widespread. They used a software that doesn’t exist on the XRP Ledger.

Thorchain misplaced roughly $10.8 million on Might 15 to a cross-chain assault that drained funds throughout Bitcoin, Ethereum, BSC, and Base. Drift Protocol, a Solana-based decentralized perpetual change, and KelpDAO, a liquid restaking protocol on Ethereum, collectively accounted for greater than $600 million in losses by means of April alone.

Cross-chain bridges have misplaced over $2.8 billion to assaults since 2021, per Chainalysis. And a big share of those exploits used some variant of the identical mechanic: flash loans.

A flash mortgage is a great contract characteristic that lets a dealer borrow thousands and thousands of {dollars} with no collateral, on the situation that the mortgage is repaid inside the identical transaction. The authentic use instances embrace arbitrage between exchanges, collateral swaps with out unwinding positions, and liquidation bots that keep solvency in lending markets.

The assault sample is similar mechanic pointed within the flawed course.

A borrower takes out the mortgage, makes use of the funds to govern an oracle or drain a poorly designed pool, earnings from the manipulation, and repays the mortgage, all earlier than the transaction settles. If any step fails, the entire sequence rolls again, so the attacker dangers nothing however gasoline charges.

The XRP Ledger doesn’t let this work. A draft modification filed on the XRPL requirements repository earlier this week, proposing concentrated liquidity and StableSwap-style swimming pools for the chain’s native automated market maker, included a single line in its Safety Issues part: “Flash loan attacks are structurally impossible. XRPL transactions are atomic without composable intra-transaction calls.”

What which means is that XRPL transactions both totally succeed or totally fail, like an Ethereum transaction. However in contrast to Ethereum, an XRPL transaction can not name into one other contract throughout its execution. The borrow-manipulate-repay sequence that defines a flash mortgage assault wants no less than three nested operations inside a single transaction envelope.

That may be a significant architectural alternative, and it has a price. Flash loans aren’t solely an assault software. They’ve develop into a structural part of Ethereum DeFi, with Aave, dYdX, and different main protocols providing them as a product. Arbitrage merchants use flash loans to clear worth variations between exchanges in a single atomic motion.

Liquidation bots use them to maintain over-collateralized lending positions solvent. Subtle DeFi customers use them for collateral swaps that may in any other case require capital that will get tied up for hours. XRPL provides up all of that in change for closing the assault class completely.

For many of XRPL’s historical past, the tradeoff didn’t matter as a result of the chain’s DeFi footprint was small. That’s altering. Tokenized real-world belongings on the XRP Ledger have crossed $3 billion in complete worth, together with the Ripple-JPMorgan-Mastercard-Ondo Finance pilot final month that processed a tokenized U.S. Treasury redemption in beneath 5 seconds.

The draft AMM modification, if it passes, would shut the capital-efficiency hole that has held XRPL DeFi behind Ethereum, opening the chain to a wider set of buying and selling and yield methods.

If the AMM modification passes and XRPL’s DeFi liquidity grows towards one thing institutional capital can deploy at scale, the query turns into whether or not structural exploit resistance is an actual aggressive benefit or only a characteristic that establishments ignore in favor of the place the liquidity already is.

Supply hyperlink

bitcoin
Bitcoin (BTC) $ 63,740.00 4.81%
ethereum
Ethereum (ETH) $ 1,787.30 4.19%
tether
Tether (USDT) $ 0.999009 0.03%
bnb
BNB (BNB) $ 600.76 6.35%
usd-coin
USDC (USDC) $ 0.999585 0.01%
xrp
XRP (XRP) $ 1.19 3.36%
solana
Solana (SOL) $ 70.11 6.12%
tron
TRON (TRX) $ 0.331941 0.21%
figure-heloc
Figure Heloc (FIGR_HELOC) $ 1.00 3.32%
staked-ether
Lido Staked Ether (STETH) $ 2,265.05 3.46%
hyperliquid
Hyperliquid (HYPE) $ 72.91 0.14%
dogecoin
Dogecoin (DOGE) $ 0.089753 4.37%
usds
USDS (USDS) $ 0.999622 0.01%
zcash
Zcash (ZEC) $ 604.49 1.83%
leo-token
LEO Token (LEO) $ 9.95 0.42%
rain
Rain (RAIN) $ 0.014089 2.36%
wrapped-steth
Wrapped stETH (WSTETH) $ 2,779.67 3.22%
cardano
Cardano (ADA) $ 0.196205 8.50%
stellar
Stellar (XLM) $ 0.20884 6.45%
wrapped-bitcoin
Wrapped Bitcoin (WBTC) $ 76,243.00 3.12%
monero
Monero (XMR) $ 354.47 5.94%
binance-bridged-usdt-bnb-smart-chain
Binance Bridged USDT (BNB Smart Chain) (BSC-USD) $ 0.998762 0.02%
canton-network
Canton (CC) $ 0.152532 2.97%
wrapped-beacon-eth
Wrapped Beacon ETH (WBETH) $ 2,466.93 3.47%
chainlink
Chainlink (LINK) $ 8.12 4.09%
whitebit
WhiteBIT Coin (WBT) $ 46.23 5.65%
lab
LAB (LAB) $ 17.45 25.15%
wrapped-eeth
Wrapped eETH (WEETH) $ 2,465.31 3.39%
bitcoin-cash
Bitcoin Cash (BCH) $ 242.67 4.28%
susds
sUSDS (SUSDS) $ 1.08 0.16%
the-open-network
Toncoin (TON) $ 1.75 13.98%
usd1-wlfi
USD1 (USD1) $ 0.998401 0.01%
ethena-usde
Ethena USDe (USDE) $ 0.998839 0.02%
memecore
MemeCore (M) $ 3.38 2.20%
coinbase-wrapped-btc
Coinbase Wrapped BTC (CBBTC) $ 76,366.00 3.12%
dai
Dai (DAI) $ 0.999557 0.01%
hedera-hashgraph
Hedera (HBAR) $ 0.08568 2.95%
litecoin
Litecoin (LTC) $ 46.15 4.01%
weth
WETH (WETH) $ 2,268.37 3.40%
avalanche-2
Avalanche (AVAX) $ 7.89 4.76%
near
NEAR Protocol (NEAR) $ 2.55 10.99%
sui
Sui (SUI) $ 0.795204 4.50%
usdt0
USDT0 (USDT0) $ 0.998824 0.03%
shiba-inu
Shiba Inu (SHIB) $ 0.000005 4.69%
paypal-usd
PayPal USD (PYUSD) $ 0.999934 0.01%
hashnote-usyc
Circle USYC (USYC) $ 1.13 0.00%
crypto-com-chain
Cronos (CRO) $ 0.061897 1.94%
tether-gold
Tether Gold (XAUT) $ 4,448.78 0.07%
global-dollar
Global Dollar (USDG) $ 0.999888 0.00%
blackrock-usd-institutional-digital-liquidity-fund
BlackRock USD Institutional Digital Liquidity Fund (BUIDL) $ 1.00 0.00%
ethena-staked-usde
Ethena Staked USDe (SUSDE) $ 1.22 0.04%
ondo-us-dollar-yield
Ondo US Dollar Yield (USDY) $ 1.13 0.45%
bittensor
Bittensor (TAO) $ 218.14 5.74%
pax-gold
PAX Gold (PAXG) $ 4,465.40 0.05%
mantle
Mantle (MNT) $ 0.581525 3.98%
world-liberty-financial
World Liberty Financial (WLFI) $ 0.060408 0.01%
ondo-finance
Ondo (ONDO) $ 0.381584 4.76%
polkadot
Polkadot (DOT) $ 1.05 4.25%
ripple-usd
Ripple USD (RLUSD) $ 0.999832 0.01%
aster-2
Aster (ASTER) $ 0.665241 2.48%
uniswap
Uniswap (UNI) $ 2.71 4.90%
little-pepe-5
Little Pepe (LILPEPE) $ 2.16 99,999.99%
syrupusdc
syrupUSDC (SYRUPUSDC) $ 1.15 0.04%
worldcoin-wld
Worldcoin (WLD) $ 0.498866 20.96%
okb
OKB (OKB) $ 77.07 8.67%
htx-dao
HTX DAO (HTX) $ 0.000002 0.14%
falcon-finance
Falcon USD (USDF) $ 0.994983 0.02%
sky
Sky (SKY) $ 0.067285 0.20%
internet-computer
Internet Computer (ICP) $ 2.80 12.11%
usdd
USDD (USDD) $ 0.99963 0.10%
pi-network
Pi Network (PI) $ 0.129636 6.43%
bitget-token
Bitget Token (BGB) $ 1.89 2.01%
bfusd
BFUSD (BFUSD) $ 0.998201 0.02%
pepe
Pepe (PEPE) $ 0.000003 4.36%
ethereum-classic
Ethereum Classic (ETC) $ 7.52 4.68%
morpho
Morpho (MORPHO) $ 1.82 9.42%
aave
Aave (AAVE) $ 71.59 4.89%
render-token
Render (RENDER) $ 2.01 9.06%
humanity
Humanity (H) $ 0.567701 12.79%
jupiter-perpetuals-liquidity-provider-token
Jupiter Perpetuals Liquidity Provider Token (JLP) $ 4.00 2.64%
quant-network
Quant (QNT) $ 69.53 7.62%
usdtb
USDtb (USDTB) $ 0.99929 0.01%
eutbl
Spiko EU T-Bills Money Market Fund (EUTBL) $ 1.22 0.15%
polygon-ecosystem-token
POL (ex-MATIC) (POL) $ 0.091735 0.09%
blockchain-capital
Blockchain Capital (BCAP) $ 107.16 0.00%
jito-staked-sol
Jito Staked SOL (JITOSOL) $ 124.46 4.71%
united-stables
United Stables (U) $ 0.9995 0.01%
superstate-short-duration-us-government-securities-fund-ustb
Superstate Short Duration U.S. Government Securities Fund (USTB) (USTB) $ 11.10 0.03%
kelp-dao-restaked-eth
Kelp DAO Restaked ETH (RSETH) $ 2,404.69 3.37%
cosmos
Cosmos Hub (ATOM) $ 1.82 2.04%
algorand
Algorand (ALGO) $ 0.104346 7.54%
binance-peg-weth
Binance-Peg WETH (WETH) $ 2,262.26 3.62%
ethena
Ethena (ENA) $ 0.102206 6.70%
rocket-pool-eth
Rocket Pool ETH (RETH) $ 2,631.35 3.29%
kucoin-shares
KuCoin (KCS) $ 6.73 11.77%
venice-token
Venice Token (VVV) $ 19.18 0.87%
binance-bridged-usdc-bnb-smart-chain
Binance Bridged USDC (BNB Smart Chain) (USDC) $ 0.999945 0.02%
janus-henderson-anemoy-treasury-fund
Janus Henderson Anemoy Treasury Fund (JTRSY) $ 1.11 0.01%
stable-2
​​Stable (STABLE) $ 0.037055 0.31%
wbnb
Wrapped BNB (WBNB) $ 759.61 1.56%
Scroll to Top