Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to TFIL denoms
Browse files Browse the repository at this point in the history
lalexgap committed Feb 28, 2023
1 parent d2ad248 commit 1b4d7c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web3torrent/src/utils/calculateWei.ts
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ export const prettyPrintBytes = (wei: BigNumber): string => {

export const prettyPrintWei = (wei: BigNumber): string => {
const PRECISION = 1;
const names = ['wei', 'kwei', 'Mwei', 'Gwei', 'szabo', 'finney', 'ether'];
const names = ['attoTFIL', 'femtoTFIL', 'picoTFIL', 'nanoTFIL', 'microTFIL', 'milliTFIL', 'TFIL'];
const decimals = [0, 3, 6, 9, 12, 15, 18];

if (!wei) {

0 comments on commit 1b4d7c4

Please sign in to comment.