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

teddy/add composition and votes #29

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

Conversation

TheodoreChuang
Copy link
Contributor

@TheodoreChuang TheodoreChuang commented Jan 23, 2022

Ticket: https://www.notion.so/index-coop/Coop-tax-Add-more-information-about-HOOT-token-and-upcoming-rebalance-weights-4e6b7b6fc2b34de6a7e07d82f07ffdaf

Several components to be added to display some important piece of data on the HOOT token:

  • Calculate and display NAV (previously done)
  • Calculate and display Market Cap
  • Current allocations and %
    • calculation similar to index-ui
  • Votes / weights
    • seems to be a simple apportion of a set token, not requiring any market prices
      • please let know if this is incorrect but this is my understanding from skimming through the rebalance contract

Screen Shot 2022-01-25 at 8 52 23 AM

Screen Shot 2022-01-25 at 8 51 27 AM

/** Contract Addresses */
export const OWL_NFT_ADDRESS =
process.env.REACT_APP_OWL_NFT_ADDRESS ||
'0x79906bE7d10C2CB97793a4Ebd87bd3D52ceda412'
export const APE_REBALANCE_EXT_ADDRESS =
process.env.REACT_APP_APE_REBALANCE_EXT_ADDRESS ||
'0xa4cAe37e7E6412abB38aEddddB8C12675E8b9915'
'0x9cB703Cf5D0a6bbBf13f04FA5A5E2AF087FDda47'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@TheodoreChuang TheodoreChuang force-pushed the teddy/add-composition-and-votes branch from c6dd6ce to 124c8a4 Compare January 24, 2022 21:34

const votedAllocation = new BigNumberJs(position.weight.toString())
.div(TEN_POW_18)
.multipliedBy(100)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

"The weights are measured as the percentage of the toal index value, not the unit amounts."

@TheodoreChuang TheodoreChuang marked this pull request as ready for review January 24, 2022 22:07
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.

1 participant