Created
January 7, 2020 21:37
-
-
Save dmihal/30a23db12930e3302d7570e9c9d62e37 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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