|
|
|
@ -6,8 +6,9 @@ module.exports = 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 adderss the bought ETH should be sent to. Only relevant if network === '1'. |
|
|
|
|
* @returns {string} The url at which the user can access ETH, while in the given network |
|
|
|
|
* @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 }) { |
|
|
|
|