Skip to content

Commit 9cf9fec

Browse files
committed
(WIP) Express relay docs
1 parent 27fbecc commit 9cf9fec

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ interface IExpressRelayFeeReceiver {
9191
```
9292

9393

94-
The following code snippet shows a sample liquidation method via Express Relay:
94+
The following code snippet shows a sample liquidation method via Express Relay.
95+
Note: The highlighted lines show the contract's relevant additions for Express Relay integration.
9596

9697
```solidity showLineNumbers {1,2,12,14,21,38-42, 57-61} copy
9798
import "@pythnetwork/express-relay-sdk-solidity/IExpressRelay.sol";
@@ -163,7 +164,7 @@ contract EasyLend is IExpressRelayFeeReceiver {
163164

164165
## Expose Liquidation Opportunities to Searchers
165166

166-
Protocols must fetch vaults and positions eligible for liquidation and expose them to Express Relay for auction.
167+
Protocols should fetch vaults and positions eligible for liquidation and expose them to Express Relay for auction.
167168

168169
The Express Relay auction server provides a **POST** method, `/v1/opportunities`, which accepts a JSON payload containing the details of the liquidation opportunity.
169170

@@ -205,7 +206,7 @@ You may find these additional resources helpful for integrating Express Relay as
205206

206207
### Example Application
207208

208-
[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.
209+
[Easy Lend](https://github.com/pyth-network/pyth-crosschain/tree/main/express_relay/examples/easy_lend) is a dummy lending protocol contract that allows users to borrow and lend assets. This lending protocol contract is updated to permit Express Relay transactions.
209210

210211
### Contract Address
211212

0 commit comments

Comments
 (0)