A price can be authentic and still be too old
Why a lending protocol has to check a price twice: once for who signed it, and again for when it is used.
A signed price report answers one question: did the oracle network really say this? It does not answer the question a lender cares about, which is whether the number is still true at the moment money moves.
Those are two different properties. Authenticity is about the signature. Freshness is about the clock.
Where the gap opens
A report is verified when it arrives. A borrow, a withdrawal or a liquidation may use it later. In between, the market keeps moving. A price that was correct and properly signed a few minutes ago can be far enough from the market to let someone borrow against collateral that is no longer worth what the protocol thinks.
Nothing was forged. Every check passed. The protocol acted on old information with full confidence.
Two checks, at two different times
In Alpend we treat these as separate steps:
- On arrival: verify the report. Is it signed by the expected signers, for the expected feed?
- On use: check its age again, at the moment a lending action needs it. If it is too old for that action, the action does not proceed.
The second check is the one that is easy to skip, because the report already carries a "verified" status. Verified is a fact about the past.
Verified tells you who said it. Fresh tells you whether you can still act on it.
Not every action needs the same freshness
Actions that add risk, such as borrowing or withdrawing collateral, deserve the tightest bound. Actions that reduce risk, such as repaying or adding collateral, can tolerate an older price: the worst case is that the protocol ends up safer than it thought. Liquidations cut both ways. A stale price can liquidate someone who is healthy, or spare someone who is not.
What this costs
Strict freshness has a price. When a feed is late, actions fail, and users feel that as friction. We think that is the right side to err on. A failed transaction is an inconvenience. A loan priced on a stale number is bad debt.
The general rule
Any system that separates "when we learned it" from "when we use it" needs a check at both points. Prices are the obvious case. The same logic applies to credit limits, collateral eligibility and anything else that can change between a decision and its execution.