-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathc59aba9c.683fdb2f.js
1 lines (1 loc) · 7.95 KB
/
c59aba9c.683fdb2f.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{104:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return f}));var r=n(0),o=n.n(r);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=o.a.createContext({}),d=function(e){var t=o.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},u=function(e){var t=d(e.components);return o.a.createElement(l.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return o.a.createElement(o.a.Fragment,{},t)}},b=o.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,a=e.originalType,i=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),u=d(n),b=r,f=u["".concat(i,".").concat(b)]||u[b]||p[b]||a;return n?o.a.createElement(f,c(c({ref:t},l),{},{components:n})):o.a.createElement(f,c({ref:t},l))}));function f(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var a=n.length,i=new Array(a);i[0]=b;var c={};for(var s in t)hasOwnProperty.call(t,s)&&(c[s]=t[s]);c.originalType=e,c.mdxType="string"==typeof e?e:r,i[1]=c;for(var l=2;l<a;l++)i[l]=n[l];return o.a.createElement.apply(null,i)}return o.a.createElement.apply(null,n)}b.displayName="MDXCreateElement"},148:function(e,t,n){"use strict";n.r(t),t.default=n.p+"assets/images/createNewBridge-9997e9f6727e9caa15b1933969728f05.jpeg"},149:function(e,t,n){"use strict";n.r(t),t.default=n.p+"assets/images/convertToBep20-acd91040f2806763a301a3a7f1202749.jpeg"},150:function(e,t,n){"use strict";n.r(t),t.default=n.p+"assets/images/claimBep20-82eaa938248deeaaabbc2d3d42508f05.jpeg"},151:function(e,t,n){"use strict";n.r(t),t.default=n.p+"assets/images/convertToErc20-f1283eb732c47f4a0c2a8e797c00a4d5.jpeg"},152:function(e,t,n){"use strict";n.r(t),t.default=n.p+"assets/images/claimErc20-cc1ad743533d793141377489dad2d3ff.jpeg"},95:function(e,t,n){"use strict";n.r(t),n.d(t,"frontMatter",(function(){return i})),n.d(t,"metadata",(function(){return c})),n.d(t,"rightToc",(function(){return s})),n.d(t,"default",(function(){return d}));var r=n(3),o=n(7),a=(n(0),n(104)),i={id:"universal-bridge",title:"Universal Bridge"},c={unversionedId:"universal-bridge",id:"universal-bridge",isDocsHomePage:!1,title:"Universal Bridge",description:"What is Universal Bridge?",source:"@site/docs/universal-bridge.md",slug:"/universal-bridge",permalink:"/docs/universal-bridge",version:"current",sidebar:"someSidebar",previous:{title:"Price Oracle",permalink:"/docs/price-oracle"}},s=[{value:"What is Universal Bridge?",id:"what-is-universal-bridge",children:[]},{value:"Converting TAD Tokens",id:"converting-tad-tokens",children:[]},{value:"Creating a new Token Bridge",id:"creating-a-new-token-bridge",children:[]},{value:"Converting ERC20 to BEP20",id:"converting-erc20-to-bep20",children:[]},{value:"Converting BEP20 to ERC20",id:"converting-bep20-to-erc20",children:[]},{value:"Creating custom URL for a specific token",id:"creating-custom-url-for-a-specific-token",children:[]}],l={rightToc:s};function d(e){var t=e.components,i=Object(o.a)(e,["components"]);return Object(a.b)("wrapper",Object(r.a)({},l,i,{components:t,mdxType:"MDXLayout"}),Object(a.b)("h2",{id:"what-is-universal-bridge"},"What is Universal Bridge?"),Object(a.b)("p",null,"Universal Bridge is a tool provided by Tadpole Finance to facilitate its users in creating a ERC20 to BEP20 token bridge. With the Universal Bridge, users can create a BEP20 version of an ERC20 token, and transfer the tokens back and forth between Ethereum and BSC network. The tool is created to make it easier for developers who already has a ERC20 token on Ethereum to move to BSC."),Object(a.b)("p",null,"The tool is located at ",Object(a.b)("a",Object(r.a)({parentName:"p"},{href:"https://app.tadpole.finance/universalbridge.html"}),"https://app.tadpole.finance/universalbridge.html")),Object(a.b)("h2",{id:"converting-tad-tokens"},"Converting TAD Tokens"),Object(a.b)("p",null,'To convert TAD tokens, type "TAD" into the search box and click on the TAD option. The real TAD token can be identified with the TAD logo.'),Object(a.b)("h2",{id:"creating-a-new-token-bridge"},"Creating a new Token Bridge"),Object(a.b)("p",null,"To create a new Token Bridge, first you will need to input the ERC20 token address to the provided search box. After that, two boxes will show up, each showing the token details of the ERC20 and BEP20 version of the token. If the Token Bridge is not created yet, you will need to create it first. 10 TAD will be burned in the process of creating a new bridge."),Object(a.b)("p",null,Object(a.b)("img",{alt:"Create new token bridge",src:n(148).default})),Object(a.b)("p",null,"After the transaction is confirmed, a new BEP20 token will be created and users will be able to use the bridge to convert their ERC20 tokens to BEP20, and vice versa. "),Object(a.b)("p",null,"Note: The Bridge does not support rebase or reflection type tokens. Please avoid using the bridge for those type of tokens."),Object(a.b)("h2",{id:"converting-erc20-to-bep20"},"Converting ERC20 to BEP20"),Object(a.b)("p",null,'To convert ERC20 to BEP20, input the amount that you want to convert in the input field in the left box, and click "Convert to BEP20". Please note that the contract will request your approval to transact the tokens on your behalf, and this is only required when converting for the first time.'),Object(a.b)("p",null,Object(a.b)("img",{alt:"Convert to BEP20",src:n(149).default})),Object(a.b)("p",null,"After the transaction is confirmed, wait for a few minutes until a new entry appears on the bottom side of the page. You can then do another transaction to claim your BEP20 tokens in BSC network. Remember to switch your Metamask network to BSC first before claiming BEP20."),Object(a.b)("p",null,Object(a.b)("img",{alt:"Claim BEP20",src:n(150).default})),Object(a.b)("h2",{id:"converting-bep20-to-erc20"},"Converting BEP20 to ERC20"),Object(a.b)("p",null,'To convert BEP20 back to ERC20, input the amount that you want to convert in the input field in the right box, and click "Convert to ERC20".'),Object(a.b)("p",null,Object(a.b)("img",{alt:"Convert to ERC20",src:n(151).default})),Object(a.b)("p",null,"After the transaction is confirmed, wait for a few minutes until a new entry appears on the bottom side of the page. You can then do another transaction to claim your ERC20 tokens in Ethereum network. Remember to switch your Metamask network to Ethereum first before claiming ERC20."),Object(a.b)("p",null,Object(a.b)("img",{alt:"Claim ERC20",src:n(152).default})),Object(a.b)("h2",{id:"creating-custom-url-for-a-specific-token"},"Creating custom URL for a specific token"),Object(a.b)("p",null,"You can add a tokenAddress querystring parameter to the URL to automatically open the bridge for a specific ERC20 token upon page load. For example: ",Object(a.b)("a",Object(r.a)({parentName:"p"},{href:"https://app.tadpole.finance/universalbridge.html?tokenAddress=0xF791df8cE12FeECa6165dd11f99747195FC4FF11"}),"https://app.tadpole.finance/universalbridge.html?tokenAddress=0xF791df8cE12FeECa6165dd11f99747195FC4FF11")))}d.isMDXComponent=!0}}]);