CCIP Number | 021 |
---|---|
Title | Extend Direct Execute Sunset Period 2 |
Author(s) | Friedger Müffke [email protected] |
Consideration | Governance |
Type | Standard |
Status | Ratified |
Created | 2024-04-04 |
License | BSD-2-Clause |
Supplements | CCIP-012 |
When the ccd001-direct-execute1 Clarity contract was deployed, a sunset height of approximately 6 months was set, after which the extension will no longer be able to execute proposals. More information can be found in issue 26 of the governance repository.2.
The current sunset height is 147,828. After that block height no proposal can be executed anymore. In preparation of CCIP-0203, an extension is required now.
This CCIP intends to:
- implement the CCIP-0154 voting mechanism as part of a DAO proposal
- extend the sunset period by an additional 25,920 Stacks blocks, ending at Stacks block 173,748
The proposal will call set-sunset-block
in ccd001-direct-execute1 with the value of 173748
.
Proposal voting will be performed using the method described in CCIP-0154.
Voting will begin when the contract is deployed and continue for a set number of blocks.
Note: The end of the voting period needs to allow enough time to execute the proposal and extend the sunset period. This will need to occur before Stacks block 147,828.
Votes will be counted two ways in the contract: a general total of yes/no votes, and the total number of votes based on the amount of CityCoins stacked in cycles 80 and 81.
The voting code is part of the CCIP-021 smart contract proposal5, which tracks user votes between the voting period.
It also restricts the execute
function in the proposal so that it cannot run unless:
- the vote is concluded
- the total votes are > 0
- the yes votes > no votes
The criteria above are the same as CCIP-0176.
This CCIP is supplemental to CCIP-0127 and CCIP-0176.
This CCIP will be voted on and activated using a vote contract that adheres to CCIP-0154 using the last two active cycles from when the contract is deployed.
Currently, this would be:
- MIA cycles 80 and 81
- NYC cycles 80 and 81
The scale factor for MIA was determined using the same formula used in CCIP-0154 and calculated based on the total supply at the start block of the first cycle and the end block of the last cycle.
- MIA scale factor: 0.8916 (prev: 0.8823)
The calculations used for the scale factor are available in the supplemental spreadsheet8.
- ccip-021-extend-sunset-period-25
Footnotes
-
https://explorer.hiro.so/txid/SP8A9HZ3PKST0S42VM9523Z9NV42SZ026V4K39WH.ccd001-direct-execute?chain=mainnet ↩ ↩2
-
https://github.com/citycoins/governance/blob/feat/add-ccip-020/ccips/ccip-020/ccip-020-graceful-protocol-shutdown.md ↩
-
https://github.com/citycoins/governance/blob/feat/add-ccip-015/ccips/ccip-015/ccip-015-community-proposal-voting-process.md ↩ ↩2 ↩3 ↩4
-
https://github.com/citycoins/governance/blob/feat/ccip-21/ccips/ccip-021/ccip-021-extend-direct-execute-sunset-period-2.md ↩ ↩2
-
https://github.com/citycoins/governance/blob/feat/add-ccip-017/ccips/ccip-017/ccip-017-extend-direct-execute-sunset-period ↩ ↩2
-
https://github.com/citycoins/governance/blob/main/ccips/ccip-012/ccip-012-stabilize-emissions-and-treasuries.md ↩
-
See the ccip-021-vote-calculations-per-ccip-015 spreadsheet ↩