Ormer: A Manipulation-resistant and Gas-efficient Blockchain Pricing Oracle for DeFi
Dongbin Bai, Jiannong Cao, Yinfeng Cao, Long Wen, Milos Stojmenovic

TL;DR
Ormer is a novel blockchain oracle that provides manipulation-resistant, gas-efficient, and accurate asset price estimates by heuristically computing medians and fusing estimations, outperforming traditional TWAP methods in accuracy and cost.
Contribution
This paper introduces Ormer, a new on-chain pricing algorithm that improves resistance to manipulation, reduces delay and error, and lowers gas costs compared to existing TWAP oracles.
Findings
Ormer reduces mean absolute price error by 15.3%.
Ormer decreases time delay by 49.3%.
Ormer's gas consumption is 15.2% less than TWAP.
Abstract
Price feeds of cryptocurrencies are essential for Decentralized Finance (DeFi) applications to realize fundamental trading and exchanging functionalities, which are retrieved from external price data sources such as exchanges and input to on-chain smart contracts in real-time. Currently, arithmetic mean based time-weighted average price (TWAP) oracles are widely used to process price feeds by averaging asset price with short time frame to achieve reliable and gas-efficient pricing. However, recent research indicates that TWAP is vulnerable to price manipulation attacks, resulting in abnormal price fluctuations and severe financial loss. Even worse, TWAP oracles usually set a relatively long time frame setting to prevent such attack. However, it would further introduce long delays and high price deviation errors from the market asset price. To address this issue, we propose a novel…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBlockchain Technology Applications and Security
