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/integrate-as-protocol.mdx
+20-2Lines changed: 20 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,7 @@ contract EasyLend is IExpressRelayFeeReceiver {
163
163
164
164
Protocols must fetch liquidation opportunities like vaults and positions eligible for liquidation and expose them to Express Relay for auction.
165
165
166
-
The Express Relay auction server provides a POST method, `/v1/opportunities`, which accepts a JSON payload containing the details of the liquidation opportunity.
166
+
The Express Relay auction server provides a **POST** method, `/v1/opportunities`, which accepts a JSON payload containing the details of the liquidation opportunity.
167
167
168
168
The JSON payload should contain liquidation opportunities in the following format:
169
169
@@ -190,5 +190,23 @@ The JSON payload should contain liquidation opportunities in the following forma
190
190
}
191
191
```
192
192
193
+
TODO: Include a callout to give more info about permission ID
193
194
194
-
TODO: Include a callout to give more info about permission ID
195
+
Protocols must evaluate each position's health using the latest Oracle prices before exposing them to Express Relay.
196
+
You can do this by indexing the chain, listening to protocol events, or querying open positions through an RPC provider.
197
+
198
+
199
+
200
+
## Additional Resources
201
+
202
+
You may find these additional resources helpful for integrating Express Relay as a protocol.
203
+
204
+
### Example Application
205
+
206
+
[Easy Lend](https://github.com/pyth-network/pyth-crosschain/tree/main/express_relay/examples/easy_lend) is a simple lending protocol that allows users to borrow and lend assets. This lending protocol contract is updated to permit Express Relay transactions.
0 commit comments