1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Remove leftover references to Coinbase (#8403)

Coinbase was removed as a deposit option some time ago.
This commit is contained in:
Mark Stacey 2020-04-23 20:32:15 -03:00 committed by GitHub
parent 3620146e63
commit cc41dee92c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 3 additions and 13 deletions

View File

@ -5,13 +5,12 @@ export default getBuyEthUrl
*
* @param {Object} opts - Options required to determine the correct url
* @param {string} opts.network The network for which to return a url
* @param {string} opts.amount The amount of ETH to buy on coinbase. Only relevant if network === '1'.
* @param {string} opts.address The address the bought ETH should be sent to. Only relevant if network === '1'.
* @returns {string|undefined} - The url at which the user can access ETH, while in the given network. If the passed
* network does not match any of the specified cases, or if no network is given, returns undefined.
*
*/
function getBuyEthUrl ({ network, amount, address, service }) {
function getBuyEthUrl ({ network, address, service }) {
// default service by network if not specified
if (!service) {
service = getDefaultServiceForNetwork(network)
@ -22,8 +21,6 @@ function getBuyEthUrl ({ network, amount, address, service }) {
return `https://pay.sendwyre.com/?dest=ethereum:${address}&destCurrency=ETH&accountId=AC-7AG3W4XH4N2&paymentMethod=debit-card`
case 'coinswitch':
return `https://metamask.coinswitch.co/?address=${address}&to=eth`
case 'coinbase':
return `https://buy.coinbase.com/?code=9ec56d01-7e81-5017-930c-513daa27bb6a&amount=${amount}&address=${address}&crypto_currency=ETH`
case 'metamask-faucet':
return 'https://faucet.metamask.io/'
case 'rinkeby-faucet':

View File

@ -460,8 +460,6 @@ export default class MetamaskController extends EventEmitter {
markPasswordForgotten: this.markPasswordForgotten.bind(this),
unMarkPasswordForgotten: this.unMarkPasswordForgotten.bind(this),
getGasPrice: (cb) => cb(null, this.getGasPrice()),
// coinbase
buyEth: this.buyEth.bind(this),
// primary HD keyring management

View File

@ -12,7 +12,7 @@ function mapStateToProps (state) {
function mapDispatchToProps (dispatch) {
return {
toWyre: (address) => {
dispatch(buyEth({ service: 'wyre', address, amount: 0 }))
dispatch(buyEth({ service: 'wyre', address }))
},
toCoinSwitch: (address) => {
dispatch(buyEth({ service: 'coinswitch', address }))

View File

@ -450,10 +450,6 @@
}
}
&__coinbase-logo {
height: 40px;
}
&__shapeshift-logo {
height: 60px;
}

View File

@ -16,7 +16,6 @@ const mapStateToProps = (state) => {
const mapDispatchToProps = (dispatch) => {
return {
toCoinbase: (address) => dispatch(actions.buyEth({ network: '1', address, amount: 0 })),
createAccount: (newAccountName) => {
return dispatch(actions.addNewAccount())
.then((newAccountAddress) => {

View File

@ -68,7 +68,7 @@ export default {
// loading overlay
SHOW_LOADING: 'SHOW_LOADING_INDICATION',
HIDE_LOADING: 'HIDE_LOADING_INDICATION',
// buy Eth with coinbase
BUY_ETH: 'BUY_ETH',
TOGGLE_ACCOUNT_MENU: 'TOGGLE_ACCOUNT_MENU',