Oracle on Cosmos Hub

Should the Cosmos Hub have its own price oracle?

CosmWasm is now permissionless on the Hub, but there is no price oracle available to contracts. Pyth dropped CosmWasm, SEDA is EVM-only, and Band over IBC is slow and costs fees on every query.

Without prices, we can’t build any advanced defi on the Hub. So these apps get built on chains like Injective or dYdX, and ATOM ends up used everywhere except on its own chain.

Idea: integrate an enshrined oracle based on the Slinky fork. Validators would publish prices at every block, secured by the Hub’s own validator set, with no dependency on an external provider.

And beyond the Hub: these prices could be distributed over IBC to any connected chain that lacks an oracle. The Hub would become an interchain’s price provider, with fees flowing back to ATOM stakers.

Longer term: prices are only the first step. The same validator-voted mechanism could later carry other data the interchain needs, such as LST exchange rates, proof of reserves or other verified off-chain data. The Hub would become the interchain’s trusted data layer.

The Community Pool could fund the development and audit.

Would you support this direction? Validators, would you be willing to run an oracle sidecar?

5 Likes

I don’t support this because sometimes blocks are empty and continuously pushing prices to empty blocks is only extra cost nothing more, and their is not value setting oracle on validator, oracle is only required in contract layer

this is what I feel anyone can counter this

Good direction from a contract-safety point of view. Without prices, every lending or perps idea for CosmWasm on the Hub moves elsewhere. A few things we’d want settled before contracts rely on it, because they decide how those apps fail:

  1. Freshness. A validator-voted price only moves when enough stake reports it. The query should return the last-updated height and time next to the price, and contracts should enforce a maximum age. If it only returns a number, most contracts will read a stale price without knowing.
  2. Participation. What share of voting power has to report a pair before its price updates, and what happens when a sidecar outage drops it below that? For lending, holding the last price and marking it stale is safer than updating from a handful of validators.
  3. Listing. The median protects against a few dishonest validators, not against a thin market. If a pair’s source exchanges can be moved cheaply, every validator honestly reports the moved price. Minimum liquidity and a minimum number of independent sources per pair matter more here than the size of the validator set.
  4. IBC consumers. Chains reading these prices over IBC add relay delay on top, and they inherit the Hub’s validator set as a trust assumption. Worth writing both into the spec so they set tighter maximum ages.

If the Community Pool funds the audit, the aggregation logic and the module that stores and serves prices are where a bug moves money on every chain that reads them, so that’s where the review time should go.

Do you plan to keep Slinky’s aggregation as is, or change how prices are weighted?

Thanks both for the replies, this is exactly the kind of discussion I was hoping for.

To be clear: I’m not planning anything specific at this stage. I’m only opening the conversation on the principle, to gather opinions, discuss whether this is useful, and, if people want it, figure out the most efficient technical approach to get there. Slinky was a starting idea, not a fixed choice. I also possibly know people who would be ready to build it if the community supports the direction.

@Ignismeow That’s a fair point, and it’s the core trade-off: an enshrined oracle at the validator level versus a contract-level oracle (pull model with signed prices). Both have costs and different trust assumptions, and I’d like the community to weigh them openly.

@Zealynx Thanks, these are exactly the questions a spec would need to answer. On aggregation: nothing is decided, and how prices are weighted is part of what I’d like to discuss here.

So the question I’d like to put to the community is: how can we build an efficient oracle system, first for the Hub, and if possible for other chains over IBC?Which model do you think fits best, and what would it need to be safe?

1 Like

This discussion misses why we need Slinky in the first place.

ON COST:Hub already producesblocks every 6s,empty or not. Slinky just adds ~200bytes of price data to blocks that already exists. Cost is negligible to securing $1B+ in IBC.

ON CONTRACT vs VALIDATOR LAYER:Contract - level oracles work for a DEX, not for a Hub that wants safe lending /Perps. If every Cosmwasm has its own Oracle, you get fragmented, manipulable price feeds and unsafe liquidations. Validator - level price (where 180 Validators agree) is the only way to protect stakers - especially those of us with ATOM staked long - term.

Without this, we keep bleeding value to Osmosis while Hub stakers pay the price via inflation. That’s not sustainable

3 Likes

I fully agree with your points.

