Overview ERC20
PRICE
n/a

ON-CHAIN MARKET CAP n/a

Total Supply:
3,000,000.00 DDBAM

Holders:
3
Profile Summary
Blockchain:
Ethereum (1)


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

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 200 runs

Created At:
Tue, 12 Nov 2024 14:18:23 GMT
Ownable.sol
@openzeppelin
contracts
access
Ownable.sol


Contract ABI
[
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "_maxSupply",
        "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": "decimals",
    "outputs": [
      {
        "internalType": "uint8",
        "name": "",
        "type": "uint8"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "maxSupply",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "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": [],
    "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
608060405234801561001057600080fd5b50604051610bcf380380610bcf83398101604081905261002f9161010d565b604080518082018252600580825264444442414d60d81b60208084018290528451808601909552918452908301523391600361006b83826101c5565b50600461007882826101c5565b5050506001600160a01b0381166100a957604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6100b2816100bb565b50600655610283565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006020828403121561011f57600080fd5b5051919050565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061015057607f821691505b60208210810361017057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156101c057806000526020600020601f840160051c8101602085101561019d5750805b601f840160051c820191505b818110156101bd57600081556001016101a9565b50505b505050565b81516001600160401b038111156101de576101de610126565b6101f2816101ec845461013c565b84610176565b6020601f821160018114610226576000831561020e5750848201515b600019600385901b1c1916600184901b1784556101bd565b600084815260208120601f198516915b828110156102565787850151825560209485019460019092019101610236565b50848210156102745786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b61093d806102926000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063715018a61161008c578063a9059cbb11610066578063a9059cbb146101cd578063d5abeb01146101e0578063dd62ed3e146101e9578063f2fde38b1461022257600080fd5b8063715018a6146101a25780638da5cb5b146101aa57806395d89b41146101c557600080fd5b806323b872dd116100c857806323b872dd14610142578063313ce5671461015557806340c10f191461016457806370a082311461017957600080fd5b806306fdde03146100ef578063095ea7b31461010d57806318160ddd14610130575b600080fd5b6100f7610235565b6040516101049190610786565b60405180910390f35b61012061011b3660046107f0565b6102c7565b6040519015158152602001610104565b6002545b604051908152602001610104565b61012061015036600461081a565b6102e1565b60405160128152602001610104565b6101776101723660046107f0565b610305565b005b610134610187366004610857565b6001600160a01b031660009081526020819052604090205490565b610177610374565b6005546040516001600160a01b039091168152602001610104565b6100f7610388565b6101206101db3660046107f0565b610397565b61013460065481565b6101346101f7366004610879565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610177610230366004610857565b6103a5565b606060038054610244906108ac565b80601f0160208091040260200160405190810160405280929190818152602001828054610270906108ac565b80156102bd5780601f10610292576101008083540402835291602001916102bd565b820191906000526020600020905b8154815290600101906020018083116102a057829003601f168201915b5050505050905090565b6000336102d58185856103e3565b60019150505b92915050565b6000336102ef8582856103f5565b6102fa858585610473565b506001949350505050565b61030d6104d2565b60065460025461031d90836108e6565b11156103665760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e481858da1a595d9959606a1b60448201526064015b60405180910390fd5b61037082826104ff565b5050565b61037c6104d2565b6103866000610535565b565b606060048054610244906108ac565b6000336102d5818585610473565b6103ad6104d2565b6001600160a01b0381166103d757604051631e4fbdf760e01b81526000600482015260240161035d565b6103e081610535565b50565b6103f08383836001610587565b505050565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461046d578181101561045e57604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161035d565b61046d84848484036000610587565b50505050565b6001600160a01b03831661049d57604051634b637e8f60e11b81526000600482015260240161035d565b6001600160a01b0382166104c75760405163ec442f0560e01b81526000600482015260240161035d565b6103f083838361065c565b6005546001600160a01b031633146103865760405163118cdaa760e01b815233600482015260240161035d565b6001600160a01b0382166105295760405163ec442f0560e01b81526000600482015260240161035d565b6103706000838361065c565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166105b15760405163e602df0560e01b81526000600482015260240161035d565b6001600160a01b0383166105db57604051634a1406b160e11b81526000600482015260240161035d565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561046d57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161064e91815260200190565b60405180910390a350505050565b6001600160a01b03831661068757806002600082825461067c91906108e6565b909155506106f99050565b6001600160a01b038316600090815260208190526040902054818110156106da5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161035d565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661071557600280548290039055610734565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161077991815260200190565b60405180910390a3505050565b602081526000825180602084015260005b818110156107b45760208186018101516040868401015201610797565b506000604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b03811681146107eb57600080fd5b919050565b6000806040838503121561080357600080fd5b61080c836107d4565b946020939093013593505050565b60008060006060848603121561082f57600080fd5b610838846107d4565b9250610846602085016107d4565b929592945050506040919091013590565b60006020828403121561086957600080fd5b610872826107d4565b9392505050565b6000806040838503121561088c57600080fd5b610895836107d4565b91506108a3602084016107d4565b90509250929050565b600181811c908216806108c057607f821691505b6020821081036108e057634e487b7160e01b600052602260045260246000fd5b50919050565b808201808211156102db57634e487b7160e01b600052601160045260246000fdfea26469706673582212203b37160c2ee24565840aade04bc914adbf60eb07b964c9833aefba75e8a3517364736f6c634300081a003300000000000000000000000000000000000000000014adf4b7320334b9000000