<body>
<script defer type="text/javascript">
// describe widget configuration and saving to a global variable for future use
var configuration = {
from: 'BNB',
<body>
<script defer type="text/javascript">
// describe widget configuration and saving to a global variable for future use
var configuration = {
from: 'BNB',
to: '0x64404cbbb4c2a513ef964f7ccfe4aaa533226d82',
fromChain: 'BSC',
toChain: 'BSC',
amount: 1,
iframe: 'flex',
hideSelectionFrom: false,
hideSelectionTo: true,
theme: 'light',
background: '#28372e',
injectTokens: {
BSC: [
0x64404cbbb4c2a513ef964f7ccfe4aaa533226d82'
]
},
slippagePercent: {
instantTrades: 12,
crossChain: 12
}
}
// prevent accidental changes to the object, for example, when re-creating a widget for another theme
Object.freeze(configuration);
// create widget
rubicWidget.init(configuration);
</script>