DeFi · DEXs · Guide

Is Metric the Missing Piece for Onchain RWAs?

Metric's active pools take prices from oracle feeds and move liquidity bins with them, so tokenized stocks like HIMS can't drift from real-world prices.

by Krix · · 5 min read

Metric's white three-part swirl logo floating on turquoise pool water.

Key takeaways

  1. In late August, traders pushed tokenized HIMS to $132.64 in a weekend pool against a $28.84 Friday close, until the issuer minted tokens Monday and arbitraged it back.
  2. Tokenized stocks mostly trade on standard automated market makers [AMMs], where price comes from pool token ratios and moves only when arbitrageurs act.
  3. Metric's active pools separate price from inventory, using a Price Provider contract that returns bid, ask, and reference prices from oracles like Chainlink or Pyth, or custom logic.
  4. Liquidity bins are percentage ranges around the reference price, so if Ethereum [ETH] runs from $2,000 to $3,000, a 2% bid and ask move to $2,940 and $3,060.
  5. Liquidity providers [LPs] stay in range with compounding earnings and no claim gas, while traders pay only the spread, but price drops and stale-quote risk remain.

In late August, a group of traders tried to short-squeeze the HIMS penny stock.

The idea was simple. Pair a memecoin with the tokenized equity and buy as much of it as possible, thereby “cornering” the supply and driving HIMS's price up.

Since it occurred on a weekend, the HIMS price in the pool rose as high as $132.64 against an equity that had closed Friday at $28.84.

The thing this group of people had not taken into consideration was that the onchain supply of HIMS shares accounted for only a small portion of the total circulating shares in the real world.

On Monday morning, the equity’s issuer minted new tokens and arbitraged the gap between the real and onchain prices, sending HIMS back to parity.

The moral of the story does not pertain to the attempt at short-squeezing a NASDAQ-listed equity.

Instead, it reveals that tokenized stocks today mostly trade through the same AMMs DeFi has used for years, where an asset’s price is derived from the ratio of two tokens sitting in a pool.

This effectively decouples the prices of real-world assets, leaving their tokenized versions to live in a parallel universe.

But if the HIMS stock were sitting in an active pool on Metric, such a scenario would never have been possible in the first place.

What is Metric?

Metric is a decentralized exchange that introduces the concept of active pools, in which pricing and liquidity are split into two components.

The active pool design addresses the discrepancy between real-world asset prices and their tokenized counterparts in DeFi pools, which are driven by trading activity.

But why is that the case if oracle networks exist? Shouldn’t they be the bridge that links DeFi to the rest of the world? Only on paper.

In v2 pools, the quote comes from its own inventory, whereas in v3 and v4, it's derived from a stored tick and the liquidity available in range at that tick.

In any case, the problem is that the quote won't move until someone acts upon it and arbitrages the difference.

In contrast, Metric’s active pools can use oracle feeds or custom logic to accurately price tokenized stocks, forex, gold, and crypto majors, regardless of whether an arbitrageur comes in or not.

How active pools work

Unlike a regular AMM, an active pool separates the price from the pool’s inventory. Since price accuracy is the big unlock, let’s tackle that first.

Price Provider

Asset prices within pools are derived from an onchain smart contract called Price Provider that returns a quote containing bid, ask, and reference prices.

The Price Provider contract can determine prices from various sources, the most obvious being oracle networks such as Chainlink or Pyth to accurately track offchain asset prices.

The contract can also use advanced logic, such as another DEX’s mid-price or TWAP, staking or vault conversion rates, custom models for options, prediction markets, or synthetic assets, and trading strategies such as grid, limit, deep OTC, or volatility-adjusted orders.

Whatever the logic, the pool doesn't form its own view of price; instead, that responsibility is offloaded to the Price Provider contract.

Diagram: oracle or custom data feed the "Price provider," whose quote joins "Liquidity in bins" so the "Pool" executes swaps.

Source (opens in a new tab)

But an accurate price doesn’t do us any good if there is no liquidity willing to commit capital to a pool. That’s where liquidity bins come in.

Liquidity bins

On Metric, liquidity tracks the reference price from the aforementioned Price Provider contract and sits around that price within liquidity bins. Each bin represents a price range (deviation) relative to the pool's reference price, expressed as a percentage.

