Skip to content

Commit f45490f

Browse files
committed
additional resources
1 parent 0e4d456 commit f45490f

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

pages/express-relay/integrate-as-protocol.mdx

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ contract EasyLend is IExpressRelayFeeReceiver {
163163

164164
Protocols must fetch liquidation opportunities like vaults and positions eligible for liquidation and expose them to Express Relay for auction.
165165

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.
167167

168168
The JSON payload should contain liquidation opportunities in the following format:
169169

@@ -190,5 +190,23 @@ The JSON payload should contain liquidation opportunities in the following forma
190190
}
191191
```
192192

193+
TODO: Include a callout to give more info about permission ID
193194

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.
207+
208+
### Contract Address
209+
210+
### Error Codes
211+
212+
### API Reference

0 commit comments

Comments
 (0)