Skip to content

Commit 160cf57

Browse files
committed
update Reference Material
1 parent a1775cc commit 160cf57

File tree

11 files changed

+90
-338
lines changed

11 files changed

+90
-338
lines changed

pages/express-relay/_meta.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@
3131
"websocket-api-reference": "Websocket API Reference",
3232
"contract-addresses": "Contract Addresses",
3333
"errors": "Error Codes",
34-
"examples": {
35-
"title": "Example Application ↗",
36-
"href": "https://github.com/pyth-network/pyth-examples/tree/6cea7c9602c7949c6dacc94aec44c0fe78ccb128/express-relay/easy_lend",
37-
"newWindow": true
38-
},
3934
"-- Understand Express Relay": {
4035
"title": "Understanding Express Relay",
4136
"type": "separator"
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Contract Addresses
22

3-
This section covers the contract addresses for Express Relay on different networks. Please navigate to the relevant section below.
3+
This section covers the contract addresses for Express Relay. Please navigate to the relevant section below.
44

5-
- [EVM](contract-addresses/evm)
65
- [SVM](contract-addresses/svm)
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"evm": "EVM",
32
"svm": "SVM"
43
}

pages/express-relay/contract-addresses/evm.mdx

Lines changed: 0 additions & 138 deletions
This file was deleted.

pages/express-relay/contract-addresses/svm.mdx

Lines changed: 53 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,75 @@ import AddressSvmTable from "../../../components/AddressSvmTable";
33

44
Express Relay is currently deployed on the following SVM environments:
55

6-
<Tabs items={['Solana Mainnet-Beta Testing']}>
6+
<Tabs items={['Prod (Solana Mainnet-Beta)', 'Testing (Solana Mainnet-Beta)']}>
7+
<Tabs.Tab>
8+
Auction Server endpoint: https://pyth-express-relay-mainnet.asymmetric.re/
9+
10+
### Prod
11+
12+
**Network Details:**
13+
14+
<AddressSvmTable
15+
explorer={"https://solscan.io/account/$ADDRESS"}
16+
entries={[
17+
{
18+
name: "Express Relay Program",
19+
value: "PytERJFhAKuNNuaiXkApLfWzwNwSNDACpigT3LwQfou",
20+
link: true,
21+
},
22+
{
23+
name: "Limo Limit Order Program",
24+
value: "LiMoM9rMhrdYrfzUCxQppvxCSG1FcrUK9G8uLq4A1GF",
25+
link: true,
26+
},
27+
{
28+
name: "Chain Id",
29+
value: "solana",
30+
link: false,
31+
},
32+
{
33+
name: "Public RPC",
34+
value: "https://api.mainnet-beta.solana.com",
35+
link: false,
36+
},
37+
{
38+
name: "Limo Global Order Config",
39+
value: "prod7Mog8r56sn5dPwze8nVdf94veEawdxNNqd5v7A1",
40+
link: true,
41+
},
42+
{
43+
name: "Frontend",
44+
value: "https://swap.kamino.finance",
45+
link: false,
46+
},
47+
]}
48+
/>
49+
</Tabs.Tab>
50+
51+
<Tabs.Tab>
752

853
<Callout type="warning" emoji="⚠️">
954
To simulate real performance conditions and activity, the staging/testing
1055
environment for Solana is on the mainnet-beta network. This environment is not
1156
for production use and should only be used for testing.
1257
</Callout>
1358

14-
<Tabs.Tab>
1559
Auction Server endpoint: https://per-staging.dourolabs.app/
1660

17-
### Solana
61+
### Testing
1862

1963
**Network Details:**
2064

