Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Spacers and Points in zingocli balance command #1464

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from

Conversation

fluidvanadium
Copy link
Contributor

Adding a decimal point allows easy estimation of zec per zatoshi.

@zancas
Copy link
Member

zancas commented Oct 22, 2024

Is this moving us towards reproducing the vaporizing transaction bug?

@@ -128,6 +128,63 @@ pub struct PoolBalances {
/// TODO: Add Doc Comment Here!
pub transparent_balance: Option<u64>,
}
fn format_option_zatoshis(ioz: &Option<u64>) -> String {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what "ioz" means.

@zancas
Copy link
Member

zancas commented Oct 22, 2024

It looks like this crate has been downloaded aroun 15_000_000 times:

https://crates.io/crates/num-format

Why don't we us it?

Copy link
Member

@zancas zancas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use num-format.

@zancas
Copy link
Member

zancas commented Oct 22, 2024

I really like the idea of a more useful/readable zingocli interface. I don't like the idea of writing our own reimplementation of standard logic. Let's use the thing that's "off-the-shelf".

@fluidvanadium
Copy link
Contributor Author

It looks like this crate has been downloaded aroun 15_000_000 times:

https://crates.io/crates/num-format

Why don't we us it?

the answer is: num-format doesnt specifically make use of the 10,000,000 mark for Satoshis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants