Skip to content

Commit

Permalink
remove xanpool, wyre
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Dec 14, 2023
1 parent 811adb8 commit 10d49aa
Show file tree
Hide file tree
Showing 15 changed files with 4 additions and 253 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"eslint.format.enable": true,
"eslint.lintTask.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll": true
"source.fixAll": "explicit"
},
"prettier.printWidth": 150,
"cSpell.words": ["ARBITRUM", "loglevel", "openlogin", "toruslabs", "unstoppabledomains", "walletconnect"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
<div class="mb-2 d-flex align-center">
<span class="body-2">{{ t('walletTopUp.youSend') }}</span>
<span class="caption ml-auto">
{{ t('walletTopUp.min') }} {{ selectedProvider === XANPOOL ? '0.1 ETH' : minOrderValue }}, {{ t('walletTopUp.max') }}
{{ maxOrderValue }} USD*
{{ t('walletTopUp.min') }} {{ minOrderValue }}, {{ t('walletTopUp.max') }} {{ maxOrderValue }} USD*
</span>
</div>
<v-text-field
Expand Down Expand Up @@ -145,7 +144,6 @@
import { BroadcastChannel } from '@toruslabs/broadcast-channel'
import { mapState } from 'vuex'
import { XANPOOL } from '../../../utils/enums'
import { broadcastChannelOptions, formatCurrencyNumber, paymentProviders, significantDigits } from '../../../utils/utils'
import ComponentLoader from '../../helpers/ComponentLoader'
import HelpTooltip from '../../helpers/HelpTooltip'
Expand Down Expand Up @@ -195,7 +193,6 @@ export default {
snackbarText: 'Sample',
snackbarColor: 'success',
selectedCurrency: '',
XANPOOL,
}
},
computed: {
Expand Down
7 changes: 0 additions & 7 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ export default {
simplexApiHost: 'https://simplex-api.tor.us',
moonpayApiHost: 'https://moonpay-api.tor.us',
rampApiHost: 'https://ramp-network-api.tor.us',
xanpoolApiHost: 'https://xanpool-api.tor.us',
mercuryoApiHost: 'https://mercuryo-api.tor.us',
transakApiHost: 'https://transak-api.tor.us',
banxaApiHost: 'https://banxa-api.tor.us',
Expand All @@ -182,12 +181,6 @@ export default {
rampApiQuoteHost: `https://api-instant.ramp.network/api/host-api/quote?hostApiKey=${rampApiKey}`,
rampAPIKEY: rampApiKey,

xanpoolHost: 'https://checkout.xanpool.com',
xanpoolLiveAPIKEY: '778522fccc19a010f100f437c4aca60j',
xanpoolTestHost: 'https://checkout.sandbox.xanpool.com',
xanpoolTestAPIKEY: 'sandbox_778522fccc19a010f100f437c4aca60j',
xanpoolApiQuoteHost: 'https://xanpool.com/api/transactions/estimate',

mercuryoHost: 'https://exchange.mercuryo.io',
mercuryoLiveAPIKEY: '8e531c49-2f64-4e7e-b1d4-16aa4958c291',
mercuryoTestHost: 'https://sandbox-exchange.mrcr.io',
Expand Down

This file was deleted.

103 changes: 0 additions & 103 deletions src/containers/WalletTopup/WalletTopupXanpool/WalletTopupXanpool.vue

This file was deleted.

1 change: 0 additions & 1 deletion src/containers/WalletTopup/WalletTopupXanpool/index.js

This file was deleted.

1 change: 0 additions & 1 deletion src/containers/WalletTopup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ export { default as WalletTopupMoonpay } from './WalletTopupMoonpay'
export { default as WalletTopupRampNetwork } from './WalletTopupRampNetwork'
export { default as WalletTopupSimplex } from './WalletTopupSimplex'
export { default as WalletTopupTransak } from './WalletTopupTransak'
export { default as WalletTopupXanpool } from './WalletTopupXanpool'
21 changes: 0 additions & 21 deletions src/plugins/xanpool.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,6 @@ const router = new Router({
name: 'walletTopupMoonpay',
component: () => import(/* webpackChunkName: "walletTopupMoonpay" */ './containers/WalletTopup/WalletTopupMoonpay'),
},
{
path: 'xanpool',
name: 'walletTopupXanpool',
component: () => import(/* webpackChunkName: "walletTopupXanpool" */ './containers/WalletTopup/WalletTopupXanpool'),
},
{
path: 'mercuryo',
name: 'walletTopupMercuryo',
Expand Down
16 changes: 1 addition & 15 deletions src/store/PaymentActions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ import config from '../../config'
import PopupWithBcHandler from '../../handlers/Popup/PopupWithBcHandler'
import vuetify from '../../plugins/vuetify'
import torus from '../../torus'
import { BANXA, BANXA_NETWORK_MAP, MAINNET, MERCURYO, MOONPAY, RAMPNETWORK, TRANSAK, TRANSAK_NETWORK_MAP, XANPOOL } from '../../utils/enums'
import { BANXA, BANXA_NETWORK_MAP, MAINNET, MERCURYO, MOONPAY, RAMPNETWORK, TRANSAK, TRANSAK_NETWORK_MAP } from '../../utils/enums'
import { fakeStream, getTimeout, paymentProviders, randomId } from '../../utils/utils'
import banxa from './banxa'
import mercuryo from './mercuryo'
import moonpay from './moonpay'
import rampnetwork from './rampnetwork'
import simplex from './simplex'
import transak from './transak'
import xanpool from './xanpool'

const topupStream = (torus && torus.communicationMux && torus.communicationMux.getStream('topup')) || fakeStream

Expand Down Expand Up @@ -40,7 +39,6 @@ export default {
...simplex,
...rampnetwork,
...moonpay,
...xanpool,
...mercuryo,
...transak,
async initiateTopup({ state, dispatch }, { provider, params, preopenInstanceId }) {
Expand Down Expand Up @@ -109,18 +107,6 @@ export default {
selectedAddress: selectedParameters.selectedAddress,
})
handleSuccess(success)
} else if (provider === XANPOOL) {
// xanpool
const { success } = await dispatch('fetchXanpoolOrder', {
currentOrder: {
selectedCryptoCurrency: selectedParameters.selectedCryptoCurrency || 'ETH',
fiatValue: selectedParameters.fiatValue || '',
selectedCurrency: selectedParameters.selectedCurrency || '',
},
preopenInstanceId,
selectedAddress: selectedParameters.selectedAddress,
})
handleSuccess(success)
} else if (provider === MERCURYO) {
// mercuryo
const currentOrder = {
Expand Down
45 changes: 0 additions & 45 deletions src/store/PaymentActions/xanpool.js

This file was deleted.

4 changes: 1 addition & 3 deletions src/supportedCurrencies.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BANXA, MERCURYO, MOONPAY, RAMPNETWORK, SIMPLEX, TRANSAK, XANPOOL } from './utils/enums'
import { BANXA, MERCURYO, MOONPAY, RAMPNETWORK, SIMPLEX, TRANSAK } from './utils/enums'

/**
* From https://min-api.cryptocompare.com/data/v2/pair/mapping/fsym?fsym=BTC&extraParams=YourSite
Expand Down Expand Up @@ -492,8 +492,6 @@ const PROVIDER_SUPPORTED_FIAT_CURRENCIES = {
'THB',
'UYU',
],
// From https://xanpool.com/ fiat select dropdown
[XANPOOL]: ['SGD', 'HKD', 'THB', 'PHP', 'INR', 'IDR', 'MYR', 'AUD', 'NZD', 'KRW'],
// https://help.mercuryo.io/en/articles/6121246-which-fiat-currencies-are-supported
// RUB / UAH currently not supported
[MERCURYO]: [
Expand Down
1 change: 0 additions & 1 deletion src/utils/enums.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,6 @@ export const ALLOWED_VERIFIERS = [
},
]

export const XANPOOL = 'xanpool'
export const RAMPNETWORK = 'rampnetwork'
export const SIMPLEX = 'simplex'
export const MOONPAY = 'moonpay'
Expand Down
1 change: 0 additions & 1 deletion src/utils/sentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export function installSentry(Vue) {
config.simplexApiHost,
config.moonpayApiHost,
config.rampApiHost,
config.xanpoolApiHost,
config.mercuryoApiHost,
config.transakApiHost,
],
Expand Down
23 changes: 0 additions & 23 deletions src/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ import {
TWITTER,
WECHAT,
WEIBO,
XANPOOL,
// XDAI,
XDAI_CHAIN_ID,
XDAI_CODE,
Expand Down Expand Up @@ -544,28 +543,6 @@ export const paymentProviders = {
receiveHint: 'walletTopUp.receiveHintRamp',
enforceMax: false,
},
[XANPOOL]: {
line1: 'PayNow/ InstaPay/ FPS/ GoJekPay/ UPI/ PromptPay/ <br>ViettelPay/ DuitNow',
line2: '2.5% buying, 3% selling',
line3: '$2,500 / day',
status: ACTIVE,
logoExtension: SVG,
supportPage: 'mailto:support@xanpool.com',
minOrderValue: 100,
maxOrderValue: 2500,
validCurrencies: supportedFiatCurrencies(XANPOOL),
validCryptoCurrenciesByChain: {
[MAINNET]: [
{ value: 'ETH', display: 'ETH' },
{ value: 'USDT', display: 'USDT' },
{ value: 'USDC', display: 'USDC' },
],
},
includeFees: true,
api: true,
sell: true,
enforceMax: false,
},
[MERCURYO]: {
line1: 'Credit/ Debit Card/ Apple Pay',
line2: '3.95% or 4 USD',
Expand Down

0 comments on commit 10d49aa

Please sign in to comment.