You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
516 B
23 lines
516 B
module.exports = getBuyEthUrl
|
|
|
|
function getBuyEthUrl ({ network, amount, address }) {
|
|
let url
|
|
switch (network) {
|
|
case '1':
|
|
url = `https://buy.coinbase.com/?code=9ec56d01-7e81-5017-930c-513daa27bb6a&amount=${amount}&address=${address}&crypto_currency=ETH`
|
|
break
|
|
|
|
case '3':
|
|
url = 'https://faucet.metamask.io/'
|
|
break
|
|
|
|
case '4':
|
|
url = 'https://www.rinkeby.io/'
|
|
break
|
|
|
|
case '42':
|
|
url = 'https://github.com/kovan-testnet/faucet'
|
|
break
|
|
}
|
|
return url
|
|
}
|
|
|