Verified contractExactMIT
JusticePetition
Address0x67d2c163fc339baddbc9d2786c0c78daeb17d751
- Balance
0 ETH
- Transactions
2
- Compiler
solc 0.8.34
- Same code
Only this contract
Details
- Compiler
- solc 0.8.34+commit.80d5c536
- Language
- solidity
- Optimization
- No
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,012,822
- Creation transaction
- 0x2192ff4efe…a1e5c91756
JusticePetition.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
}
/// @notice Optional on-chain record of the Assange pardon petition.
contract JusticePetition {
string public constant STATEMENT =
"We call on the President of the United States to grant Julian Assange a full and unconditional pardon.";
IERC20 public constant JUSTICE =
IERC20(0x59d1e836F7b7210A978b25a855085cc46fd090B5);
uint256 public constant MIN_JUSTICE = 1 ether;
mapping(address => uint256) public signedAt;
uint256 public count;
event Signed(address indexed signer, uint256 timestamp);
function sign() external {
require(signedAt[msg.sender] == 0, "already signed");
require(JUSTICE.balanceOf(msg.sender) >= MIN_JUSTICE, "need JUSTICE");
signedAt[msg.sender] = block.timestamp;
unchecked { count += 1; }
emit Signed(msg.sender, block.timestamp);
}
function hasSigned(address account) external view returns (bool) {
return signedAt[account] != 0;
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
},
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.