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

Introduce "nondilutable" attributions #17

Merged
merged 10 commits into from
Apr 22, 2023

Conversation

countvajhula
Copy link
Contributor

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

  • In contributing, I relinquish any copyright claims on my contribution and freely release it into the public domain in the simple hope that it will provide value.

(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.)

This is to account for the DIA allocation as well as the Old Abe
allocation, and any other allocations that are "external."
@countvajhula countvajhula requested review from jairtrejo and apromessi and removed request for jairtrejo and apromessi April 21, 2023 04:08
):
"""
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
Copy link
Collaborator

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.

if incoming_investment > 0:
share = incoming_investment / posterior_valuation
share = incoming_investment / (posterior_valuation * dilutable_proportion)
Copy link
Collaborator

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.

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)
Copy link
Collaborator

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

Copy link
Collaborator

@apromessi apromessi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good!

@countvajhula countvajhula merged commit 33730f3 into drym-org:main Apr 22, 2023
@countvajhula countvajhula deleted the nondilutable-attributions branch April 22, 2023 04:10
@coveralls
Copy link

coveralls commented Oct 28, 2024

Pull Request Test Coverage Report for Build 4770245841

Warning: 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

  • 17 of 20 (85.0%) changed or added relevant lines in 2 files are covered.
  • 19 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+1.3%) to 60.0%

Changes Missing Coverage Covered Lines Changed/Added Lines %
oldabe/money_in.py 16 19 84.21%
Files with Coverage Reduction New Missed Lines %
oldabe/money_in.py 19 63.71%
Totals Coverage Status
Change from base Build 4760610580: 1.3%
Covered Lines: 180
Relevant Lines: 294

💛 - Coveralls

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.

3 participants