From fddbbcbeb0bf395b8a54646c01d20a1fe7654349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gon=C3=A7alves?= Date: Mon, 6 Jan 2025 17:31:57 +0000 Subject: [PATCH] Add only asset same network mode doc --- docs/flows/crypto-onramp.mdx | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/docs/flows/crypto-onramp.mdx b/docs/flows/crypto-onramp.mdx index 3c6f2f1..13dde59 100644 --- a/docs/flows/crypto-onramp.mdx +++ b/docs/flows/crypto-onramp.mdx @@ -109,7 +109,7 @@ We recommend that you use `XRP` for testing purposes when integrating Topper sin -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 { @@ -164,6 +164,30 @@ When `recipientEditMode` is `all-editable`, the user can change `asset`, `networ } // highlight-end } +``` + + + + + +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 +} ```