2165
<AddressSvmTable
2266
explorer={"https://solscan.io/account/$ADDRESS"}
2367
entries={[
2468
{
25-
name: "Express Relay Program",
69+
name: "Express Relay Program (Swaps)",
70+
value: "stag1NN9voD7436oFvKmy1kvRZYLLW8drKocSCt2W79",
71+
link: true,
72+
},
73+
{
74+
name: "Express Relay Program (Limit Orders)",
2675
value: "PytERJFhAKuNNuaiXkApLfWzwNwSNDACpigT3LwQfou",
2776
link: true,
2877
},

pages/express-relay/errors.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22

33
This section covers error codes one may run into during integration. Please see the relevant section below for the environment of interest.
44

5-
- [EVM](errors/evm)
65
- [SVM](errors/svm)

pages/express-relay/errors/_meta.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"evm": "EVM",
32
"svm": "SVM"
43
}

pages/express-relay/errors/evm.mdx

Lines changed: 0 additions & 33 deletions
This file was deleted.

pages/express-relay/errors/svm.mdx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ They can be used to identify the cause of a failed transaction or bid.
55

66
## ExpressRelay
77

8-
| Error | Explanation |
9-
| ----------------------------- | ------------------------------------------------------------------------------------------- |
10-
| `FeeSplitLargerThanPrecision` | The proposed fee split is invalid (split is larger than `FEE_SPLIT_PRECISION`, 10000) |
11-
| `FeesHigherThanBid` | The fees to pay out exceed the value of the bid amount. |
12-
| `DeadlinePassed` | The bid is no longer valid, as the Unix time deadline has passed. |
13-
| `InvalidCPISubmitBid` | The `SubmitBid` instruction should not be called via CPI. |
14-
| `MissingPermission` | The transaction is missing a `SubmitBid` instruction with the matching permission key. |
15-
| `MultiplePermissions` | The transaction should not contain more than one `SubmitBid` instruction. |
16-
| `InsufficientSearcherFunds` | The searcher lacks the funds to pay the specified bid amount. |
17-
| `InsufficientRent` | The fees splits received by different parties must be sufficient to cover the account rent. |
8+
| Error | Explanation |
9+
| ----------------------------- | ----------------------------------------------------------------------------------------------- |
10+
| `FeeSplitLargerThanPrecision` | The proposed fee split is invalid (split is larger than `FEE_SPLIT_PRECISION`, 10000) |
11+
| `FeesHigherThanBid` | The fees to pay out exceed the value of the bid amount. |
12+
| `DeadlinePassed` | The bid is no longer valid, as the Unix time deadline has passed. |
13+
| `InvalidCPISubmitBid` | The `SubmitBid` instruction should not be called via CPI. |
14+
| `MissingPermission` | The transaction is missing a `SubmitBid` instruction with the matching permission key. |
15+
| `MultiplePermissions` | The transaction should not contain more than one `SubmitBid` instruction. |
16+
| `InsufficientSearcherFunds` | The searcher lacks the funds to pay the specified amount. |
17+
| `InsufficientRent` | The fees splits received by different parties must be sufficient to cover the account rent. |
18+
| `InvalidReferralFee` | The provided referral fee in the swap instruction data is too high to be a valid number of bps. |
19+
| `InsufficientUserFunds` | The user lacks the funds to pay the specified amount in the swap instruction. |

pages/express-relay/index.mdx

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,16 @@ import CodeIcon from "../../components/icons/CodeIcon";
77

88
# Introduction
99

10-
Express Relay is a priority auction that enables protocols to eliminate [Maximal Extractable Value](https://www.ledger.com/academy/glossary/maximal-extractable-value-mev) (MEV).
10+
Express Relay is a priority auction which enables better orderflow mechanisms that eliminate [Maximal Extractable Value](https://www.ledger.com/academy/glossary/maximal-extractable-value-mev) (MEV).
1111

12-
- **For Protocol Developers:** Express Relay allows protocols to recapture MEV and access a network of searchers.
13-
With Express Relay, protocols don't need to spend time and energy bootstrapping a protocol-specific searcher network.
12+
- **For Protocol Developers:** Express Relay allows protocols to recapture MEV and access a network of searchers for more competitive pricing than on-chain sources provide.
13+
With Express Relay, protocols get access to plug-and-play liquidity.
1414

15-
- **For Searchers:** Express Relay provides easy and unified access by aggregating liquidation and other MEV opportunities across integrated DeFi protocols.
16-
Searchers integrate once and gain access to all existing and future opportunities.
15+
- **For Searchers:** Express Relay provides easy and unified access to a range of orderflow opportunities across integrated DeFi protocols.
1716

1817
## Integration
1918

20-
To integrate with Express Relay, you can integrate as a protocol or as a searcher.
19+
To integrate with Express Relay, you can integrate as a protocol (to power market orders/swaps) or as a searcher.
2120

2221
<Cards>
2322
<Card
@@ -38,15 +37,9 @@ To integrate with Express Relay, you can integrate as a protocol or as a searche
3837
To learn more about Express Relay, refer to the following resources:
3938

4039
<Cards>
41-
<Card
42-
icon={<QuestionMarkIcon />}
43-
title="How Express Relay Works"
44-
href="./express-relay/how-express-relay-works "
45-
/>
46-
47-
<Card
48-
icon={<CodeIcon />}
49-
title="Example Protocol Integration"
50-
href="https://github.com/pyth-network/pyth-examples/tree/6cea7c9602c7949c6dacc94aec44c0fe78ccb128/express-relay/easy_lend"
51-
/>
40+
<Card
41+
icon={<QuestionMarkIcon />}
42+
title="How Express Relay Works"
43+
href="./express-relay/how-express-relay-works "
44+
/>
5245
</Cards>

0 commit comments

Comments
 (0)