TL;DR
- Building on its experience developing oracle protocols that provide low-latency data to blockchains, Douro Labs has been experimenting with a prototype solution for cost-effective liquidations and value-additive means to discover such liquidations
- The intuition behind the solution prototype is to enable DeFi to increase its efficiency by retaining value that might have traditionally leaked to block builders and increase access to parties that are able to compete over opportunities
- Douro Labs showcases the current prototype running in testnet and would like to open up a DAO discussion on the viability to further develop the current prototype and deploy a DAO owned instance into production
Two Problems addressed by Express Relay
- DeFi protocols and their users leak value to arbitrageurs and block miners in the form of deep discounts in order to reduce the credit risk that results from underwater positions and/or vaults
- By virtue of the fragmentation of DeFi, searchers that scan for liquidation opportunities are limited by the number of DeFi applications they can monitor and build integrations for
The Solution
The current prototype solution allows DeFi protocols to each independently auction off the rights to liquidations via its own order flow auction (OFA), re-aligning incentives away from actors that impact and benefit from the (re)ordering of transactions.
In the following diagram, the traditional workflow is illustrated on the left-hand side whereby value is leaked to block miners. by contrast, Express Relay removes the ability of miners to extract value for the benefit of searchers scanning for opportunities and enables DeFi protocols to capture the majority of value from Searchers. Protocols will effectively reduce the discounts that they have to provide to deal with the risk of bad debt, further improving the economic efficiency of their applications and providing users with better experience.
Key Features / Characteristics
- Current prototype is focused on DeFi deployed on EVM chains
- Liquidations are resolved in one-transaction within the same block
- Express relay is oracle agnostic. Searchers and Protocols can use separate protocols to measure health factors and price the liquidation opportunities
- The solution is immune to single transaction sandwich attacks that prevent liquidations from being triggered
Market Validation
The initial response from a number of community members on the idea and the current prototype has been positive:
- 7 searchers so far have expressed interest in integrating if a DAO-owned and governed production system were to see the light
- 8 DeFi protocols so far have expressed similar interest in using Express Relay as a primitive to process liquidations and recoup value leaked otherwise
Current Prototype Deployment Details
The current contracts are deployed on optimism sepolia testnet (op-sepolia) using the following addresses:
| Address | |
|---|---|
| Express Relay Operator | 0xD6e417287b875A3932c1Ff5dcB26D4D2C8b90B40 |
| Express Relay Contract | 0xc643e55EE8944F3017F4CB8C82aa3DB1AA2d8941 |
| Express Relay Contract v0.4 | 0x014393b4c3c28054D533204309c52c77373Bea24 |
| OpportunityAdapter Contract | 0xD35E56C06320B1ED549a8F85d316FEc854FF4b71 |
| OpportunityAdapter v0.4 | 0xCE20a60782D5216eb7C361387dF2d95DC79AF803 |
| ERC20-Token 1 (BTC) | 0x3745007F7C8DD8Bec89b3B35f33f13f58b008533 |
| ERC20-Token 2 (USDC) | 0x1e3d75F24296abBC7bd10D151F51d758bCE379Ef |
| ERC20-Token 3 (DOGE) | 0x0160Ba0A02A910e27b4189040aC74febcc476687 |
| ERC20-Token 4 (SOL) | 0x193aD24BeeDfAf27f217395f52fA20C7A36D79B3 |
| ERC20-Token 5 (PYTH) | 0x20e0b5Ff7aa971dAd8f489112Ae009A70608d2D5 |
| WETH | 0x74A4A85C611679B73F402B36c0F84A7D2CcdFDa3 |
| Liquidation Simulator | 0xBB006ebbf8bc80710Ec6dA88E6427F9Ab2938719 |
Prototype metrics are available here.
The prototype features a set of high-quality searchers actively performing liquidations on the Optimism Sepolia testnet. The activity and performance of these searchers on liquidation opportunities can be seen here.
Request for comments
Douro Labs hereby requests the Pyth community to comment on the problem addressed and provide feedback on the solution proposed, prior to a potential PIP (Pyth Improvement Proposal) that the DAO can vote on to adopt the solution on mainnet.
