Skip to content

Commit

Permalink
Add only asset same network mode doc
Browse files Browse the repository at this point in the history
  • Loading branch information
andregoncalvesdev committed Jan 17, 2025
1 parent aa2b129 commit 924122f
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion docs/flows/crypto-onramp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ We recommend that you use `XRP` for testing purposes when integrating Topper sin
<Tabs>
<TabItem label="Not editable" value="not-editable" default>

When `recipientEditMode` is `not-editable`, the user can can't change `asset`, `network`, `address` or `tag` on the widget. This means that these fields are all required on the bootstrap token.
When `recipientEditMode` is `not-editable`, the user can't change `asset`, `network`, `address` or `tag` on the widget. This means that these fields are all required on the bootstrap token.

```js
{
Expand Down Expand Up @@ -164,6 +164,30 @@ When `recipientEditMode` is `all-editable`, the user can change `asset`, `networ
}
// highlight-end
}
```

</TabItem>

<TabItem label="Only asset same network" value="only-asset-same-network" default>

When `recipientEditMode` is `only-asset-same-network`, the user can't change `network`, `address` or `tag` on the widget. This means that these fields are all required on the bootstrap token.

```js
{
"iat": 1679538023,
"jti": "4b552af1-1592-42f8-bbc9-dac28e2b4000",
"sub": "b9fe022b-f436-49e1-bb89-6f2e8eabf336",
// highlight-start
"target": {
"address": "0xb794f5ea0ba39494ce839613fffba74279579268",
"allowedAssets": ["ETH", "RLUSD"],
"asset": "ETH",
"label": "My wallet",
"network": "ethereum",
"recipientEditMode": "only-asset-same-network"
}
// highlight-end
}
```

</TabItem>
Expand Down

0 comments on commit 924122f

Please sign in to comment.