ETH Price: $1,586.73 (-0.52%)
Gas: 0.45 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Advanced mode:
Parent Transaction Hash Method Block
From
To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ImmutabilityButWorse

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2021-12-01
*/

// Verified using https://dapp.tools

// hevm: flattened sources of src/ImmutabilityButWorse.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity =0.8.10;

////// src/ImmutabilityButWorse.sol
/* pragma solidity 0.8.10; */

/// @title Immutability But Worse
/// @author Transmissions11 (https://2λ.com)
/// @notice A simple contract users can delegate their
/// governance tokens to that votes no on every proposal.
/// @dev Compatible with OpenZeppelin and Compound style governance.
contract ImmutabilityButWorse {
    string public constant WHY_I_VOTED_NO = "no.";

    event VotedNo(Governance indexed gov, uint256 id);

    function voteNo(Governance gov, uint256 id) external {
        gov.castVoteWithReason(id, 0, WHY_I_VOTED_NO);

        emit VotedNo(gov, id);
    }
}

interface Governance {
    function castVoteWithReason(
        uint256 proposalId,
        uint8 support,
        string memory reason
    ) external;
}

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract Governance","name":"gov","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"VotedNo","type":"event"},{"inputs":[],"name":"WHY_I_VOTED_NO","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract Governance","name":"gov","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"voteNo","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506102db806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80634b91562e1461003b578063eaf31ad214610050575b600080fd5b61004e6100493660046101b0565b6100a2565b005b61008c6040518060400160405280600381526020017f6e6f2e000000000000000000000000000000000000000000000000000000000081525081565b6040516100999190610260565b60405180910390f35b604080518082018252600381527f6e6f2e0000000000000000000000000000000000000000000000000000000000602082015290517f7b3c71d300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff841691637b3c71d39161012a9185916000919060040161027a565b600060405180830381600087803b15801561014457600080fd5b505af1158015610158573d6000803e3d6000fd5b505050508173ffffffffffffffffffffffffffffffffffffffff167f3c1a0a784b83007ccad5c88c27615c37cec20ec835876d886364d034f62cb75f826040516101a491815260200190565b60405180910390a25050565b600080604083850312156101c357600080fd5b823573ffffffffffffffffffffffffffffffffffffffff811681146101e757600080fd5b946020939093013593505050565b6000815180845260005b8181101561021b576020818501810151868301820152016101ff565b8181111561022d576000602083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061027360208301846101f5565b9392505050565b83815260ff8316602082015260606040820152600061029c60608301846101f5565b9594505050505056fea2646970667358221220457dfe848ba3a87640e5c80a84c86633b7b08876cfb54862364a7835022c911b64736f6c634300080a0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100365760003560e01c80634b91562e1461003b578063eaf31ad214610050575b600080fd5b61004e6100493660046101b0565b6100a2565b005b61008c6040518060400160405280600381526020017f6e6f2e000000000000000000000000000000000000000000000000000000000081525081565b6040516100999190610260565b60405180910390f35b604080518082018252600381527f6e6f2e0000000000000000000000000000000000000000000000000000000000602082015290517f7b3c71d300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff841691637b3c71d39161012a9185916000919060040161027a565b600060405180830381600087803b15801561014457600080fd5b505af1158015610158573d6000803e3d6000fd5b505050508173ffffffffffffffffffffffffffffffffffffffff167f3c1a0a784b83007ccad5c88c27615c37cec20ec835876d886364d034f62cb75f826040516101a491815260200190565b60405180910390a25050565b600080604083850312156101c357600080fd5b823573ffffffffffffffffffffffffffffffffffffffff811681146101e757600080fd5b946020939093013593505050565b6000815180845260005b8181101561021b576020818501810151868301820152016101ff565b8181111561022d576000602083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061027360208301846101f5565b9392505050565b83815260ff8316602082015260606040820152600061029c60608301846101f5565b9594505050505056fea2646970667358221220457dfe848ba3a87640e5c80a84c86633b7b08876cfb54862364a7835022c911b64736f6c634300080a0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.