Skip to content

Commit d524fd3

Browse files
committed
uhh
1 parent 0a56469 commit d524fd3

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { Steps } from 'nextra/components'
2-
import { Tabs } from 'nextra/components'
3-
1+
import { Callout, Tabs, Steps } from 'nextra/components'
42

53
# How to Integrate Express Relay as a Protocol
64

@@ -47,16 +45,20 @@ Then add the following line to `remappings.txt` file:
4745

4846
### Modifying the Protocol's Contract
4947

50-
The Protocol's contract should be updated to:
48+
Developers need to update the Protocol's contract to:
5149

52-
1. Utilize `isPermissioned` method from `IExpressRelay` interface to **permit** Express Relay transactions.
53-
1. Implement the `IExpressRelayFeeReceiver` interface to receive funds from Express Relay.
50+
1. Utilize [`isPermissioned`](https://github.com/pyth-network/pyth-crosschain/blob/main/express_relay/sdk/solidity/IExpressRelay.sol#L10C14-L10C28) method from `IExpressRelay` interface to **permit** Express Relay transactions.
51+
1. Implement the [`IExpressRelayFeeReceiver`](https://github.com/pyth-network/pyth-crosschain/blob/main/express_relay/sdk/solidity/IExpressRelayFeeReceiver.sol#L4) interface to **receive** funds from Express Relay.
5452

5553
#### 1. Permit Express Relay Transactions
5654

5755
The `isPermissioned` function takes two arguments:
5856
1. `protocolFeeReceiver`: The address of the Protocol's contract.
59-
1. `permissionId`: A unique identifier for the liquidation opportunity. TODO: Add Permission ID Reference
57+
1. `permissionId`: A unique identifier for the liquidation opportunity.
58+
59+
<Callout type="info" emoji="ℹ️">
60+
The `permissionId` allows you to permission an depermission a set of transaction. ........ To know more about permission ID, refer to the [Permission ID](#) page.
61+
</Callout>
6062

6163
```solidity copy
6264
import "@pythnetwork/express-relay-sdk-solidity/IExpressRelay.sol";

0 commit comments

Comments
 (0)