Concepts ·
Feed contracts
The plan is one DepthFeed contract per chain. Indexers submit signed depth reports; the contract accepts a report when a quorum of the active indexer weight has signed the same value for the same block.
| Chain | Contract |
|---|---|
| Robinhood Chain | not deployed — this page will carry the address |
| Robinhood testnet | not deployed |
Intended interface:
interface IDepthFeed {
function latestDepth(bytes32 poolId) external view returns (uint256 down1, uint256 up1, uint64 asOfBlock);
function depthAt(bytes32 poolId, uint16 bps) external view returns (uint256 down, uint256 up, uint64 asOfBlock);
function trackedPools() external view returns (bytes32[] memory);
}
Reports that fail quorum would be kept briefly and discarded. A pool with no accepted report for a set number of blocks would be marked stale and latestDepth would revert rather than return an old number. The exact constants are open questions in the governance draft.