+1 for bringing Slinky (now Connect) to the Hub.
Price feeds are the missing building block for most DeFi on the Hub: lending markets, CDP-style stablecoins, liquidations, perps all depend on them. With Connect, prices are pushed by the validators through vote extensions and written into every block. That means no external relayer, no extra trust assumption, and the security of the Hub’s own validator set. The main cost is that every validator has to run the sidecar. In my opinion that cost is justified as soon as there are apps on the Hub that consume those prices, and permissionless CosmWasm makes that much more likely now.
I also looked at SEDA, which is already connected to the Hub through IBC Eureka. It’s interesting, but for a different use case. SEDA is a programmable oracle: anyone can publish an oracle program that fetches arbitrary data (sports results, off-chain events, custom APIs) and returns a verified result. It’s a good fit for on-demand or custom data, not for continuous price feeds.
It would be great to see SEDA support CosmWasm, and it wouldn’t take much, because the hard part already exists: a SEDA IBC light client is live on the Hub and kept up to date by relayers. A CosmWasm contract could verify SEDA results directly against it, with no extra trust assumption. What’s missing:
Whitelisting /ibc.core.client.v1.Query/VerifyMembership for CosmWasm contracts in Gaia. It’s a one-line change. I opened an issue for it: [Feature]: Whitelist VerifyMembership for CosmWasm GRPC queries · Issue #4023 · cosmos/gaia · GitHub (the query is already in ibc-go’s default accept list for 08-wasm light clients, so it’s considered deterministic and gas-metered).
A relayer/solver for Cosmos. SEDA’s official solvers only target EVM chains, so one would need to post requests and deliver results with their proofs to the Hub.
A SEDA gateway contract on the Hub, that apps call to post requests and read verified results, with a fee model to pay for execution (in SEDA) and for relaying.
So my view: Connect for price feeds, and SEDA as a complement for custom data. The SEDA part would be a fairly small effort compared to what it unlocks.

Are there any members of the SEDA team around here?

Skip already has Slinky so why doesn’t CL just deploy it on the Hub?

Lazy ? Not invested 100% in the hub ? working on 3rd pillar that make revenues ( for ICF not Atom ) … They are playing for themselves . not the atom holders

1 Like

Does their Hub unit also only work for the ICF, not ATOM holders?

1 Like

Fair question. From the contract side the safety needs are the same in both models, they just land in different places.

Push (validator-voted, Slinky style): prices are there every block and the Hub’s stake secures them, but liveness depends on enough validators running the sidecar, and every listed pair costs every validator. It fits a short list of liquid pairs best.

Pull (signed prices the user submits in the tx): adding long-tail pairs is cheap, but each contract has to verify the signer set, the freshness, and that the price isn’t older than the last one it used. That check logic ends up copied into every app, which is where mistakes tend to happen.

A common middle ground is push for the few core collateral pairs (ATOM, stables, the main LSTs) and pull for the rest, with one shared CosmWasm library for the checks so each app doesn’t write its own. Either way, the query should return height and timestamp with the price so contracts can enforce a max age.

1 Like

Hi everyone :waving_hand:

I just opened a small PR on gaia: !feat: allow CosmWasm contracts to query IBC light clients by Victor118 · Pull Request #4196 · cosmos/gaia · GitHub (follows issue #4023).

What it does
It adds the IBC light client VerifyMembership query (and consensus state) to the gRPC allowlist available to CosmWasm. That’s it: a tiny change, no new module, no new logic.

Why it matters
With it, a smart contract on the Hub can check that a piece of data, submitted by anyone, really exists on another chain that has an IBC light client on the Hub. The submitter doesn’t need to be trusted: the contract verifies the ICS-23 proof itself, against the Hub’s own light client.

I built a working POC of this proof verification on Neutron. The only trust assumption left was the consensus state supplied by an off-chain watcher, and this PR removes exactly that.

What it unlocks

  • Cross-chain events: emit an event in a contract on chain A, prove it on the Hub, and react to it.
  • Bringing external data to the Hub: dYdX (Connect) prices, or SEDA / Band results, all provable the same way.
  • On top of that, we can imagine a Liquity-style stablecoin backed by ATOM, where liquidators bring the price proof themselves when they liquidate.

Is this a replacement for a native oracle?
Honestly, no. A native oracle on the Hub would still be better, and this is more of a workaround. It lets us bring, for example, dYdX’s oracle price onto the Hub and be sure it’s the real value, as a way to get by without a native oracle. And even with a native oracle one day, it stays useful as an independent cross-check.

For SEDA, it’s what makes SEDA Core actually usable on the Hub. For prices it’s not ideal, though: you have to request the execution of an oracle program, wait for the SEDA network to write the result on their chain, and only then can someone bring it to the Hub trustlessly. That’s a bit slow for price feeds. (SEDA Fast is much faster, but it’s a paid API where results are signed by SEDA itself, so it’s a different trust model that doesn’t need this PR.)

Where it really shines is any data coming from an API: sports results, activity on a git repo, and so on. In short, anything that doesn’t need to be refreshed every block.

Feedback and reviews on the PR are very welcome :folded_hands:

Nice, this is what your Neutron POC was missing, the app hash stops coming from the submitter.

