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

Fixed Division by zero inside fraction() when neutrinoSupply==0 #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixed Division by zero inside fraction() when neutrinoSupply==0 #18

wants to merge 1 commit into from

Conversation

br0x
Copy link
Collaborator

@br0x br0x commented Apr 8, 2021

In the situation when all the USDN are on the Neutrino and Liquidation contracts, i.e. neutrinoSupply is 0, we'll face division by zero during liquidateBond() invocation. To solve it the expression is converted to mathematically equivalent one

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