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

[1871] Fix dividend payout when there are three PEIR shares #11531

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ollybh
Copy link
Collaborator

@ollybh ollybh commented Feb 9, 2025

entity.total_shares doesn't always work correctly for PEIR. If there are three shares then each is a 33% share, and total_shares returns 3.030303...

This can lead to rounding errors in dividend payout, with a revenue of 300 being calculated as 99 per share.

Fixes #11525.

`entity.total_shares`` doesn't always work correctly for PEIR.  If there
are three shares then each is a 33% share, and `total_shares` returns
3.030303...

This can lead to rounding errors in dividend payout, with a revenue of
300 being calculated as 99 per share.

Fixes tobymao#11525.
@ollybh ollybh added the 1871 label Feb 9, 2025
@ollybh ollybh requested a review from dfannius February 9, 2025 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[The Old Prince 1871] Incorrect revenue running the PIER with 3 shares
2 participants