Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #30 from BTS-CM/issuedAssets
Browse files Browse the repository at this point in the history
Introduce additional smartcoin functionality
  • Loading branch information
grctest authored Oct 21, 2024
2 parents 6676fac + 0b49f36 commit 01c1fe6
Show file tree
Hide file tree
Showing 271 changed files with 6,622 additions and 4,082 deletions.
3 changes: 2 additions & 1 deletion src/bts/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
* Convert human readable quantity into the token's blockchain representation
*/
function blockchainFloat(satoshis: number, precision: number) {
return satoshis * 10 ** precision;
const factor = 10 ** precision;
return Math.round(satoshis * factor);
}

/**
Expand Down
Loading

0 comments on commit 01c1fe6

Please sign in to comment.