Something the contracts on top will have to handle themselves: the submitter still picks the proof height, and VerifyMembership accepts any height the client still has a consensus state for. Once interchain-events reads the consensus state at the submitted height, nothing ties that height to the subscription, so a GreaterThan or LessThan watch can fire on a value from before the watch was even created. For the Liquity-style idea it’s worse, a liquidator would prove the lowest price in the window. Reading the timestamp from ConsensusState at the proof height and requiring it to be recent, and newer than the last one the contract used, closes it.

Also worth writing down for whoever builds the SEDA gateway: creating an IBC client is permissionless, so a contract that accepts the client ID from the caller can be handed a valid proof from a client the caller set up for a chain they control. Pinning the client ID at instantiate avoids that.

1 Like

Thanks a lot, both points are spot on.

On the proof height: agreed, this has to be handled in the contracts on top. For interchain-events, the plan is to store a starting point in each subscription when it’s created: the client’s latest height at that moment (or a later height/timestamp chosen by the subscriber, if they want to start listening from a point in the future). A proof is then only accepted if its height is above that starting point and above the last height already processed for that subscription. That way a watch can never fire on a value from before it existed, and values can’t be replayed or go backwards.

For the Liquity-style idea, same logic on the oracle side: read the timestamp from the ConsensusState at the proof height, reject it if it’s older than a small window compared to the Hub’s block time, and require it to be newer than the last price the contract used. It could even require the proof to be at the client’s latest height, since the liquidator updates the client in the same transaction anyway.

On the client ID: completely right, I hadn’t written it down explicitly. The client ID will be pinned at instantiate, and the contract will also build the expected key itself (store prefix + key) instead of trusting the one sent by the caller. Otherwise someone could prove a perfectly valid value that has nothing to do with what the contract expects.

I’ll add these as explicit requirements in the design notes, thanks again for taking the time :folded_hands:

A more standardized direction: reading arbitrary state on another chain works, but it’s fragile: the key depends on each module’s internal encoding, which can change with any chain upgrade. So I’d like to propose a more structured approach for interchain-events: an emitter contract deployed on the source chains, where apps publish their events. The contract writes each event to its own storage under a deterministic key with a sequence number (ABCI events themselves aren’t in the state tree, so they can’t be proven). Watchers then just pick up new events and push them, with their proof, to the Hub.

This gives one stable, versioned format to verify on the Hub, and the sequence number makes ordering and replay protection straightforward. The trade-off is adoption: it only works if the emitter contract is deployed on the source chain and apps actually use it. Reading raw state stays useful for data we can’t control, like dYdX prices or SEDA/Band results.

For example: Neptune on Injective calls the emitter contract when a loan is made, which records an event like “inj1… just lent 10,000 USDC on Neptune”. A watcher pushes it to the Hub with its proof, and a contract on the Hub reacts to it: rewarding the lender, updating a cross-chain credit score, unlocking a position, etc. Neptune doesn’t need to know anything about the Hub, it just emits the event once.

Makes sense, and for events an app controls it’s a much better thing to prove than another module’s internal keys.

I’d store each event under info.sender plus a sequence per sender. Then the Hub contract checks which contract emitted it, instead of trusting an “inj1… lent 10,000 USDC on Neptune” line in the body, which anyone could write by calling the emitter themselves. The per sender sequence also lets a consumer following one app require last + 1, so a watcher can’t push the loans and leave out the liquidation that came after. Proofs are permissionless, so one honest watcher is enough to keep it moving.

I’d also instantiate the emitter without an admin. A migrated emitter could rewrite past events under the same keys and every proof would still verify.

1 Like

Thanks a lot, these are great points, and they really sharpen the design.

Keying events by info.sender + a per-sender sequence is clearly the right approach: the Hub checks who emitted the event, not what the event says. And it has a nice side effect: subscriptions on the Hub become simply (client ID, sender), e.g. “events from Neptune on Injective”. The Hub contract can then reject any event that matches no subscription, so its state only stores what someone actually asked for. On the other side, since the key starts with the sender, watchers can read just that sender’s key range on the source chain instead of scanning everything, and only push what has subscribers.

last + 1 per sender is also exactly what’s needed to make sure nobody can skip a liquidation. A new subscription will just record its starting sequence when it’s created, so it doesn’t need the full history, and it can never fire on events from before it existed.

And agreed on the emitter: no admin, fully immutable, otherwise the proofs don’t mean anything.

If you think the change in the gaia PR itself is sound, a short comment there would really help it get reviewed :folded_hands:

Read the PR and your notes in #4023. I think it’s sound, and against v10.7.0 the handlers do what you wrote. VerifyMembership refuses localhost and solo machine clients, charges the cached context’s gas back to the caller and checks Active. ConsensusState only reads the store and returns the Hub’s own height with no proof, and ClientStatus is the same GetClientStatus call. Gaia already lets 08-wasm call ConsensusState too. I’ll leave a short note on the PR.

