Skip to content

Commit ce9082d

Browse files
committed
(WIP) Express relay docs
1 parent a1ebb8d commit ce9082d

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed
Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1-
The auction in Express Relay is held off-chain at the auction server. Bids arrive at the auction server and compete against other bids vying for the same permission key. A relayer selected by governance serves as the auctioneer and is expected to determine the auction in line with the criterion of maximizing the revenue shared back to the protocol that generated this opportunity. That means the auctioneer is expected to forward the subset of bids that maximizes the revenue back to the protocol.
1+
# Auction
22

3-
Thus, the Express Relay auction is analogous to a sealed-bid auction, in that participants in the auction will not have the contents of their bid disclosed publicly unless they are forwarded on-chain. Generally, bids are forwarded on-chain if they are expected to execute successfully on-chain, though additional "fallback" bids may be forwarded as well in case of execution failures for the expected winners. The `ExpressRelay` contract extracts the payment of the specified bid amount only if the searcher's bid executes successfully on-chain. Hence, the Express Relay auction can be seen as a generalization of a [first-price sealed-bid auction](https://en.wikipedia.org/wiki/First-price_sealed-bid_auction), in that multiple bids can win and pay their first price.
3+
The auction in Express Relay is held off-chain at the auction server.
4+
Liquidation bids arrive at the auction server and compete against other bids, vying for the same [permission key](./permissioning.mdx).
5+
A [relayer](./relayer.mdx) selected by governance serves as the auctioneer and determines the auction in line with the criterion of maximizing the revenue shared back to the protocol that generated this opportunity.
6+
That means the auctioneer is expected to forward the subset of bids that maximizes the revenue back to the protocol.
47

5-
The revenue from the auction is shared amongst relevant stakeholders in the Express Relay system. This includes:
6-
- the protocol, which generated the relevant opportunity
8+
Thus, the Express Relay auction is analogous to a sealed-bid auction, i.e., participants in the auction will not have the contents of their bid disclosed publicly unless they are forwarded on-chain.
9+
10+
Generally, the auction server expects bids to execute successfully on-chain. Falback bids are also forwarded in case of execution failures for the predicted winners.
11+
12+
The `ExpressRelay` contract extracts the payment of the specified bid amount only if the searcher's bid is successfully executed on-chain.
13+
Hence, the Express Relay auction can be seen as a generalization of a [first-price sealed-bid auction](https://en.wikipedia.org/wiki/First-price_sealed-bid_auction), in that multiple bids can win and pay their first price.
14+
15+
The revenue from the auction is shared amongst relevant stakeholders in the Express Relay system. These stakeholders include:
16+
- the protocol that generated the relevant opportunity
717
- the relayer, which handled running the off-chain components of the system
818

9-
The exact revenue splits can be found in the Express Relay read contract and are subject to ...
19+
The contract enforces the exact revenue splits in the Express Relay and is subject to change based on governance decisions.

pages/express-relay/how-express-relay-works/example_ez_lend.mdx

Whitespace-only changes.

pages/express-relay/how-express-relay-works/opportunities.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Opportunities
2+
13
In the context of Express Relay, an opportunity refers to a potential transaction that a searcher can execute on a protocol. Typically, the term "opportunity" is used for such transactions that are lucrative and therefore hotly contested by many searchers.
24

35
In the pre-Express Relay world, opportunities therefore correspond to MEV: a protocol generates MEV when an opportunity appears on that protocol and searchers bid up the right to execute the opportunity at the validator level.

pages/express-relay/how-express-relay-works/permissioning.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Permissionin ID
2+
13
`permissionId` is a `bytes` object that represents the unique identifying information of a position within the protocol. `permissionId` allows the system to distinguish between bids competing on different opportunities and thereby run more scoped and efficient auctions.
24

35
For some protocols, each borrower has a unique position, so the borrower address uniquely identifies a position. For other protocols, each borrower might have multiple positions, distinguished by the address of the collateral asset or by a uint256 id number. In those cases, the set of information that uniquely identifies a position would include multiple fields.

0 commit comments

Comments
 (0)