Skip to content

CAS-204: Add NFT/FT restrictions to One Address One Vote strategy#218

Merged
dbslone merged 32 commits intomainfrom
CAS-204
Jul 22, 2022
Merged

CAS-204: Add NFT/FT restrictions to One Address One Vote strategy#218
dbslone merged 32 commits intomainfrom
CAS-204

Conversation

@jbluks
Copy link
Copy Markdown
Collaborator

@jbluks jbluks commented Jul 21, 2022

Ticket: CAS-204

Description

  • Address/Name/Storage paths are now required for the One Address One Vote Options
  • There are two strategies added to differentiate them: one-address-one-vote-nft and one-address-one-vote-ft

Screen Shot 2022-07-22 at 4 43 37 PM

Screen Shot 2022-07-22 at 4 45 08 PM

Screen Shot 2022-07-22 at 4 45 55 PM

@jbluks jbluks requested review from 0xmovses, dbslone and germanurrus and removed request for germanurrus July 21, 2022 22:35
@0xmovses
Copy link
Copy Markdown
Contributor

Holding this one off from merged till after Launch.

@dbslone dbslone merged commit 4866348 into main Jul 22, 2022
@dbslone dbslone deleted the CAS-204 branch July 22, 2022 23:53
jacksonConrad added a commit that referenced this pull request Jul 26, 2022
dbslone pushed a commit that referenced this pull request Jul 26, 2022
* Revert "take snapshot for one-address-one-vote-ft strat (#282)"

This reverts commit 050055f.

* Revert "CAS-204: Add NFT/FT restrictions to One Address One Vote strategy (#218)"

This reverts commit 4866348.

* update order of migration files

* remove one adderess one vote migrations

* fixes migrations so migrating up/down should work smoothly, and production migration will not fail

* fetch NFT vote weight during createVote properly

* fixes SQL for fetching votes w/ balances on proposals that don't reference block_height (i.e. NFT strategies)
dbslone added a commit that referenced this pull request Jul 26, 2022
* Revert "take snapshot for one-address-one-vote-ft strat (#282)"

This reverts commit 050055f.

* Revert "CAS-204: Add NFT/FT restrictions to One Address One Vote strategy (#218)"

This reverts commit 4866348.

* update order of migration files

* remove one adderess one vote migrations

* fixes migrations so migrating up/down should work smoothly, and production migration will not fail

* fetch NFT vote weight during createVote properly

* fixes SQL for fetching votes w/ balances on proposals that don't reference block_height (i.e. NFT strategies)

* shows vote weight in Votes list instead of balance (weight is more general)

Co-authored-by: David Slone <dbslone@gmail.com>
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