Skip to content

Instantly share code, notes, and snippets.

@dmihal
Created January 7, 2020 21:36
Show Gist options
  • Save dmihal/8770c41c98684a0eed492a8432b7499f to your computer and use it in GitHub Desktop.
Save dmihal/8770c41c98684a0eed492a8432b7499f to your computer and use it in GitHub Desktop.
import { xdai, dai, eth, ERC20Asset } from '@burner-wallet/assets';
import Exchange, { Uniswap, XDaiBridge } from '@burner-wallet/exchange';
//...
const mkr = new ERC20Asset({
id: 'mkr',
name: 'Maker',
address: '0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2',
network: '100',
priceSymbol: 'MKR',
});
const exchange = new Exchange({ pairs: [
new XDaiBridge(),
new Uniswap('dai'),
new Uniswap('mkr'),
]});
const BurnerWallet = () =>
<ModernUI
title="Basic Wallet"
core={core}
plugins={[exchange]}
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment