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

Fix minSeizableCollateral value calculation #117

Merged
merged 1 commit into from
Jan 28, 2020

Conversation

matthewjablack
Copy link
Contributor

@matthewjablack matthewjablack commented Jan 28, 2020

Description

This PR fixes the calculation for minSeizableCollateral. (principal + interest) / btcPrice is in 10e18 and needs to be converted to 10e8. Currently this is being converted to 10e10 which is incorrect. This PR fixes that.

Submission Checklist 📝

  • Change conversion of principal + interest to sats from 10e10 to 10e8

@matthewjablack matthewjablack force-pushed the fix-min-seizable-collateral-value-calc branch from 250238e to 6e2e797 Compare January 28, 2020 01:25
@matthewjablack matthewjablack merged commit 3af17a0 into master Jan 28, 2020
@matthewjablack matthewjablack deleted the fix-min-seizable-collateral-value-calc branch January 28, 2020 02:53
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.

1 participant