Overview ERC20
PRICE
n/a

ON-CHAIN MARKET CAP n/a

Total Supply:
1,000,000,000.00 BRUTUS

Holders:
1
Profile Summary
Blockchain:
Base (8453)


Decimals:
18
Contract Source Code Verified (Exact Match)
Contract Name:
WeRichToken

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 100 runs

Created At:
Thu, 19 Sep 2024 09:40:41 GMT
Ownable2StepUpgradeable.sol
@openzeppelin
contracts-upgradeable
access
Ownable2StepUpgradeable.sol


Contract ABI
[
  {
    "inputs": [
      {
        "internalType": "string",
        "name": "name",
        "type": "string"
      },
      {
        "internalType": "string",
        "name": "symbol",
        "type": "string"
      },
      {
        "internalType": "uint256",
        "name": "supply",
        "type": "uint256"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "constructor"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "spender",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "allowance",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "needed",
        "type": "uint256"
      }
    ],
    "name": "ERC20InsufficientAllowance",
    "type": "error"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "sender",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "balance",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "needed",
        "type": "uint256"
      }
    ],
    "name": "ERC20InsufficientBalance",
    "type": "error"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "approver",
        "type": "address"
      }
    ],
    "name": "ERC20InvalidApprover",
    "type": "error"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "receiver",
        "type": "address"
      }
    ],
    "name": "ERC20InvalidReceiver",
    "type": "error"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "sender",
        "type": "address"
      }
    ],
    "name": "ERC20InvalidSender",
    "type": "error"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "spender",
        "type": "address"
      }
    ],
    "name": "ERC20InvalidSpender",
    "type": "error"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "owner",
        "type": "address"
      }
    ],
    "name": "OwnableInvalidOwner",
    "type": "error"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "account",
        "type": "address"
      }
    ],
    "name": "OwnableUnauthorizedAccount",
    "type": "error"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "owner",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "spender",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "value",
        "type": "uint256"
      }
    ],
    "name": "Approval",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "previousOwner",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "newOwner",
        "type": "address"
      }
    ],
    "name": "OwnershipTransferred",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "from",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "to",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "value",
        "type": "uint256"
      }
    ],
    "name": "Transfer",
    "type": "event"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "owner",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "spender",
        "type": "address"
      }
    ],
    "name": "allowance",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "spender",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "value",
        "type": "uint256"
      }
    ],
    "name": "approve",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "account",
        "type": "address"
      }
    ],
    "name": "balanceOf",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "blockedPairAddress",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "decimals",
    "outputs": [
      {
        "internalType": "uint8",
        "name": "",
        "type": "uint8"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "name",
    "outputs": [
      {
        "internalType": "string",
        "name": "",
        "type": "string"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "owner",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "renounceOwnership",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "pairAddress",
        "type": "address"
      }
    ],
    "name": "setBlockedPairAddress",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "symbol",
    "outputs": [
      {
        "internalType": "string",
        "name": "",
        "type": "string"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "totalSupply",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "to",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "value",
        "type": "uint256"
      }
    ],
    "name": "transfer",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "from",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "to",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "value",
        "type": "uint256"
      }
    ],
    "name": "transferFrom",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "newOwner",
        "type": "address"
      }
    ],
    "name": "transferOwnership",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  }
]