On the starting sequence, where it comes from matters. If the Hub takes it from the first event a watcher proves after the subscription exists, the watcher picks the start and can begin right after the liquidation. I’d have the subscriber set it explicitly, or require the first proof to include the emitter’s counter for that sender at a height after creation, and only enforce last + 1 from there.

1 Like

Thanks everyone for the feedback. Zealynx’s security notes and Victor’s Gaia PR have already moved this forward. This post may become a signaling proposal asking Cosmos Labs to take on the engineering and long-term maintenance of a native price oracle for the Hub. Before that, here is a full picture: who needs it, what it costs, how to fund it, how it compares to the competition, and the questions validators and Cosmos Labs would need to answer.

What this post answers from the thread so far

@Zealynx

  • Freshness: every query returns the price, height, timestamp and pair status, so contracts can enforce a maximum age (section 11).
  • Participation: below the 2/3 threshold, the price is not updated and grows stale. It is never updated from a handful of validators (section 2).
  • Listing: listing requires minimum liquidity and at least 3 independent sources, because the median doesn’t protect against a thin market (section 9).
  • IBC consumers: the spec should state that they add relay delay and inherit the Hub validator set as a trust assumption, and recommend tighter maximum ages for them (section 4).
  • Aggregation: we would keep Slinky’s stake-weighted median at launch, and focus the audit on the aggregation logic and the module that stores and serves prices (section 5).
  • Push vs pull: we follow your hybrid: push for the core collateral pairs, pull or proofs for the rest, plus one shared CosmWasm library for freshness and status checks (section 11).

@Ignismeow

  • The cost is real, and section 6 puts numbers on it. It is mostly human time, and the reward pool is designed to cover it (sections 7 and 9).
  • Why every block, even empty ones: a liquidation can be needed in any block. When ATOM drops 20%, a lending market can’t wait for someone to submit a fresh price.
  • Why validators and not only contracts: a contract-level (pull) oracle depends on an external signer. Pyth now requires an API key, and its upgraded infrastructure supports EVM chains, Solana and Sui by default. With pull, the verification logic also ends up copied into every app, which is where mistakes tend to happen, as Zealynx noted. A push oracle gives every contract the same price, secured by Hub stake. For long-tail assets, pull remains the right tool, hence the hybrid.

@ATOM-Renaissance

  • Why doesn’t Cosmos Labs just deploy it? Because Connect isn’t plug-and-play: the code is archived, it requires a Gaia upgrade and an incentive layer, and someone has to run the market map (sections 2 and 5). That is exactly what the signaling proposal would ask Cosmos Labs to take on (section 13).

@Grey.0516

  • On the cost, we agree with your core argument. You estimated about 200 bytes of price data per block; once validator signatures are counted, our estimate is closer to tens of KB per block. That is still negligible for a pruned validator (section 6).

@Victor118

  • On SEDA, we agree it’s a complement for custom data rather than a source of continuous price feeds. Your PR is how we would import custom and TradFi data with proofs (section 8).

1. The problem

CosmWasm is now permissionless on the Hub, but contracts have no price oracle they can readily use. Pyth’s upgraded infrastructure supports EVM chains, Solana and Sui by default. SEDA’s official solvers only target EVM chains, and Band over IBC is slow and charges a fee on every query.

Without prices, there is no serious DeFi. Example: a lending protocol accepts ATOM as collateral. If ATOM drops 20%, it needs to know immediately so it can liquidate positions in time. Without a reliable, up-to-date price it cannot work, so it deploys on another chain.

2. Connect: how it works and where it stands

The idea is simple. Each validator runs a small program next to its node (the “sidecar”) that fetches prices from several exchanges. Validators attach these prices to their consensus votes, and they are written into the next block. A price only updates if 2/3 of stake reports it, and the Hub takes the stake-weighted median. If less than 2/3 of voting power agrees, the price is not published, and if that lasts several blocks in a row, it becomes increasingly stale. The price is never updated from a handful of validators.

State of the code:

  • The skip-mev/connect repo has been archived and read-only since March 24, 2025, flagged End of Life with an invitation to fork it. GitHub lists it as Apache-2.0, but the README still carries the old BSL notice. The license needs to be confirmed.
  • It is not a smart contract. It is a set of ABCI++ handlers (vote extensions, proposal, preblock), the sidecar, and the x/oracle and x/marketmap modules. Integrating it requires a Gaia upgrade.
  • The README lists only x/oracle and x/marketmap as modules: no reward or penalty module. Older Slinky docs did describe an optional x/sla module that applies small slashes when a validator doesn’t meet a price-update SLA. They also described an x/alerts module: an alerter posts a bond to flag a network-wide wrong price, and a trusted “concluder” network rules on it. Both were off by default and set by governance.
  • dYdX maintains its own fork, rolled back to the pre-rename Slinky codebase. Its validator docs make the sidecar mandatory and state that running it cannot get you slashed. A node still participates in consensus without it. These docs describe no penalty for not running it.
  • Skip, which built Connect, was acquired by the ICF in December 2024 and renamed Interchain Inc., then became Interchain Labs and finally Cosmos Labs. Nobody is better placed to bring it to the Hub.