Say ETH is trading at $2,000, and you’re willing to sell 2% above the real price and buy 2% below it, which effectively means you’ve set your ask at $2,040 and your bid at $1,960.

Overnight, a once-in-a-lifetime price move occurred, and ETH ran to $3,000. In a traditional concentrated pool, you’d be left with your pants down.

But on Metric, your liquidity moves with the price, and the same rule still applies: 2% either side, meaning your ask is now $3,060, and your bid is $2,940.

Put simply, whenever the price moves, the bins move with it, even when there is no trading activity in a given pool.

Bins at 98-102 around a $100 reference shift to 103-107 when it rises to $105, labeled "moves with it, no transaction."

Source (opens in a new tab)

The result

Since I already used the HIMS stock as an example at the beginning, I’d like to conclude with it as well.

Picture a person reading the latest news column and seeing a mention of how finasteride and minoxidil work wonders for hair loss, sponsored by the men’s health company HIMS.

After taking a brief tour on their website and completing a quiz, the man is sold on the idea and likes what the company is doing. He decides to buy the dip.

For reasons directly linked to his hair loss, the man knows a thing or two about crypto and tokenized equities, so he decides to open up the Robinhood wallet to purchase the stock.

He taps the HIMS token, enters his amount, and hits swap; only the quote that comes back isn’t the price he saw on the stock ticker five minutes ago. It’s a little worse. Not dramatically, but enough to notice.

For the trader with no meaningful size (monetary), the gap is nothing he pays particular attention to, but that gap is what makes life for LPs providing liquidity in DeFi pools living hell due to the constant need for rebalancing and arbitrageurs eating their lunch.

But if the HIMS token were sitting in an active pool, with the Price Feed set to follow the equity’s actual price out there in the real world, all participants would be much happier with the results:

As an LP, the main benefit of providing liquidity to an active pool is that your positions stay in range, while earnings remain in the bins and compound into your position.

Since you don’t need to claim or re-enter, you also avoid the gas costs of claim and deposit transactions.

What it doesn't protect LPs from is the asset going down, a sophisticated trader coming in to trade against you if the pool’s reference price isn't updated in time, and other risks outlined here (opens in a new tab).

Traders, meanwhile, enjoy accurate prices for assets with no trading or front-end fees and pay only the spread between the reference price and the ask/bid price, with Metric taking a small cut.

While Metric doesn’t eliminate risk entirely, it provides a crucial building block for the future we’re moving toward: one where tokenized RWAs are legitimate instruments people can trade reliably, without worrying that a few degens are gaming a thin liquidity pool on a weekend.

FAQ

What is Metric?

Metric is a decentralized exchange [DEX] built around active pools, which split pricing and liquidity into two separate components. Metric's active pools can use oracle feeds or custom logic to price tokenized stocks, forex, gold, and crypto majors accurately, whether or not an arbitrageur steps in.

How do Metric's active pools get their prices?

Metric's active pools get prices from an onchain smart contract called Price Provider, which returns bid, ask, and reference prices. Price Provider can draw on oracle networks like Chainlink or Pyth, or on logic such as another decentralized exchange's mid-price or time-weighted average price [TWAP], staking or vault conversion rates, or custom models.

Why do tokenized stocks drift from real-world prices in DeFi?

Tokenized stocks drift because they mostly trade on automated market makers [AMMs], whose quotes come from pool inventory or stored ticks and only move when someone arbitrages the gap. In late August, tokenized HIMS hit $132.64 in a weekend pool against a $28.84 Friday close before the issuer minted tokens and restored parity.

What are liquidity bins on Metric?

Liquidity bins on Metric are price ranges set as a percentage deviation from a pool's reference price, and they move with that price even without any trades. A provider quoting 2% either side of Ethereum [ETH] at $2,000 would see the bid and ask shift to $2,940 and $3,060 if ETH rose to $3,000.

What are the risks of providing liquidity on Metric?

Metric's active pools do not protect liquidity providers [LPs] from the asset's price falling or from sophisticated traders exploiting a reference price that isn't updated in time. In return, LPs on Metric keep positions in range, have earnings compound automatically, and avoid gas costs for claim and deposit transactions.

Not financial advice.