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
{{ message }}
This repository was archived by the owner on Nov 28, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: pages/express-relay/integrate-as-protocol.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ To integrate with Express Relay, your protocol's contract must check if Express
17
17
### Install the Express Relay SDK
18
18
19
19
Pyth provides a [Solidity SDK](https://www.npmjs.com/package/@pythnetwork/express-relay-sdk-solidity) to help developers integrate Express Relay into their DeFi protocol.
20
-
The SDK exposes [`IExpressRelay`](https://github.com/pyth-network/pyth-crosschain/blob/main/express_relay/sdk/solidity/IExpressRelay.sol) and [`IExpressRelayFeeReceiver`](https://github.com/pyth-network/pyth-crosschain/blob/main/express_relay/sdk/solidity/IExpressRelayFeeReceiver.sol) interfaces to interact with Express Relay.
20
+
The SDK exposes [`IExpressRelay`](https://github.com/pyth-network/per/tree/main/sdk/solidity/IExpressRelay.sol) and [`IExpressRelayFeeReceiver`](https://github.com/pyth-network/per/tree/main/sdk/solidity/IExpressRelayFeeReceiver.sol) interfaces to interact with Express Relay.
21
21
22
22
<Tabsitems={['Hardhat', 'Foundry']}>
23
23
<Tabs.Tab>
@@ -49,8 +49,8 @@ Then add the following line to `remappings.txt` file:
49
49
50
50
The following steps show how to modify your protocol's contract to verify if the current transaction is permissioned by Express Relay and to receive the auction proceeds.
51
51
52
-
1. Call the [`isPermissioned`](https://github.com/pyth-network/pyth-crosschain/blob/main/express_relay/sdk/solidity/IExpressRelay.sol#L10C14-L10C28) method from `IExpressRelay` interface to make sure the current transaction is permissioned by Express Relay.
53
-
1. Implement the [`IExpressRelayFeeReceiver`](https://github.com/pyth-network/pyth-crosschain/blob/main/express_relay/sdk/solidity/IExpressRelayFeeReceiver.sol#L4) interface to **receive** auction proceeds.
52
+
1. Call the [`isPermissioned`](https://github.com/pyth-network/per/tree/main/sdk/solidity/IExpressRelay.sol#L10C14-L10C28) method from `IExpressRelay` interface to make sure the current transaction is permissioned by Express Relay.
53
+
1. Implement the [`IExpressRelayFeeReceiver`](https://github.com/pyth-network/per/tree/main/sdk/solidity/IExpressRelayFeeReceiver.sol#L4) interface to **receive** auction proceeds.
54
54
55
55
#### 1. Verify Permissioning
56
56
@@ -211,16 +211,16 @@ The JSON payload should contain opportunities in the following format:
211
211
Each protocol integrated with Express Relay must actively monitor for new opportunities.
212
212
Protocols can do this by indexing the chain, listening to protocol events, or querying protocol state through an RPC provider.
213
213
214
-
Check the [`monitor.ts`](https://github.com/pyth-network/pyth-crosschain/blob/main/express_relay/examples/easy_lend/src/monitor.ts) script,
215
-
which fetches 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.
214
+
Check the [`monitor.ts`](https://github.com/pyth-network/per/tree/main/examples/easy_lend/src/monitor.ts) script,
215
+
which fetches opportunities for the below-mentioned [Easy Lend](https://github.com/pyth-network/per/tree/main/examples/easy_lend) example and exposes them to Express Relay for auction.
216
216
217
217
## Additional Resources
218
218
219
219
You may find these additional resources helpful for integrating Express Relay as a protocol.
220
220
221
221
### Example Application
222
222
223
-
[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.
223
+
[Easy Lend](https://github.com/pyth-network/per/tree/main/examples/easy_lend) is a dummy lending protocol contract that allows users to borrow and lend assets.
224
224
This lending protocol contract is updated to use Express Relay.
0 commit comments