3. Who needs it

Hub builders, not just small independent apps

  • hATOM, the native liquid staking token being built on the Hub. Its ATOM redemption rate lives in Hub state, so no oracle is needed for that. But as soon as a protocol lends USDC against hATOM, it needs the USD price of ATOM to liquidate in time, and that price is not on the Hub. For other chains, Stride has shown the way with its ICA Oracle, which sends its stTokens’ redemption rate to CosmWasm contracts on other chains.
  • Hydro. The Hydro team has offered to act as a curator for Hub products, using its rebalancing and cross-chain deployment infrastructure. It also mentions, as a later-stage integration, an underwriting layer through Riptide: allocators would lock ATOM as collateral to back the Community Pool’s decisions to buy or deploy Hub-issued assets. Valuing these positions and this collateral requires prices.
  • Demand has existed before. Wandering_Cosmonaut points out that collateralized stablecoins (Agoric, Kujira, Secret) and lending protocols (Injective, Mars, Umee) had real users, with ATOM as a major asset. None of that lending or stablecoin activity was built on the Hub. Contracts are now possible; what’s missing is prices.

Cosmos Labs’ product directions

Cosmos Labs stresses that these directions are still being validated and are not a roadmap.

  • The rails under consideration include cross-chain accounting and pricing. The first products mentioned are indices whose redemption rate rises as the basket earns, and which can be held, traded or posted as collateral on any IBC-connected chain. Assets would be minted and redeemed at their value. All of this assumes prices.
  • By Cosmos Labs’ own account, collateral use is what makes an asset take off: USDe went from zero to $10B and syrupUSDC to $1B once they could be posted as collateral. And there is no collateral without a reliable price.
  • Among the roles Cosmos Labs wants to test, validators would operate the pricing, accounting and relaying these assets require, as new fee-earning work for the active set. That is exactly what Connect does.
  • qxnico, from the Hub team, explained that these rails and first products can be built as modules and IBC work, without a general-purpose VM. Connect is precisely a module.

Institutions

  • At a later stage, the directions include tokenized stocks, funds and bonds, usable as collateral where protocols accept them. Example: a tokenized Treasury fund accepted as collateral needs its net asset value (NAV) published continuously, otherwise no loan or liquidation can be computed.
  • What an institution gets: prices backed by validator-signed votes included in every block, auditable on-chain, with no dependency on a single vendor.

Tokenomics

Gauntlet’s Phase 2 recommendations, still under review, outline a path where the Hub issues less and replaces that issuance with revenue distribution. As Victor noted, if products earn fees in USDC while the target is set in ATOM, computing the gap requires a price source.

4. Why a native oracle

  • The Hub’s own security. An analysis published on the Cosmos blog argues that Slinky is robust up to 1/3 corrupted stake, and that oracle faults are attributable to individual validators. That makes them slashable, provided a penalty mechanism is added. No external relayer, no extra trust assumption.
  • An interchain service. A chain with a Hub light client could verify Hub prices with an ICS-23 proof, provided it lets its contracts verify proofs, which is what Victor’s PR #4196 does for the Hub. The Hub could become the price source for chains that have no oracle. Those chains add relay delay and inherit the Hub validator set as a trust assumption, so the spec should recommend tighter maximum ages for them.
  • Proven experience. Hub validators ran the Slinky sidecar for Neutron under ICS, and Prop 931 set aside 360,000 NTRN from the Community Pool to reward their uptime during the beta.
  • Other data later.

5. Risks

  • Maintenance. Forking end-of-life code means owning it: security fixes, SDK and CometBFT upgrades. It’s up to Cosmos Labs, the team that wrote this code, to maintain it.
  • Consensus risk. Neutron halted in January 2025 because of a non-deterministic query to its built-in Slinky oracle, made by a contract during its instantiation. That is exactly the surface we would open to CosmWasm. After the September incidents, Cosmos Labs listed as a criterion that nothing coming to the Hub may widen its attack surface. The scope must therefore stay minimal. We would keep Slinky’s stake-weighted median at launch, and focus the audit on the aggregation logic and the module that stores and serves prices.
  • Operations. Skip’s real product wasn’t just the code. For Neutron, Skip provided 1-day SLAs for adding new feeds and 24/7 on-call support. If Cosmos Labs doesn’t take over that role, managing the list of markets (the “market map”) becomes the weak point. As Zealynx pointed out, the median protects against a few dishonest validators, not against a thin market.
  • Validator load. It’s one more service to run, and it weighs more on small validators (estimates in section 6).
  • Cost to holders. Cosmos Labs is a subsidiary of the ICF: if development is done in-house, the cost to the Community Pool is zero. The real cost is time: every month of engineering spent on the oracle is a month less on other Hub workstreams.
  • TradFi data. Prices for stocks or funds require licensed data. Validators can’t fetch them for free, and other oracles have made this their business (section 8).

