You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/express-relay/index.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,10 @@ import ContractIcon from "../../components/icons/ContractIcon";
8
8
9
9
Express Relay is a priority auction that enables protocols to eliminate maximal extractable value (MEV).
10
10
11
-
**For Protocol Developers:** Express Relay’s auction primitive allows your protocol to prioritize access to permissionless operations, eliminating the extractive role of miners in ordering transactions.
11
+
-**For Protocol Developers:** Express Relay’s auction primitive allows your protocol to prioritize access to permissionless operations, eliminating the extractive role of miners in ordering transactions.
12
12
A network of established searchers compete in the auctions, allowing you to avoid spending time and energy bootstrapping your own protocol-specific searcher network.
13
13
14
-
**For Searchers:** Express Relay aggregates liquidation and other MEV opportunities across integrated DeFi protocols, providing easy and unified access.
14
+
-**For Searchers:** Express Relay aggregates liquidation and other MEV opportunities across integrated DeFi protocols, providing easy and unified access.
Copy file name to clipboardExpand all lines: pages/express-relay/integrate-as-protocol.mdx
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,12 @@ Defi protocols can **permissionlessly** integrate with Express Relay to recaptur
6
6
7
7
Integrating with Express Relay involves two main steps:
8
8
9
-
- Update your defi protocol's contract to **permission** Express Relay transactions.
10
-
- Write a script to **expose**liquidation opportunities to Searchers for auction.
9
+
- Update your defi protocol's contract to **permit** Express Relay transactions.
10
+
- Write a script to **expose** opportunities to searchers for auction.
11
11
12
12
## Update your defi Protocol's Contract
13
13
14
-
To integrate with Express Relay, your protocol's contract must permit Express Relay to access liquidation opportunities.
14
+
To integrate with Express Relay, your protocol's contract must permit Express Relay to access opportunities.
15
15
16
16
<Steps>
17
17
### Install the Express Relay SDK
@@ -50,17 +50,17 @@ The following steps show how to modify your protocol's contract to permit Expres
50
50
1. Utilize [`isPermissioned`](https://github.com/pyth-network/pyth-crosschain/blob/main/express_relay/sdk/solidity/IExpressRelay.sol#L10C14-L10C28) method from `IExpressRelay` interface to **permit** Express Relay transactions.
51
51
1. Implement the [`IExpressRelayFeeReceiver`](https://github.com/pyth-network/pyth-crosschain/blob/main/express_relay/sdk/solidity/IExpressRelayFeeReceiver.sol#L4) interface to **receive** funds from Express Relay.
52
52
53
-
#### 1. Permission Express Relay Transactions
53
+
#### 1. Permit Express Relay Transactions
54
54
55
55
The `isPermissioned` function takes two arguments:
56
56
1.`protocolFeeReceiver`: The contract address that will receive the protocol fee from the winning searcher after a successful auction.
57
-
1.`permissionId`: A unique identifier of a vault or position eligible for liquidation.
57
+
1.`permissionId`: A unique identifier of a vault or position eligible to expose as an opportunity.
@@ -161,11 +161,11 @@ contract EasyLend is IExpressRelayFeeReceiver {
161
161
</Steps>
162
162
163
163
164
-
## Expose Liquidation Opportunities to Searchers
164
+
## Expose Opportunities to Searchers
165
165
166
-
Your defi protocol should fetch vaults and positions eligible for liquidation and expose them to Express Relay for auction.
166
+
Your defi protocol should fetch vaults and positions eligible as opportunites and expose them to Express Relay for auction.
167
167
168
-
The Express Relay auction server provides a **POST** method, `/v1/opportunities`, which accepts a JSON payload containing the details of the liquidation opportunity.
168
+
The Express Relay auction server provides a **POST** method, `/v1/opportunities`, which accepts a JSON payload containing the details of the opportunity.
169
169
170
170
The JSON payload should contain liquidation opportunities in the following format:
171
171
@@ -196,7 +196,7 @@ The JSON payload should contain liquidation opportunities in the following forma
196
196
Each protocol integrated with Express Relay must evaluate every position's health using the latest Oracle prices before exposing them to Express Relay.
197
197
You can do this by indexing the chain, listening to protocol events, or querying open positions through an RPC provider.
198
198
199
-
Check the [`monitor.ts`]() script, which fetches liquidation opportunities for the below-mentioned [Easy Lend](https://github.com/pyth-network/pyth-crosschain/tree/main/express_relay/examples/easy_lend) example and exposes them to Express Relay for auction.
199
+
Check the [`monitor.ts`](https://github.com/pyth-network/pyth-crosschain/blob/main/express_relay/examples/easy_lend/src/monitor.ts) script, which fetches liquidation opportunities for the below-mentioned [Easy Lend](https://github.com/pyth-network/pyth-crosschain/tree/main/express_relay/examples/easy_lend) example and exposes them to Express Relay for auction.
200
200
201
201
202
202
## Additional Resources
@@ -215,4 +215,4 @@ The [Contract Address](./contract-addresses.mdx) page lists the addresses of Exp
215
215
216
216
### API Reference
217
217
218
-
The [API Reference](https://per-staging.dourolabs.app/docs/) provides detailed information on the Express Relay APIs for submitting liquidation opportunities.
218
+
The [API Reference](https://per-staging.dourolabs.app/redoc/) provides detailed information on the Express Relay APIs for submitting opportunities.
0 commit comments