{"id":1320,"date":"2022-02-25T16:21:47","date_gmt":"2022-02-25T16:21:47","guid":{"rendered":"https:\/\/forustoken.com\/?page_id=1320"},"modified":"2022-02-25T18:43:04","modified_gmt":"2022-02-25T18:43:04","slug":"rubic-swap","status":"publish","type":"page","link":"https:\/\/forustoken.com\/index.php\/rubic-swap\/","title":{"rendered":"Rubic Swap"},"content":{"rendered":"<p>\n<\/p><!-- 1. Put this script tag to the <head><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\"><\/span> of your page: --><p>\r\n\r\n<script type=\"text\/javascript\" src=\"https:\/\/widgets.rubic.exchange\/iframe\/bundle.min.js\"><\/script>\r\n\r\n<!-- 2. Put this div tag to the place, where the Rubic Widget will be: -->\r\n<div id=\"rubic-widget-root\"><\/div>\r\n<!-- 3. Put this script tag to the bottom of <body>: -->\r\n\r\n<script defer type=\"text\/javascript\">\r\n    \/\/ describe widget configuration and saving to a global variable for future use\r\n    var configuration = {\r\n        from: 'BNB',\r\n        to: '0xc54a4640907044283e8e4885090e205992b9813e',\r\n        fromChain: 'BSC',\r\n        toChain: 'BSC',\r\n        amount: 1,\r\n        iframe: 'flex',\r\n        hideSelectionFrom: false,\r\n        hideSelectionTo: true,\r\n        theme: 'dark',\r\n        background: '#1f3bff',\r\n        injectTokens: {\r\n            'bsc': [\r\n                '0xc54a4640907044283e8e4885090e205992b9813e'\r\n            ]\r\n        },\r\n        slippagePercent: {\r\n            instantTrades: 2,\r\n            crossChain: 5\r\n        },\r\n        fee: 0.075,\r\n        feeTarget: 0x2F70aDD232F2F663527d0FF71EDcf2Cc0642988F\r\n    }\r\n\r\n    \/\/ prevent accidental changes to the object, for example, when re-creating a widget for another theme\r\n    Object.freeze(configuration);\r\n\r\n    \/\/ create widget\r\n    rubicWidget.init(configuration);\r\n<\/script>\n<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/forustoken.com\/index.php\/wp-json\/wp\/v2\/pages\/1320"}],"collection":[{"href":"https:\/\/forustoken.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/forustoken.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/forustoken.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/forustoken.com\/index.php\/wp-json\/wp\/v2\/comments?post=1320"}],"version-history":[{"count":10,"href":"https:\/\/forustoken.com\/index.php\/wp-json\/wp\/v2\/pages\/1320\/revisions"}],"predecessor-version":[{"id":1350,"href":"https:\/\/forustoken.com\/index.php\/wp-json\/wp\/v2\/pages\/1320\/revisions\/1350"}],"wp:attachment":[{"href":"https:\/\/forustoken.com\/index.php\/wp-json\/wp\/v2\/media?parent=1320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}