Contract Creation Code
60806040523480156200001157600080fd5b5060405162000f9c38038062000f9c83398101604081905262000034916200041c565b33838360036200004583826200051d565b5060046200005482826200051d565b5050506001600160a01b0381166200008757604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6200009281620000c8565b50600680546001600160a01b0319166001600160a01b03179055620000bf620000b83390565b826200011a565b50505062000611565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620001465760405163ec442f0560e01b8152600060048201526024016200007e565b620001546000838362000158565b5050565b6006546001600160a01b0390811690841603620001b55760405162461bcd60e51b8152602060048201526025602482015260008051602062000f7c83398151915260448201526479206e6f7760d81b60648201526084016200007e565b6006546001600160a01b0390811690831603620002125760405162461bcd60e51b8152602060048201526025602482015260008051602062000f7c83398151915260448201526479206e6f7760d81b60648201526084016200007e565b6200021f83838362000224565b505050565b6001600160a01b03831662000253578060026000828254620002479190620005e9565b90915550620002c79050565b6001600160a01b03831660009081526020819052604090205481811015620002a85760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016200007e565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216620002e55760028054829003905562000304565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200034a91815260200190565b60405180910390a3505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200037f57600080fd5b81516001600160401b03808211156200039c576200039c62000357565b604051601f8301601f19908116603f01168101908282118183101715620003c757620003c762000357565b81604052838152602092508683858801011115620003e457600080fd5b600091505b83821015620004085785820183015181830184015290820190620003e9565b600093810190920192909252949350505050565b6000806000606084860312156200043257600080fd5b83516001600160401b03808211156200044a57600080fd5b62000458878388016200036d565b945060208601519150808211156200046f57600080fd5b506200047e868287016200036d565b925050604084015190509250925092565b600181811c90821680620004a457607f821691505b602082108103620004c557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200021f57600081815260208120601f850160051c81016020861015620004f45750805b601f850160051c820191505b81811015620005155782815560010162000500565b505050505050565b81516001600160401b0381111562000539576200053962000357565b62000551816200054a84546200048f565b84620004cb565b602080601f831160018114620005895760008415620005705750858301515b600019600386901b1c1916600185901b17855562000515565b600085815260208120601f198616915b82811015620005ba5788860151825594840194600190910190840162000599565b5085821015620005d95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156200060b57634e487b7160e01b600052601160045260246000fd5b92915050565b61095b80620006216000396000f3fe608060405234801561001057600080fd5b50600436106100ca5760003560e01c806370a082311161007c57806370a0823114610177578063715018a6146101a05780638da5cb5b146101aa57806395d89b41146101bb578063a9059cbb146101c3578063dd62ed3e146101d6578063f2fde38b146101e957600080fd5b806306fdde03146100cf578063095ea7b3146100ed57806318160ddd146101105780631a4454ff1461012257806323b872dd14610142578063313ce567146101555780633e200ff414610164575b600080fd5b6100d76101fc565b6040516100e49190610730565b60405180910390f35b6101006100fb366004610795565b61028e565b60405190151581526020016100e4565b6002545b6040519081526020016100e4565b600654610135906001600160a01b031681565b6040516100e491906107bf565b6101006101503660046107d3565b6102a8565b604051601281526020016100e4565b61013561017236600461080f565b6102cc565b61011461018536600461080f565b6001600160a01b031660009081526020819052604090205490565b6101a86102fc565b005b6005546001600160a01b0316610135565b6100d7610310565b6101006101d1366004610795565b61031f565b6101146101e4366004610831565b61032d565b6101a86101f736600461080f565b610358565b60606003805461020b90610864565b80601f016020809104026020016040519081016040528092919081815260200182805461023790610864565b80156102845780601f1061025957610100808354040283529160200191610284565b820191906000526020600020905b81548152906001019060200180831161026757829003601f168201915b5050505050905090565b60003361029c81858561039f565b60019150505b92915050565b6000336102b68582856103b1565b6102c1858585610404565b506001949350505050565b60006102d6610463565b50600680546001600160a01b038381166001600160a01b0319831617909255165b919050565b610304610463565b61030e6000610490565b565b60606004805461020b90610864565b60003361029c818585610404565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610360610463565b6001600160a01b038116610393576000604051631e4fbdf760e01b815260040161038a91906107bf565b60405180910390fd5b61039c81610490565b50565b6103ac83838360016104e2565b505050565b60006103bd848461032d565b905060001981146103fe57818110156103ef57828183604051637dc7a0d960e11b815260040161038a9392919061089e565b6103fe848484840360006104e2565b50505050565b6001600160a01b03831661042e576000604051634b637e8f60e11b815260040161038a91906107bf565b6001600160a01b03821661045857600060405163ec442f0560e01b815260040161038a91906107bf565b6103ac8383836105b7565b6005546001600160a01b0316331461030e573360405163118cdaa760e01b815260040161038a91906107bf565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03841661050c57600060405163e602df0560e01b815260040161038a91906107bf565b6001600160a01b038316610536576000604051634a1406b160e11b815260040161038a91906107bf565b6001600160a01b03808516600090815260016020908152604080832093871683529290522082905580156103fe57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516105a991815260200190565b60405180910390a350505050565b6006546001600160a01b03908116908416036105e55760405162461bcd60e51b815260040161038a906108bf565b6006546001600160a01b03908116908316036106135760405162461bcd60e51b815260040161038a906108bf565b6103ac8383836001600160a01b0383166106445780600260008282546106399190610904565b909155506106a39050565b6001600160a01b038316600090815260208190526040902054818110156106845783818360405163391434e360e21b815260040161038a9392919061089e565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166106bf576002805482900390556106de565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161072391815260200190565b60405180910390a3505050565b600060208083528351808285015260005b8181101561075d57858101830151858201604001528201610741565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146102f757600080fd5b600080604083850312156107a857600080fd5b6107b18361077e565b946020939093013593505050565b6001600160a01b0391909116815260200190565b6000806000606084860312156107e857600080fd5b6107f18461077e565b92506107ff6020850161077e565b9150604084013590509250925092565b60006020828403121561082157600080fd5b61082a8261077e565b9392505050565b6000806040838503121561084457600080fd5b61084d8361077e565b915061085b6020840161077e565b90509250929050565b600181811c9082168061087857607f821691505b60208210810361089857634e487b7160e01b600052602260045260246000fd5b50919050565b6001600160a01b039390931683526020830191909152604082015260600190565b60208082526025908201527f576552696368546f6b656e3a2063616e6e6f7420616464206c6971756964697460408201526479206e6f7760d81b606082015260800190565b808201808211156102a257634e487b7160e01b600052601160045260246000fdfea2646970667358221220fb98dad570e4e3b01c42d3a3cff4b46622f53540d12cf7bcd300716a3f4edde564736f6c63430008140033576552696368546f6b656e3a2063616e6e6f7420616464206c69717569646974000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000033b2e3c9fd0803ce80000000000000000000000000000000000000000000000000000000000000000000006427275747573000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064252555455530000000000000000000000000000000000000000000000000000