6. What it costs validators (estimates, to be confirmed on testnet)

Assumptions: 180 active validators, a block roughly every 5.75 seconds, so about 15,000 blocks per day, and 10 to 20 pairs.

  • Hardware: next to nothing. According to the dYdX docs, a Connect instance fetching 125 markets used about 50 MB of memory and 6% of the CPU on an M3 MacBook Pro, and it can run on the same machine as the validator.
  • Data sources: $0 for the core pairs, which can be fed by the public APIs of major exchanges. On-chain sources, such as DEX pools on Solana or EVM chains, require paid RPCs. For dYdX validators, Skip and the dYdX team pre-paid these endpoints.
  • Data in blocks (our estimate). At every block, each validator adds its vote extension signature and metadata (about 100 bytes) plus about 15 bytes per pair. Before compression, that’s roughly 45 KB per block for 10 pairs and 70 KB for 20 pairs. For a regular validator that prunes its history, this is negligible. For an archive node (RPC, explorer), it means about 240 to 390 GB more per year.
  • Human time, the real cost (our estimate). Setup takes 2 to 4 hours, then 1 to 2 hours per month for upgrades and alerts. At $75 an hour, that’s about $1,000 to $2,000 per year per validator.
  • Network total: $180,000 to $360,000 per year. This cost is almost fixed: it depends on the number of validators far more than on the number of pairs.

7. Incentives and penalties

  • Missing prices: at launch, rewards only. Once the oracle is stable, jailing or small x/sla-style slashes for validators that don’t post. A grace period for each new pair, and network-wide incidents excluded.
  • Wrong prices: no individual penalty for deviating from the median. An honest validator using different sources would be punished, and everyone would end up copying the median. Instead, publish deviation dashboards. Slashing is reserved for network-wide failures, and only if the concluder trust model is acceptable.
  • Rewards: a flat amount per validator that meets the uptime threshold, not weighted by stake, so small validators aren’t pushed out. It is paid on-chain from a pool funded by fees (section 9). Example: a $300,000 yearly pool split among 180 validators gives each about $1,670, in line with the estimated cost of running it.

8. Against the competition

What others do:

  • Pyth. Since the Pyth Core upgrade on August 26, 2026, Pyth’s Hermes API requires an API key. Plans start at $500 per month with the Starter plan, covering crypto, NAV, crypto redemption rates and crypto indices with 1-second updates. Pro bundles range from $2,500 per month for crypto to $10,000 for all asset classes. According to a Pyth community post, a standard listing costs $20,000 to $30,000 per feed.
  • SEDA. SEDA Fast access starts at $1,000 per month. A dedicated oracle program costs $1,000 to deploy, and bespoke equity pricing with weekend prices costs $10,000 one-time.
  • Chainlink. There is no single public price list: custom feeds require direct commercial engagement. Often, the chain pays. Through the SCALE program, a chain covers the operating costs of Chainlink oracle networks on its network for a period of time. Celo, for instance, proposed allocating nearly 6 million CELO from its Community Fund over three years.

Why apps wouldn’t pay with us. A price published in every block can be read by any contract: there is no way to filter who reads it. Pyth can charge for access because apps fetch its signed prices through its API. Chainlink usually relies on a sponsor. With us, whoever requests the listing pays.

Where the Hub would sit:

  • For an app reading prices: free. An app fetching Pyth updates needs at least the $500 monthly plan, or $6,000 a year, and an app using SEDA Fast at least $12,000 a year. This is the strongest argument to attract builders, and the timing is good: Pyth’s prices became paid in August.
  • For an issuer: a cheaper listing, and free integration for apps. On Pyth, a listing costs $20,000 to $30,000, and every app that wants to read the price needs its own plan (which covers many feeds). On the Hub, the issuer pays $15,000 in the first year ($5,000 listing and $10,000 maintenance), and apps pay nothing. That removes a barrier for every app that wants to integrate the token.
  • A cheaper listing, but a justified one. Pyth distributes to dozens of chains, the Hub only to itself and IBC chains. It’s a price that matches the service, not a giveaway.
  • For TradFi data: we don’t compete, we import. Victor’s PR would let a Hub contract verify, with a proof, data that exists on another chain with a light client on the Hub, such as dYdX prices or SEDA results. He notes it’s a bit slow for price feeds. This suits NAVs and slow-moving data better than fast prices, and imports remain subject to each provider’s redistribution terms.
  • The money stays in the ecosystem. A chain joining SCALE pays an external oracle network. On the Hub, the same spending pays its own validators.

