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

Development #87

Merged
merged 2 commits into from
Mar 22, 2019
Merged

Development #87

merged 2 commits into from
Mar 22, 2019

Conversation

zennermac
Copy link
Contributor

No description provided.

@zennermac zennermac requested a review from vherus March 22, 2019 12:44
Copy link
Contributor

@vherus vherus left a comment

Choose a reason for hiding this comment

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

I'm not going to block the PR for it but I have 1 comment

@@ -508,7 +509,7 @@ class SendPage extends React.Component {
<Button
modifier='quiet'
onClick={
() => this.handleSendValueChange({ target: { value: (this.props.context.value - (this.state.sendFee / 100000000)).toPrecision(8) } })}
() => this.handleSendValueChange({ target: { value: this.props.context.value == 0 ? 0 : ((this.props.context.value * 100000000- 10000)/100000000).toPrecision(8)} })}
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's tidy Arizen up one tiny task at a time. I'd really like to move this stray 100000000 into a constant named something like SATOSHI_MULTIPLIER so we can simplify things a bit more. It'll never change, but I think we'll sleep a little sounder knowing that the math definitely has the right amount of zero's in every case.

@zennermac zennermac requested a review from megaluck March 22, 2019 13:24
@zennermac zennermac merged commit 83528a0 into master Mar 22, 2019
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.

None yet

3 participants