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

Figure out Median reserve price buyout logic #3

Open
andy8052 opened this issue Apr 15, 2021 · 0 comments
Open

Figure out Median reserve price buyout logic #3

andy8052 opened this issue Apr 15, 2021 · 0 comments

Comments

@andy8052
Copy link
Contributor

Mean is a less effective buyout mechanism than median, but is more straightforward. Using BST or some other wizardry we should be able to use median.

zanussbaum added a commit to zanussbaum/contracts that referenced this issue Sep 30, 2021
Add array to keep track of active addresses.
After buyout, calculate median price by iterating
through addresses array, indexing mapping, and adding prices to
a new array. Sort array, then find median!

This aims to solve fractional-company#3, but I am having trouble testing as it fails
a few cases.
zanussbaum added a commit to zanussbaum/contracts that referenced this issue Sep 30, 2021
Add array to keep track of active addresses.
After buyout, calculate median price by iterating
through addresses array, indexing mapping, and adding prices to
a new array. Sort array, then find median!

This aims to solve fractional-company#3, but I am having trouble testing as it fails
a few cases.
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

No branches or pull requests

1 participant