Skip to content

Conversation

@amarinkovic
Copy link
Member

@amarinkovic amarinkovic commented Dec 9, 2024

In case the same coin is used to pay out a dividend, such as distibuting accrued interest on rebasing coins (i.e. Mountain Protocol USD (USDM)), we need to update the withdrawn-amount-so-far, with some adjustments to prevent potential dividend draining or underflows.

@amarinkovic amarinkovic mentioned this pull request Dec 9, 2024
@amarinkovic amarinkovic changed the title fix: Adjust withdrawn amount when same coin is used to pay out a dividends Adjust withdrawn amount when same coin is used to pay out a dividends Dec 9, 2024
@amarinkovic amarinkovic marked this pull request as ready for review December 9, 2024 16:48
@amarinkovic amarinkovic force-pushed the fix/same_token_dividend branch 5 times, most recently from 7dc55c7 to d7fe685 Compare December 12, 2024 11:18
@amarinkovic amarinkovic changed the base branch from dev to main December 12, 2024 15:14
@amarinkovic amarinkovic force-pushed the fix/same_token_dividend branch from d7fe685 to 0406a57 Compare December 12, 2024 15:15
@amarinkovic amarinkovic merged commit 51a6864 into main Dec 13, 2024
@amarinkovic amarinkovic deleted the fix/same_token_dividend branch December 13, 2024 10:19
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.

2 participants