Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit 45261f7

Browse files
committed
update instant docs
1 parent 61196d0 commit 45261f7

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

mdx/guides/integrate-instant.mdx

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Introduction
22

3-
0x Instant is a product from the 0x core team that offers a convenient way for people to get access to a wide variety of tokens and other crypto-assets in just a few clicks. Developers can integrate the free, open source library into their applications or websites in order to both offer seamless access to crypto-assets, as well as gain a new source of revenue, with just a few lines of code.
3+
0x Instant is a product built by 0x community that offers a convenient way for people to get access to a wide variety of tokens and other crypto-assets in just a few clicks. Developers can integrate the free, open source library into their applications or websites in order to both offer seamless access to crypto-assets, as well as gain a new source of revenue, with just a few lines of code.
44

55
<Image
66
src="https://s3.eu-west-2.amazonaws.com/0x-wiki-images/instant_screenshot.png"
@@ -15,7 +15,7 @@ Check out a live example on [mainnet](https://dexkit-storage.nyc3.digitaloceansp
1515

1616
## Libraries
1717

18-
0x Instant has the library `0x Instant UI component` that users will see and is powered by 0x API. Check out the `0x API` documentation [here](https://0x.org/docs/api).
18+
0x Instant has the library `0x Instant UI component` that users will see and is powered by 0x API. Check out the `0x API` documentation [here](https://0x.org/docs/api). Check out the Instant Github repo [here](https://github.com/0xProject/0x-instant)
1919

2020

2121
## Affiliate Fees
@@ -24,7 +24,7 @@ As an end host of 0x Instant, you can charge users a fee on all trades made thro
2424

2525
# UI Integration
2626

27-
The 0x Instant UI powered by 0x API are bundled together in a convenient JS package for you. You can either download and serve the package yourself, or use the CDN-hosted version from 0x.
27+
The 0x Instant UI powered by 0x API are bundled together in a convenient JS package for you. You can either download and serve the package yourself, or use the CDN-hosted version from 0x community.
2828

2929
<CodeTabs tabs={['html']}>
3030

@@ -66,7 +66,7 @@ The 0x Instant UI powered by 0x API are bundled together in a convenient JS pack
6666
| `defaultAmountTokenOut` | Pre-fill the amount of out tokens Defaults to 0. |
6767
| `tokenList` | Token list url where to fetch the list of supported tokens |
6868
| `chainId` | Chain Id of Ethereum network to connect to. Defaults to 1 (mainnet). |
69-
| `affiliateInfo` | An object specifying what % ETH fee should be added to orders and where the fee should be sent. Max feePercentage is .05 (See examples below) |
69+
| `affiliateInfo` | An object specifying what % Token fee on bought tokens should be added to orders and where the fee should be sent. Max feePercentage is .05 (See examples below) |
7070
| `shouldDisableAnalyticsTracking` | An option to turn on / off analytics used to make Instant a better experience. Defaults to false. |
7171
| `onSuccess` | a function handler that is called when the token purchase through 0x Instant is complete. The function handler requests one argument: the transaction hash. |
7272
| `onClose` | a function handler that is called when the Instant overlay is closed. The function handler does not request any argument |
@@ -140,7 +140,7 @@ zeroExInstant.render(
140140

141141
# Learn about affiliate fees
142142

143-
As an end host of 0x Instant, you can charge users a fee on all trades made through Instant with the `affiliateFee` option. Simply specify an ethereum address and feePercentage (up to 5%), and a percentage of each transaction will be deposited into the specified address (denominated in bought tokens).
143+
As an end host of 0x Instant, you can charge users a fee on all trades made through Instant with the `affiliateFee` option. Simply specify an ethereum address and feePercentage (up to 5%), and a percentage of each transaction will be deposited into the specified address (denominated in bought tokens). If no affiliate address is specified it defaults to zero address.
144144

145145
Example: 3% of transaction volume (in ETH) will be deposited into 0x50ff5828a216170cf224389f1c5b0301a5d0a230
146146

@@ -180,6 +180,14 @@ Check out this [article](/docs/guides/web3-provider-explained) in the guides sec
180180

181181
0x Instant supports any ERC20 <-> ERC20 swaps.
182182

183+
### Q: Which networks will Instant supports?
184+
185+
Instant supports at the moment only ETH network, support for networks for BSC, Polygon, Fantom, Celo and Avalanche are on Roadmap.
186+
187+
### Q: This project has a roadmap?
188+
189+
Check the roadmap [here](#roadmap)
190+
183191

184192
## Mobile
185193

@@ -193,6 +201,11 @@ For apps using React Native or apps that have a web view, the 0x API will work o
193201

194202
If you host 0x Instant, you can designate an address that you own to receive a small % of bought tokens that users spend on assets. The fee percent maxes out at 5%. You can configure this in the AffiliateInfo setting.
195203

204+
### Q: Do I need to set an affiliate?
205+
206+
Affiliate info is optional.
207+
208+
196209
## Support
197210

198211
### Q: How can I get help integrating Instant?
@@ -201,8 +214,12 @@ Create question on [StackExchange](https://ethereum.stackexchange.com/questions/
201214

202215
### Q: Who maintains this package?
203216

204-
This package is maintained by community member @JoaoCampos89 under a grant gave by ZRX.
217+
This package is maintained by community member @JoaoCampos89 under a grant gave by "the 0x community"
205218

206219
### Q: I found a bug on instant?
207220

208-
Please open issue on [Instant Github](https://github.com/0xProject/0x-instant/issues)
221+
Please open issue on [Instant Github](https://github.com/0xProject/0x-instant/issues)
222+
223+
### Q: The token that I want to swap keeps failling?
224+
225+
Instant powered by 0x API supports any Token that has liquidity and follows ERC20 standard. Tokens that not follow ERC20 standard can fail as for instance deflationary or with buy back functions.

0 commit comments

Comments
 (0)