9. Business model

The goal: cover the estimated $180,000 to $360,000 yearly network cost. The grid below is a starting point, to be set by governance and reviewed every year against measured costs.

Service Price Example
Core pairs (ATOM, BTC, ETH, USDC, USDT) Free A public good for the whole Hub
Listing a new pair $5,000 one-time A Cosmos project wants its token priced
Pair maintenance $10,000 per year Renewable by anyone
NAV of a Hub-issued asset 0.01% of assets per year, $10,000 minimum, $50,000 cap $200M index: $20,000; $1B fund: $50,000

Three simple rules:

  1. The requester pays for the listing. Usually that’s the token issuer, which gains the most from its token becoming usable as collateral.
  2. Anyone can pay all or part of a renewal: the issuer, a lending protocol, a DAO, another chain.
  3. A pair that isn’t renewed is only removed after 90 days’ notice (section 10).

People reading the price without paying aren’t a problem. The goal isn’t to make every reader pay, it’s to cover the cost of the pair. If nobody wants to pay for it, the pair isn’t listed, and those who need it use pull mode or proof-based import. The Hub doesn’t need to list everything.

Other points:

  • Listing criteria: minimum liquidity and at least 3 independent sources. Fees also act as an anti-spam filter, since every pair costs every validator.
  • hATOM doesn’t need a dedicated pair for its redemption value: its rate lives in Hub state and is combined with the ATOM price. A protocol may still want a market price, since hATOM can trade below its redemption value under stress.
  • Payment: in USDC, or in ATOM at the oracle price. 100% of fees go to the validator reward pool.
  • IBC delivery: a subscription for chains that want prices pushed over IBC rather than handling proofs themselves.

Let’s be realistic about revenue. Even the market leader earned little from on-chain usage and listings. According to the Pyth Core-to-Pro migration proposal, Pyth Core generated about $9,000 per month from update fees, compared with about $108,000 for Pyth Pro subscriptions. The same community post puts Pyth’s listing revenue at more than $300,000 since 2025.

Example on the Hub: 10 paid pairs ($100,000) and 3 Hub-issued assets of $200M each ($60,000) give $160,000 per year. That’s still below the low cost estimate of $180,000. The model will therefore rely mainly on pricing Hub-issued assets, which will grow with Cosmos Labs’ products. Until then, bootstrapping is needed: Cosmos Labs or the ICF fund the pool for 12 to 24 months, until fees take over.

Then there’s the indirect value, probably the biggest: ATOM and hATOM used as collateral, Hydro vaults that can be valued, and activity that stays on the Hub instead of moving to Injective or dYdX.

10. Delisting a pair: what happens to users

For a regular token holder, nothing changes: they keep their tokens and can still trade them. The risk is for those using the token as collateral. If the price stops, two cases:

  • The contract checks price age. It rejects a stale price, and everything freezes, including liquidations. If the token drops in the meantime, the protocol accumulates bad debt.
  • The contract doesn’t check price age. This is worse: it keeps using the last price. If the token has lost 50% elsewhere, someone can borrow the maximum against overvalued collateral and leave the loss to the protocol.

Hence a four-step delisting procedure:

  1. On-chain announcement. The pair moves to “sunsetting” status, with an end date 90 days out. Protocols read this directly in the price query and can react automatically.
  2. Protocols reduce their exposure. They block new borrowing against the token, then gradually lower the allowed loan-to-value ratio.
  3. Users have 90 days to repay, withdraw their collateral, swap it for an asset that’s still listed, or move their position to another chain.
  4. On the end date, the last price is frozen with “delisted” status. Protocols switch to repay-only mode, or to a price imported with proof from another oracle.

In practice, a pair that’s actually used will rarely be delisted. During the notice period, anyone can pay for the renewal, and whoever has the most to lose has every reason to do so. Example: a lending protocol holds $2M of token X as collateral across 200 borrowers. Winding that market down cleanly would cost it work, users and reputation. Paying $10,000 to renew is far cheaper.

11. Initial scope

  • Validator-published prices for a short list: ATOM, BTC, ETH, USDC, USDT and the main ATOM LSTs.
  • hATOM valued through its on-chain redemption rate and the ATOM price.
  • NAV of Hub-issued assets, as soon as they exist.
  • Other pairs and TradFi data imported in pull mode or with proofs from other oracles. Until launch, Victor’s PR, once merged, would already allow importing dYdX prices.
  • Every query returns the price, height, timestamp and pair status (active, sunsetting, delisted), so contracts can reject stale prices and anticipate a delisting.
  • One shared CosmWasm library for freshness and status checks, so each app doesn’t write its own verification logic.

12. Questions for validators

