Merge branch 'master' into nymkappa/menu

This commit is contained in:
wiz
2023-08-31 01:01:00 +09:00
committed by GitHub
62 changed files with 231 additions and 68 deletions

View File

@@ -143,4 +143,13 @@ export function nextRoundNumber(num: number): number {
const factor = log >= 3 ? Math.pow(10, log - 2) : 1;
num /= factor;
return factor * (roundNumbers.find(val => val >= num) || roundNumbers[roundNumbers.length - 1]);
}
export function seoDescriptionNetwork(network: string): string {
if( network === 'liquidtestnet' || network === 'testnet' ) {
return ' Testnet';
} else if( network === 'signet' || network === 'testnet' ) {
return ' ' + network.charAt(0).toUpperCase() + network.slice(1);
}
return '';
}