Skip to content
Verified contractExactMIT

TransparentUpgradeableProxy

Address0xd75ab4b69f2edfb072fdfd7e2d15a875f95ae5ae
Balance

0 ETH

 

Transactions

33

 

Compiler

solc 0.8.20

 

Same code

1,298 more contracts

 

Details

Compiler
solc 0.8.20+commit.a1b79de6
Language
solidity
Optimization
Yes, 200 runs
EVM version
paris
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
21,853,673
Creation transaction
0xb37e190e08…3bcb276f48
Proxy implementation
0xe1f4c214…ca1e5076source code not verified
Main copy (most transactions)
0xda5e1988…847cbef6

112 files

The source code is large: one file is shown at a time. Choose a file in the list.

contracts/governance/GovernorMultisig.sol

// SPDX-License-Identifier: BSD-3-Clause
pragma solidity ^0.8.20;

import "./Multiownable.sol";

contract GovernorMultisig is Multiownable {
  /// @notice The maximum number of actions that can be included in a transaction
  uint256 public constant MAX_OPERATIONS = 10; // 10 actions

  /**
   * @notice Execute target transactions with multisig.
   * @param targets Target addresses for transaction calls
   * @param values Eth values for transaction calls
   * @param signatures Function signatures for transaction calls
   * @param calldatas Calldatas for transaction calls
   */
  function executeTransaction(
    address[] memory targets,
    uint256[] memory values,
    string[] memory signatures,
    bytes[] memory calldatas
  ) external onlyManyOwners {
    require(
      targets.length == values.length && targets.length == signatures.length && targets.length == calldatas.length,
      "GovernorMultisig::executeTransaction: function information parity mismatch"
    );
    require(targets.length != 0, "GovernorMultisig::executeTransaction: must provide actions");
    require(targets.length <= MAX_OPERATIONS, "GovernorMultisig::executeTransaction: too many actions");

    for (uint8 i = 0; i < targets.length; i++) {
      bytes memory callData = bytes(signatures[i]).length == 0
        ? calldatas[i]
        : abi.encodePacked(bytes4(keccak256(bytes(signatures[i]))), calldatas[i]);

      // solhint-disable-next-line avoid-low-level-calls
      (bool success, ) = targets[i].call{value: values[i]}(callData);
      require(success, "GovernorMultisig::executeTransaction: transaction execution reverted");
    }
  }
}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "paris",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.