Overview ERC20
PRICE
n/a

ON-CHAIN MARKET CAP n/a

Total Supply:
39,938.44 OBTC

Holders:
111
Profile Summary
Blockchain:
Base (8453)


Decimals:
18
Contract Source Code Verified (Partial Match)
Contract Name:
OBTC

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 1000 runs

Created At:
Thu, 14 Mar 2024 11:31:53 GMT
OBTC.sol
OBTC.sol
OBTC.sol


Contract ABI
[
  {
    "inputs": [
      {
        "internalType": "string",
        "name": "name",
        "type": "string"
      },
      {
        "internalType": "string",
        "name": "symbol",
        "type": "string"
      }
    ],
    "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": "account",
        "type": "address"
      }
    ],
    "name": "addMinter",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "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": [
      {
        "internalType": "address",
        "name": "from",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "burn",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "decimals",
    "outputs": [
      {
        "internalType": "uint8",
        "name": "",
        "type": "uint8"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "to",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "mint",
    "outputs": [],
    "stateMutability": "nonpayable",
    "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": [
      {
        "internalType": "address",
        "name": "account",
        "type": "address"
      }
    ],
    "name": "removeMinter",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "renounceOwnership",
    "outputs": [],
    "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
608060405234801562000010575f80fd5b5060405162000e6738038062000e678339810160408190526200003391620001aa565b33828260036200004483826200029a565b5060046200005382826200029a565b5050506001600160a01b0381166200008457604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6200008f8162000098565b50505062000366565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f8301126200010d575f80fd5b81516001600160401b03808211156200012a576200012a620000e9565b604051601f8301601f19908116603f01168101908282118183101715620001555762000155620000e9565b816040528381526020925086602085880101111562000172575f80fd5b5f91505b8382101562000195578582018301518183018401529082019062000176565b5f602085830101528094505050505092915050565b5f8060408385031215620001bc575f80fd5b82516001600160401b0380821115620001d3575f80fd5b620001e186838701620000fd565b93506020850151915080821115620001f7575f80fd5b506200020685828601620000fd565b9150509250929050565b600181811c908216806200022557607f821691505b6020821081036200024457634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200029557805f5260205f20601f840160051c81016020851015620002715750805b601f840160051c820191505b8181101562000292575f81556001016200027d565b50505b505050565b81516001600160401b03811115620002b657620002b6620000e9565b620002ce81620002c7845462000210565b846200024a565b602080601f83116001811462000304575f8415620002ec5750858301515b5f19600386901b1c1916600185901b1785556200035e565b5f85815260208120601f198616915b82811015620003345788860151825594840194600190910190840162000313565b50858210156200035257878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b610af380620003745f395ff3fe608060405234801561000f575f80fd5b50600436106100fb575f3560e01c8063715018a6116100935780639dc29fac116100635780639dc29fac14610202578063a9059cbb14610215578063dd62ed3e14610228578063f2fde38b14610260575f80fd5b8063715018a6146101c45780638da5cb5b146101cc57806395d89b41146101e7578063983b2d56146101ef575f80fd5b80633092afd5116100ce5780633092afd514610165578063313ce5671461017a57806340c10f191461018957806370a082311461019c575f80fd5b806306fdde03146100ff578063095ea7b31461011d57806318160ddd1461014057806323b872dd14610152575b5f80fd5b610107610273565b604051610114919061094d565b60405180910390f35b61013061012b3660046109b4565b610303565b6040519015158152602001610114565b6002545b604051908152602001610114565b6101306101603660046109dc565b61031c565b610178610173366004610a15565b61033f565b005b60405160128152602001610114565b6101786101973660046109b4565b610367565b6101446101aa366004610a15565b6001600160a01b03165f9081526020819052604090205490565b6101786103d8565b6005546040516001600160a01b039091168152602001610114565b6101076103eb565b6101786101fd366004610a15565b6103fa565b6101786102103660046109b4565b610425565b6101306102233660046109b4565b61048d565b610144610236366004610a35565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b61017861026e366004610a15565b61049a565b60606003805461028290610a66565b80601f01602080910402602001604051908101604052809291908181526020018280546102ae90610a66565b80156102f95780601f106102d0576101008083540402835291602001916102f9565b820191905f5260205f20905b8154815290600101906020018083116102dc57829003601f168201915b5050505050905090565b5f336103108185856104f0565b60019150505b92915050565b5f33610329858285610502565b610334858585610596565b506001949350505050565b6103476105f3565b6001600160a01b03165f908152600660205260409020805460ff19169055565b335f9081526006602052604090205460ff166103ca5760405162461bcd60e51b815260206004820152601660248201527f43616c6c6572206973206e6f742061206d696e7465720000000000000000000060448201526064015b60405180910390fd5b6103d48282610639565b5050565b6103e06105f3565b6103e95f61066d565b565b60606004805461028290610a66565b6104026105f3565b6001600160a01b03165f908152600660205260409020805460ff19166001179055565b335f9081526006602052604090205460ff166104835760405162461bcd60e51b815260206004820152601660248201527f43616c6c6572206973206e6f742061206d696e7465720000000000000000000060448201526064016103c1565b6103d482826106d6565b5f33610310818585610596565b6104a26105f3565b6001600160a01b0381166104e4576040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081525f60048201526024016103c1565b6104ed8161066d565b50565b6104fd838383600161070a565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f1981146105905781811015610582576040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526001600160a01b038416600482015260248101829052604481018390526064016103c1565b61059084848484035f61070a565b50505050565b6001600160a01b0383166105bf57604051634b637e8f60e11b81525f60048201526024016103c1565b6001600160a01b0382166105e85760405163ec442f0560e01b81525f60048201526024016103c1565b6104fd83838361080e565b6005546001600160a01b031633146103e9576040517f118cdaa70000000000000000000000000000000000000000000000000000000081523360048201526024016103c1565b6001600160a01b0382166106625760405163ec442f0560e01b81525f60048201526024016103c1565b6103d45f838361080e565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166106ff57604051634b637e8f60e11b81525f60048201526024016103c1565b6103d4825f8361080e565b6001600160a01b03841661074c576040517fe602df050000000000000000000000000000000000000000000000000000000081525f60048201526024016103c1565b6001600160a01b03831661078e576040517f94280d620000000000000000000000000000000000000000000000000000000081525f60048201526024016103c1565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561059057826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161080091815260200190565b60405180910390a350505050565b6001600160a01b038316610838578060025f82825461082d9190610a9e565b909155506108c19050565b6001600160a01b0383165f90815260208190526040902054818110156108a3576040517fe450d38c0000000000000000000000000000000000000000000000000000000081526001600160a01b038516600482015260248101829052604481018390526064016103c1565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166108dd576002805482900390556108fb565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161094091815260200190565b60405180910390a3505050565b5f602080835283518060208501525f5b818110156109795785810183015185820160400152820161095d565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146109af575f80fd5b919050565b5f80604083850312156109c5575f80fd5b6109ce83610999565b946020939093013593505050565b5f805f606084860312156109ee575f80fd5b6109f784610999565b9250610a0560208501610999565b9150604084013590509250925092565b5f60208284031215610a25575f80fd5b610a2e82610999565b9392505050565b5f8060408385031215610a46575f80fd5b610a4f83610999565b9150610a5d60208401610999565b90509250929050565b600181811c90821680610a7a57607f821691505b602082108103610a9857634e487b7160e01b5f52602260045260245ffd5b50919050565b8082018082111561031657634e487b7160e01b5f52601160045260245ffdfea26469706673582212201e46abbd1c96be519285f0d42c8a1fe197e6ada306360236bc8bd4f81090c41f64736f6c634300081800330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000164f6d6e69636861696e20425220486564676566756e640000000000000000000000000000000000000000000000000000000000000000000000000000000000044f42544300000000000000000000000000000000000000000000000000000000