-
Notifications
You must be signed in to change notification settings - Fork 334
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
Fee calculation per block does not sum to fee calculation on liquidation #320
Comments
The main way this could pose a problem is when there are very few (or one) CDPs in the system, and they all get liquidated simultaneously. Short term, I think the fix is to limit the debt amount sent to auction to Long term, we should remove the source of precision loss, which I believe requires something like cosmos/cosmos-sdk#4399 What are your thoughts @rhuairahrighairidh? |
Doing a min would fix the immediate problem. Though I’d be concerned that since the errors compound over time they may cause other problems. |
Currently we have sort of have two versions of the same calculation. |
Closed via #326 A new issue can be created addressing overall issue of precision loss. |
The rounding per block means that total fees summed over blocks is < the fees calculated at liquidation.
Since new fees are minted per block, there ends up not being enough to transfer at liquidation.
The text was updated successfully, but these errors were encountered: