Index Coop
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Index Coop Onchain Governance ## Table of Contents [TOC] ## Background In [IIP-170: Modify the Organization Structure](https://gov.indexcoop.com/t/iip-170-modify-the-organization-structure/4468), Index Coop created a Safe called the "Delegate Safe" that was designed to implement approved changes from offchain votes on Snapshot. Particularly, the Delegate Safe will make changes to the representatives of Engineering, Treasury, and Operations Pods in the event of a successful vote. The Delegate Safe was designed to be a temporary measure until Index Coop could implement onchain governance whereby tokenholders would be able to make these changes directly. This document outlines the path for Index Coop to create a Governor Contract and a Timelock Contract which will become the "Manager" of the aforementioned Pods. ## Overview of Governance Contracts The OpenZeppelin governance contracts are a suite of modular, extensible, and secure smart contracts designed to facilitate the implementation of on-chain governance in decentralized protocols and organizations. The documentation provides an overview of the main components and features of these contracts, which can be customized and combined to suit various governance needs. Key components and features of OpenZeppelin's governance contracts: **Governor:** The core contract that handles the creation of proposals, voting, and execution of actions. It is designed to be modular and extensible, allowing for the addition of new features or modifications. **Governor Timelock:** An optional component that introduces a time-lock mechanism for executing actions, adding a delay between the approval of a proposal and its execution. This allows for increased security and an opportunity for the community to react if a malicious proposal is approved. **Counting strategies:** A set of contracts that define how votes are counted and proposals are approved. The available strategies include simple majority (GovernorCountingSimple) and more complex mechanisms such as quadratic voting. **Voting power:** OpenZeppelin governance contracts provide the flexibility to define voting power based on different factors, such as token balance (GovernorVotes), token time-locked (GovernorVotesTimeLock), or a combination of factors. **Delegation:** The governance contracts support vote delegation, allowing token holders to delegate their voting power to others, who can vote on their behalf. This feature can be customized based on the specific requirements of the organization or protocol. **Compatibility:** OpenZeppelin's governance contracts are designed to be compatible with various token standards (e.g., ERC20, ERC721, and ERC1155), allowing for seamless integration with existing projects. ## Implementation Decisions Index Coop currently uses the INDEX token for governance on Snapshot, however, in order to migrate to onchain governance, there will be several additional steps. Because the [INDEX Contract](https://etherscan.io/address/0x0954906da0bf32d5479e25f46056d22f08464cab#code) is not upgradable, there will need to be a wrapper around the INDEX token. Wrapped INDEX will be able to integrate with Governor Contract, but it will require existing INDEX holders to stake or wrap their INDEX in exchange for wINDEX. Index Coop will need to deploy three contracts: 1. **Staking Contract:** The staking contract will allow users to deposit INDEX and receive vw to autocompound their rewards and wINDEX should be equal to INDEX. This provides some benefits like allowing INDEX to trade on CEXs since there will be no value accrual to these holders. 2. **Governor Contact:** The core OpenZepplin Governor contract handles the creation of proposals, voting, and execution of actions. It is designed to be modular and extensible, allowing for the addition of new features or modifications. 3. **Timelock Contract:** This contract introduces a time-lock mechanism for executing actions, adding a delay between the approval of a proposal and its execution. This allows for increased security and an opportunity for the community to react if a malicious proposal is approved. The Governor Contract can be configured using this [OpenZeppelin Wizard](https://wizard.openzeppelin.com/#governor) and it should be configured with the following settings: | Setting | Current | New | | -------- | -------- | -------- | | Proposal Threshold | 1,000 INDEX | 10,000 wINDEX| | Quorum | 10% of INDEX | 5% of wINDEX| | Voting Period | 3 days | 5 days | | Voting Delay | 0 days | 1 day| | Timelock Delay | n/a | 7 days | The parameters are a balancing act between ease of passing proposals and security against malicious proposals. Below is [guidance from Tally](https://docs.tally.xyz/user-guides/deploying-governor-daos/pick-good-governor-parameters) on how to pick good Governor parameters: * **Proposal Threshold** should be set somewhere between 0% and 2% of circulating token supply. Note, that in this case it will be dependent on the wINDEX supply. This consideration will also affect quorum. * **Quorum** depends on voter turnout, usually somewhere in the range of 1-10% of circulating token supply. Since participants need to opt-in to voting by deposit INDEX in the staking contact, quorum can be higher as a percentage of supply. * **Voting Period** is usually between 3 and 7 days, giving everyone time to review a proposal. * **Voting Delay** is usually 0, but if there is a delay, it is usually one day or less. A delay gives token holders time to delegate their voting power before the vote starts or buy more votes. * **Timelock Delay** is usually 0 for Governors that only manage a treasury, but for those that control a DeFi protocol, the delay is closer to 7 days. ## Implementation Process 1. **Deploy the Staking contract & wINDEX token contract** 2. **Deploy the Governor contract** 3. **Deploy the Timelock contract** 4. **Integrate the Timelock with the Governor**: Update the Governor contract to use the Timelock as the executor for approved proposals. 5. **Enable vote delegation:** Configure the Governor contract to support vote delegation, allowing token holders to delegate their voting power to others. 6. **Set the Governor Contract as the Manager**: In [Metropolis ](https://pod.xyz/podarchy/index-delegates), add replace the index-delegates.pod.xyz with the Timelock contract address as the manager of the Engineering, Treasury, and Operations pods. 7. **Set up Tally** ## Additional Consideration ### Governance Use-Cases Onchain governance needn't be limited to just changing signers on the Engineering, Operations, and Treasury pods, however, it does seem like the most reasonable use case to start. In the future, it may be beneficial to attach onchain governance to other aspects of Index Coop. These include, but are not limited to: * Allowing for token holders to object to new rebalance weights and having a resolution process in that case * Direct control over the Treasury's reserves(ie, index-treasury-investment.pod.xyz) * Adding a module or adapter to Index Protocol ### wINDEX Use-Cases It must be stated that the need for wINDEX is a sub-optimal user experience, however, there are some benefits. One example is that wINDEX will force users to opt-in to governance giving a much more accurate circulating supply. Additionally, the Staking Contract could be used in a future proposal as a way to distribute revenue to token-holders. One method for this could be to use a portion of revenue to buy back INDEX and distribute it to wINDEX holders. wINDEX could become a rebasing token that rebases whenever new INDEX is added to the staking contract from revenue sales. ### Metagovernance While it still would require more research, it appears that metagovernance votes could be executed automatically. ## Other Explored Solutions Instead of wrapping the INDEX token, it is possible to use the Gnosis Zodiac Governor module which would turn a Safe into a Governor, however, the INDEX contrac does not appear to be ERC20Votes compatible. While it includes some voting functionality, it is not the same as the ERC20Votes extension from the OpenZeppelin library.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully