UNPKG

@yoroi/swap

Version:
9 lines (6 loc) 265 B
import {Swap} from '@yoroi/types' import {getDexByProtocol} from './getDexByProtocol' import {dexUrls} from '../constants' export function getDexUrlByProtocol(protocol: Swap.Protocol) { return dexUrls[getDexByProtocol(protocol)] || 'https://yoroi-wallet.com' }