Skip to content

EIP-0023. Let ballot token owner (R4 in ballot box) always spend the ballot box#94

Merged
greenhat merged 2 commits intoeip23from
eip23-owner-can-spend-ballot
Aug 10, 2023
Merged

EIP-0023. Let ballot token owner (R4 in ballot box) always spend the ballot box#94
greenhat merged 2 commits intoeip23from
eip23-owner-can-spend-ballot

Conversation

@greenhat
Copy link
Member

@greenhat greenhat commented Jun 28, 2023

Following https://github.com/ergoplatform/eips/pull/41/files#r1243427074

Motivation

isSimpleCopy clause for owner requires minting new ballot tokens for ANY change to the update contract or its parameters (min_votes).

I forgot to mint new ballot tokens on changing the update contract and now those ballot tokens cannot be used. See ergoplatform/oracle-core#291 (comment) for details.

Rewriting the final clause as owner || (isSimpleCopy && update) would allow to keep using existing ballot tokens since voting is done by ballot owners (PK check).

@greenhat greenhat marked this pull request as ready for review June 28, 2023 09:15
greenhat added a commit to ergoplatform/oracle-core that referenced this pull request Jun 28, 2023
@greenhat greenhat changed the title EIP-23. Let ballot token owner (R4 in ballot box) always spend the ballot box EIP-0023. Let ballot token owner (R4 in ballot box) always spend the ballot box Jun 28, 2023
@scalahub
Copy link
Contributor

scalahub commented Aug 9, 2023

Approved

@greenhat greenhat merged commit 997b99f into eip23 Aug 10, 2023
@greenhat greenhat deleted the eip23-owner-can-spend-ballot branch August 10, 2023 09:29
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.

2 participants