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

CS-BOLD-018 Informational 7.15: Small Redemptions Do Not Increase Base Rate #491

Open
bingen opened this issue Oct 9, 2024 · 0 comments

Comments

@bingen
Copy link
Collaborator

bingen commented Oct 9, 2024

The function CollateralRegistry._getUpdatedBaseRateFromRedemption calculates the base rate from the share of bold tokens that are redeemed.

// get the fraction of total supply that was redeemed
uint256 redeemedBoldFraction = _redeemAmount * DECIMAL_PRECISION / _totalBoldSupply;

As the redeemedBoldFraction is rounded down, splitting a redemption into multiple smaller ones can reduce the fee paid. The most extreme case are redemptions with redeemAmount < totalBoldSupply / 1e18, which will have their fraction rounded to zero, meaning they will not increase the base rate at all. However, multiple redemptions will incur higher gas costs.

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

No branches or pull requests

1 participant