Adding jtgrassie/monero-pool copyright attribution

This commit is contained in:
ditatompel 2024-05-31 17:40:20 +07:00
parent db2d2195e9
commit e983db2b29
No known key found for this signature in database
GPG key ID: 31D3D06D77950979

View file

@ -16,6 +16,13 @@ export const formatBytes = (bytes, decimals = 2) => {
};
/**
* Returns a number with a maximum precision.
*
* This function was copied from jtgrassie/monero-pool project.
* Source: https://github.com/jtgrassie/monero-pool/blob/master/src/webui-embed.html
*
* Copyright (c) 2018, The Monero Project
*
* @param {number} n
* @param {number} p
*/
@ -24,6 +31,13 @@ const maxPrecision = (n, p) => {
};
/**
* Formats a hash value (h) into human readable format.
*
* This function was copied from jtgrassie/monero-pool project.
* Source: https://github.com/jtgrassie/monero-pool/blob/master/src/webui-embed.html
*
* Copyright (c) 2018, The Monero Project
*
* @param {number} h
*/
export const formatHashes = (h) => {