-
Notifications
You must be signed in to change notification settings - Fork 2
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
Introduce "nondilutable" attributions #17
Introduce "nondilutable" attributions #17
Conversation
This is to account for the DIA allocation as well as the Old Abe allocation, and any other allocations that are "external."
oldabe/money_in.py
Outdated
): | ||
""" | ||
If there is an incoming investment, find out what proportion it | ||
represents of the overall (posterior) valuation of the project. | ||
""" | ||
nondilutable_shares = [a.share for a in attributions.values() if not a.dilutable] | ||
nondilutable_proportion = sum(nondilutable_shares) | ||
dilutable_proportion = 1 - nondilutable_proportion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of getting the nondilutable total and subtracting from 1, maybe we should just get the dilutable total.
oldabe/money_in.py
Outdated
if incoming_investment > 0: | ||
share = incoming_investment / posterior_valuation | ||
share = incoming_investment / (posterior_valuation * dilutable_proportion) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if the business logic here makes sense anymore... brain cannot math right now... but maybe we should think about this some more.
oldabe/money_in.py
Outdated
for email in attributions: | ||
nondilutable_shares = [a.share for a in attributions.values() if not a.dilutable] | ||
nondilutable_proportion = sum(nondilutable_shares) | ||
target_proportion = (Decimal("1") - nondilutable_proportion - incoming_attribution.share) / (Decimal('1') - nondilutable_proportion) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should get the dilutable proportion here too instead of doing Decimal("1") - nondilutable_proportion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good!
Pull Request Test Coverage Report for Build 4770245841Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Summary of Changes
This is to account for the DIA allocation as well as the Old Abe allocation, and any other allocations that are "external."
Public Domain Dedication
(Why: The freely released, copyright-free work in this repository represents an investment in a better way of doing things called attribution-based economics. Attribution-based economics is based on the simple idea that we gain more by giving more, not by holding on to things that, truly, we could only create because we, in our turn, received from others. As it turns out, an economic system based on attribution -- where those who give more are more empowered -- is significantly more efficient than capitalism while also being stable and fair (unlike capitalism, on both counts), giving it transformative power to elevate the human condition and address the problems that face us today along with a host of others that have been intractable since the beginning. You can help make this a reality by releasing your work in the same way -- freely into the public domain in the simple hope of providing value. Learn more about attribution-based economics at drym.org, tell your friends, do your part.)