Verified contractExactMIT
WHALECouncilAgreement
Address0x33d4796118dcd8d3be0d0da6055fc5d6e429097f
- Balance
0 ETH
- Transactions
7
- Compiler
solc 0.8.25
- Same code
Only this contract
Details
- Compiler
- solc 0.8.25+commit.b61c2a91
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- paris
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 20,850,807
- Creation transaction
- 0x70dcb95947…cac3161691
src/WHALECouncilAgreement.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract WHALECouncilAgreement {
address public owner;
mapping(address => bool) public councilMembers;
mapping(address => uint256) public lastAgreedAmendmentIndex;
uint256 public currentCouncilMembers;
string public constant CHARTER = "The WHALE Council Charter\n"
"September 19, 2024\n"
"V.1.0\n\n"
"The WHALE Council was established on September 19, 2024, with an initial eight members to safeguard, manage, and facilitate the digital assets stored at the WHALE Vault (eth:0xC9a9D8943680E5986DedFF4E07082C83a39585c6).\n"
"This Charter dictates the roles and responsibilities of WHALE Council members as well as the requirements for the addition or removal of current and future WHALE Council members.\n\n"
"WHALE Council members are responsible for:\n"
"1. Transparent and Timely Execution of Proposals\n"
"Executing proposals approved by $WHALE token holders in a transparent and timely manner.\n"
"2. Safeguarding Against Illegitimate Proposals\n"
"Transparently analyzing and evaluating proposal submissions through the WHALE Approval and Voting Engine (WAVE) to protect the WHALE Vault from proposals that may harm the WHALE DAO's integrity or do not serve its collective interest.\n"
"3. Management of WHALE DAO Treasury\n"
"Participating in the analysis, evaluation, and direction of the WHALE DAO Treasury's use in serving the collective interest of the WHALE DAO.\n"
"4. Annual Budgeting for Community Distribution\n"
"Developing, analyzing, and approving the annual $WHALE token budget for equitable community distribution.\n"
"5. Safekeeping of Assets\n"
"Ensuring the safekeeping and generational legacy of seeds and keys related to the WHALE Vault and WHALE DAO.\n"
"If seeds or keys are lost or compromised, promptly notifying relevant parties and rectifying any issues by following established protocols.\n"
"6. Enforcement of Voting Requirements\n"
"Enforcing the minimum 70% approval requirement of all current WHALE Council members for decisions requiring Council action. Abstention and non-votes are counted as votes against for the purposes of reaching the 70% threshold.\n"
"7. Addition of New Council Members\n"
"New WHALE Council members can be added with a minimum of 70% approval from current Council members.\n"
"Candidates should have a minimum of three years of active community participation. Exceptions may be considered to encourage diversity and incorporate fresh perspectives.\n"
"The Council will remain transparent about decisions and will communicate when decisions are being contemplated.\n"
"8. Removal of Council Members\n"
"Council members may be removed due to violations of this Charter or actions detrimental to the WHALE DAO.\n"
"Removal requires a minimum of 70% approval from current Council members.\n"
"The Council will remain transparent about such decisions.\n"
"9. Council Membership Minimum\n"
"The WHALE Council shall maintain a minimum of six active Council members at all times to ensure effective governance and decision-making.\n"
"In the event that the number of active Council members falls below six, the remaining Council members shall appoint interim members to restore the Council to the minimum required membership. Interim members shall have the same voting rights as permanent members.\n"
"10. Promoting Public Discourse on Proposals\n"
"Facilitating public discussion and debate during a proposal pre-submission phase.\n"
"Engaging in transparent discussions during pre-submission on proposals that are contentious or misaligned with WHALE DAO's vision and mission.\n"
"11. Active Participation\n"
"Actively participating in a majority of proposal confirmations.\n"
"Absence from five consecutive proposals without valid reason will result in a warning; further absences may warrant a vote for removal by the remaining Council members.\n"
"12. Regular Community Updates\n"
"Providing regular updates to WHALE DAO members on WHALE Council activities, decisions, and the overall status of the WHALE Vault and DAO Treasury to maintain transparency and accountability.\n"
"13. Conflict Resolution\n"
"Upholding a fair process for resolving disputes within the WHALE Council, and between Council members and the WHALE DAO members.\n"
"14. Compliance and Legal Integrity\n"
"The Council is committed to adhering to applicable laws and regulations across all jurisdictions in which it operates.\n"
"15. Review & Amendments\n"
"This Charter will be periodically reviewed and adjusted by the WHALE Council to ensure it remains aligned with WHALE DAO's vision and mission.\n"
"Amendments require a minimum of 70% approval from current Council members.\n"
"The Council will remain transparent about decisions and recommends consultation with WHALE DAO members when appropriate.\n\n"
"Glossary of Terms\n"
"WHALE DAO: The decentralized autonomous organization governed by $WHALE token holders.\n"
"WHALE Council: The body responsible for overseeing the proposal process and ensuring compliance.\n"
"WAVE: WHALE Approval and Voting Engine used for proposal evaluation.";
string[] public amendments;
event CouncilMemberAdded(address indexed member);
event CouncilMemberRemoved(address indexed member);
event AgreementSet(address indexed member, uint256 agreedAmendmentIndex);
event AmendmentAdded(uint256 indexed amendmentIndex, string amendmentText);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
owner = 0xC9a9D8943680E5986DedFF4E07082C83a39585c6;
address[8] memory initialMembers = [
0x31fD07Ec5BA9c1DE29A66dEfDa7804c21783177F,
0x2D89BedA27A407F8d44A81Ef8FF42076a101D991,
0x134b801671226E79a1daE0c0a0Ae3BDdEF38B0a0,
0xeFdBc5BeEd16e824678f2963e2CA4A443F95afDF,
0x92CA131f1E361B86E3062A9A25217A15e5370650,
0x20739a70e09C05C298b8762dBC8F5aAA5166e9CA,
0x6f302F68B624FcaF6d4eF2f7DfD8c4fd4B84fCBE,
0x66D5E4a0A29989c3dB5786f15775F1A4CC82BB6F
];
for (uint i = 0; i < initialMembers.length; i++) {
councilMembers[initialMembers[i]] = true;
lastAgreedAmendmentIndex[initialMembers[i]] = type(uint256).max;
emit CouncilMemberAdded(initialMembers[i]);
}
currentCouncilMembers = initialMembers.length;
}
modifier onlyOwner() {
require(msg.sender == owner, "Only the owner can call this function");
_;
}
modifier onlyCouncilMember() {
require(councilMembers[msg.sender], "Only council members can call this function");
_;
}
function transferOwnership(address newOwner) public onlyOwner {
require(newOwner != address(0), "New owner cannot be the zero address");
emit OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
function addCouncilMember(address _member) external onlyOwner {
require(!councilMembers[_member], "Address is already a council member");
councilMembers[_member] = true;
currentCouncilMembers++;
lastAgreedAmendmentIndex[_member] = type(uint256).max;
emit CouncilMemberAdded(_member);
}
function removeCouncilMember(address _member) external onlyOwner {
require(councilMembers[_member], "Address is not a council member");
require(_member != owner, "Cannot remove the owner from the council");
councilMembers[_member] = false;
currentCouncilMembers--;
// Reset agreement status when removed
lastAgreedAmendmentIndex[_member] = 0;
emit CouncilMemberRemoved(_member);
}
function agreeToAgreement() external onlyCouncilMember {
require(lastAgreedAmendmentIndex[msg.sender] < amendments.length || lastAgreedAmendmentIndex[msg.sender] == type(uint256).max, "You have already agreed to all amendments");
lastAgreedAmendmentIndex[msg.sender] = amendments.length;
emit AgreementSet(msg.sender, amendments.length);
}
function addAmendment(string memory _amendmentText) external onlyOwner {
amendments.push(_amendmentText);
emit AmendmentAdded(amendments.length - 1, _amendmentText);
}
function getCharter() external pure returns (string memory) {
return CHARTER;
}
function getAmendment(uint256 _index) external view returns (string memory) {
require(_index < amendments.length, "Amendment index out of bounds");
return amendments[_index];
}
function getAmendmentsCount() external view returns (uint256) {
return amendments.length;
}
function hasCouncilMemberAgreedToLatest(address _member) external view returns (bool) {
return lastAgreedAmendmentIndex[_member] == amendments.length;
}
function getLastAgreedAmendmentIndex(address _member) external view returns (uint256) {
return lastAgreedAmendmentIndex[_member];
}
function isCouncilMember(address _member) external view returns (bool) {
return councilMembers[_member];
}
function getCurrentCouncilMembers() external view returns (uint256) {
return currentCouncilMembers;
}
}Compiler settingsShow
{
"metadata": {
"bytecodeHash": "ipfs"
},
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
},
"evmVersion": "paris",
"remappings": [
":@openzeppelin/=lib/openzeppelin-contracts/",
":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
":ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
":forge-std/=lib/forge-std/src/",
":openzeppelin-contracts/=lib/openzeppelin-contracts/"
]
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.