Validators would run this every day, so their input comes first.

  1. Would you be willing to run the sidecar?
  2. Do the cost estimates in section 6 match your experience? Those who ran it for Neutron are especially welcome to share numbers.
  3. Which reward and penalty model would you support: flat rewards with an uptime threshold, jailing, small slashes?
  4. Would a reward of around $1,670 per year cover your cost, or what would it take?

13. Questions for Cosmos Labs

A price oracle is a basic building block the Hub should have had a long time ago. Cosmos Labs leads the Hub and built Connect, so the signaling proposal would ask Cosmos Labs to take it on. Nothing is decided yet, so these questions are open:

  1. Does a native oracle fit your vision for the Hub, given that your rails already plan for cross-chain pricing?
  2. Would Cosmos Labs be willing to take on the engineering and long-term maintenance: code, market map, new feeds and on-call support, as Skip did for Neutron?
  3. Would it be compatible with your Hub safety criterion and performance roadmap? Could you measure the validator load from section 6 on testnet?
  4. Could Cosmos Labs or the ICF fund the validator reward pool for the first 12 to 24 months, until fees take over?
  5. What timeline would you consider realistic, audit included?

14. Next step

Depending on the answers, I’ll turn this post into a signaling proposal asking Cosmos Labs to take on the engineering and maintenance of the native oracle.

2 Likes

Thanks for pulling it all together, and for carrying the earlier points over.

In Connect, any address in the x/marketmap MarketAuthorities param can call UpdateMarkets, and that overwrites a live market’s providers and MinProviderCount in the same block. The 2/3 median then publishes whatever the new sources say, so for ATOM, BTC and the LSTs that lending will lean on, whoever holds that role is the real trust boundary, more than the validator set. If Cosmos Labs runs the market map with fast feed additions, the spec could say who holds that key and keep changes to core pairs behind governance or a delay lending markets can see coming, with the fast lane only for new listings.

On delisting, a last price frozen with a delisted status is your second case in section 10 for any contract that doesn’t read the status, and those are the contracts the procedure is meant to protect. If the query returns an error once a pair is delisted, they stop instead of lending against it, and the ones that do read the status already had 90 days of sunsetting to switch.

Hey! I will answer from the perspective of the roadmap work we are doing and how this aligns or has overlap points, as you mention a few! Thank you for the great breakdown.

Does a native oracle fit the roadmap we are developing?

Yes, but a bit narrower. In your post, you mostly talk about a general-purpose DeFi chain and generic price feeds. The roadmap work has explicitly moved away from that since the shift out of the EVM-based vision. There are also data options available today, and dApps have also utilized mixed models with off-chain sources for a while now.

The roadmap work as we’ve shared focuses more on making the Hub into an issuance and asset distribution machine, where pricing and feeds are still very useful.

Where I think you’re hitting the nail on the head, and it fits what we’ve been talking about roadmap-wise, is this part of the post:

If the Hub’s job is issuing and accounting for assets that get used as collateral elsewhere, then a validator-secured data layer for redemption rates, NAVs, basket values, and proof-of-reserves should be part of the distribution rail.

That is a data oracle for issuance first, and a price oracle second. (If you look at the phases of the roadmap we started outlining, we speak of issuance first, yield-bearing assets orchestrated across chain later, etc.).

So what you say, “would operate the pricing, accounting, and relaying these assets require, as new fee-earning work for the active set,” can land well there; something like Connect could be helpful. It requires a look, as you say; the code is archived.

Generally, the core point that this type of proposal drives home for me is: whatever products we build, we want every aspect of it (data, IBC relaying, etc.) to be as closely integrated for fee generation to the Hub.

Very aligned there.

Would we take on engineering and maintenance?

What we believe is important is that things are purpose-built. So rather than blanket-adding features to the Hub, used or not, I prefer thinking of this in terms of how it integrates into the Hub roadmap. Otherwise, it increases the maintenance burden for stewards and operators with unclear upside. Similarly to why removing ICS at some point was helpful, beyond the performance limitations it caused, because it is code that, long-term, was not necessary and hard to maintain.

So we will see most of what we think and expect for a feature like this in the roadmap breakdown and discussion; I will make a note to flag in the places I believe this can come in. We are now drafting it with the scale-up mentality, so starting with a piece of the product, scaling, adding surrounding features, etc… That’ll define the when/how for us about the issuance products.

Same on timeline and safety: not much I can share off the top of my head here for the same reason- different scope, different estimates; it would require a different analysis than what we’re doing on the roadmap work. If this isn’t the shape that ends up in the roadmap but validators and builders push for it, the Hub has had contributions from many fronts before, and nothing stops someone from building it ahead of us. Just want folks to be mindful of the moments we create new load and for what.


Very cool to see folks excited about pieces of the puzzle (and also many folks here know Connect well). This and the relaying convo we had were very helpful for the roadmap work :+1:

2 Likes