UNPKG
@yoroi/swap
Version:
latest (7.2.0)
7.2.0
7.0.3
7.0.0
6.0.2
6.0.1
6.0.0
2.1.0
2.0.1
1.5.3
1.5.2
1.5.1
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
The Swap package of Yoroi SDK
github.com/Emurgo/yoroi/tree/develop/packages/swap/README.md
@yoroi/swap
/
lib
/
module
/
helpers
/
getDexUrlByProtocol.js
8 lines
(7 loc)
•
283 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
"use strict"
;
import
{ dexUrls }
from
'../constants'
;
import
{ getDexByProtocol }
from
'./getDexByProtocol'
;
export
function
getDexUrlByProtocol
(
protocol
) {
return
dexUrls[
getDexByProtocol
(protocol)] ||
'https://yoroi-wallet.com'
; }
//# sourceMappingURL=getDexUrlByProtocol.js.map