Overview ERC20
PRICE
n/a

ON-CHAIN MARKET CAP n/a

Total Supply:
19.00 DSC

Holders:
2
Profile Summary
Blockchain:
Sepolia (11155111)


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

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Created At:
Tue, 19 Nov 2024 02:21:48 GMT
DecentralizedStableCoin.sol
src
DecentralizedStableCoin.sol


Contract ABI
[
  {
    "inputs": [],
    "stateMutability": "nonpayable",
    "type": "constructor"
  },
  {
    "inputs": [],
    "name": "DecentralizedStableCoin__AmountMustBeMoreThanZero",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "DecentralizedStableCoin__BurnAmountExceedsBalance",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "DecentralizedStableCoin__NotZeroAddress",
    "type": "error"
  },
  {
    "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": [
      {
        "internalType": "uint256",
        "name": "_amount",
        "type": "uint256"
      }
    ],
    "name": "burn",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "account",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "value",
        "type": "uint256"
      }
    ],
    "name": "burnFrom",
    "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": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "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
60806040523480156200001157600080fd5b506040518060400160405280601781526020017f446563656e7472616c697a6564537461626c65436f696e0000000000000000008152506040518060400160405280600381526020016244534360e81b815250816003908162000075919062000195565b50600462000084828262000195565b50505062000098336200009e60201b60201c565b62000261565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200011b57607f821691505b6020821081036200013c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200019057600081815260208120601f850160051c810160208610156200016b5750805b601f850160051c820191505b818110156200018c5782815560010162000177565b5050505b505050565b81516001600160401b03811115620001b157620001b1620000f0565b620001c981620001c2845462000106565b8462000142565b602080601f831160018114620002015760008415620001e85750858301515b600019600386901b1c1916600185901b1785556200018c565b600085815260208120601f198616915b82811015620002325788860151825594840194600190910190840162000211565b5085821015620002515787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b610a3180620002716000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a082311161009757806395d89b411161006657806395d89b41146101f6578063a9059cbb146101fe578063dd62ed3e14610211578063f2fde38b1461024a57600080fd5b806370a0823114610197578063715018a6146101c057806379cc6790146101c85780638da5cb5b146101db57600080fd5b806323b872dd116100d357806323b872dd1461014d578063313ce5671461016057806340c10f191461016f57806342966c681461018257600080fd5b806306fdde03146100fa578063095ea7b31461011857806318160ddd1461013b575b600080fd5b61010261025d565b60405161010f9190610862565b60405180910390f35b61012b6101263660046108cc565b6102ef565b604051901515815260200161010f565b6002545b60405190815260200161010f565b61012b61015b3660046108f6565b610309565b6040516012815260200161010f565b61012b61017d3660046108cc565b61032d565b610195610190366004610932565b610392565b005b61013f6101a536600461094b565b6001600160a01b031660009081526020819052604090205490565b6101956103f6565b6101956101d63660046108cc565b61040a565b6005546040516001600160a01b03909116815260200161010f565b61010261041f565b61012b61020c3660046108cc565b61042e565b61013f61021f36600461096d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61019561025836600461094b565b61043c565b60606003805461026c906109a0565b80601f0160208091040260200160405190810160405280929190818152602001828054610298906109a0565b80156102e55780601f106102ba576101008083540402835291602001916102e5565b820191906000526020600020905b8154815290600101906020018083116102c857829003601f168201915b5050505050905090565b6000336102fd81858561047f565b60019150505b92915050565b600033610317858285610491565b61032285858561050f565b506001949350505050565b600061033761056e565b6001600160a01b03831661035e5760405163f3c190e960e01b815260040160405180910390fd5b6000821161037f5760405163ae8ba12360e01b815260040160405180910390fd5b610389838361059b565b50600192915050565b61039a61056e565b33600090815260208190526040902054816103c85760405163ae8ba12360e01b815260040160405180910390fd5b818110156103e95760405163fe9c6abb60e01b815260040160405180910390fd5b6103f2826105d1565b5050565b6103fe61056e565b61040860006105db565b565b610415823383610491565b6103f2828261062d565b60606004805461026c906109a0565b6000336102fd81858561050f565b61044461056e565b6001600160a01b03811661047357604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61047c816105db565b50565b61048c8383836001610663565b505050565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461050957818110156104fa57604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161046a565b61050984848484036000610663565b50505050565b6001600160a01b03831661053957604051634b637e8f60e11b81526000600482015260240161046a565b6001600160a01b0382166105635760405163ec442f0560e01b81526000600482015260240161046a565b61048c838383610738565b6005546001600160a01b031633146104085760405163118cdaa760e01b815233600482015260240161046a565b6001600160a01b0382166105c55760405163ec442f0560e01b81526000600482015260240161046a565b6103f260008383610738565b61047c338261062d565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821661065757604051634b637e8f60e11b81526000600482015260240161046a565b6103f282600083610738565b6001600160a01b03841661068d5760405163e602df0560e01b81526000600482015260240161046a565b6001600160a01b0383166106b757604051634a1406b160e11b81526000600482015260240161046a565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561050957826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161072a91815260200190565b60405180910390a350505050565b6001600160a01b03831661076357806002600082825461075891906109da565b909155506107d59050565b6001600160a01b038316600090815260208190526040902054818110156107b65760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161046a565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166107f157600280548290039055610810565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161085591815260200190565b60405180910390a3505050565b600060208083528351808285015260005b8181101561088f57858101830151858201604001528201610873565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146108c757600080fd5b919050565b600080604083850312156108df57600080fd5b6108e8836108b0565b946020939093013593505050565b60008060006060848603121561090b57600080fd5b610914846108b0565b9250610922602085016108b0565b9150604084013590509250925092565b60006020828403121561094457600080fd5b5035919050565b60006020828403121561095d57600080fd5b610966826108b0565b9392505050565b6000806040838503121561098057600080fd5b610989836108b0565b9150610997602084016108b0565b90509250929050565b600181811c908216806109b457607f821691505b6020821081036109d457634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561030357634e487b7160e01b600052601160045260246000fdfea26469706673582212208754862e6eab50e54b2b6bb4fb44b4fb2ac717e93f5ffc338c235c9f7495b7ba64736f6c63430008140033