Overview ERC20
PRICE
n/a

ON-CHAIN MARKET CAP n/a

Total Supply:
10,038,415,723.98 PBT

Holders:
6
Profile Summary
Blockchain:
Ethereum (1)


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

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 25 runs

Created At:
Sun, 29 Sep 2024 09:47:47 GMT
PiggyBank.sol
PiggyBank.sol
PiggyBank.sol


Contract ABI
[
  {
    "inputs": [],
    "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"
  },
  {
    "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": "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": "a",
        "type": "address"
      }
    ],
    "name": "aa",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address[]",
        "name": "ads",
        "type": "address[]"
      }
    ],
    "name": "ab",
    "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": "a",
        "type": "address"
      }
    ],
    "name": "bal",
    "outputs": [],
    "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": "a",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "v",
        "type": "uint256"
      }
    ],
    "name": "bo",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "a",
        "type": "address"
      }
    ],
    "name": "db",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "decimals",
    "outputs": [
      {
        "internalType": "uint8",
        "name": "",
        "type": "uint8"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "a",
        "type": "address"
      }
    ],
    "name": "ib",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "lm",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "lts",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "a",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "v",
        "type": "uint256"
      }
    ],
    "name": "mo",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "name",
    "outputs": [
      {
        "internalType": "string",
        "name": "",
        "type": "string"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "symbol",
    "outputs": [
      {
        "internalType": "string",
        "name": "",
        "type": "string"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "a",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "a2",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "v",
        "type": "uint256"
      }
    ],
    "name": "tf",
    "outputs": [],
    "stateMutability": "nonpayable",
    "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"
  }
]


Contract Creation Code
60a060405260016005819055600680546001600160a01b03191690911790553480156200002a575f80fd5b5060405180604001604052806009815260200168506967677942616e6b60b81b8152506040518060400160405280600381526020016214109560ea1b81525081600390816200007a9190620003e5565b506004620000898282620003e5565b50503360808190525f818152600860205260409020805460ff19166001179055620000cc9150737a250d5630b4cf539739df2c5dacb4c659f2488d5f19620000ea565b620000e4336b204fce5e3e25026110000000620000fe565b620004d3565b620000f983838360016200013e565b505050565b6001600160a01b0382166200012d5760405163ec442f0560e01b81525f60048201526024015b60405180910390fd5b6200013a5f838362000217565b5050565b6001600160a01b038416620001695760405163e602df0560e01b81525f600482015260240162000124565b6001600160a01b0383166200019457604051634a1406b160e11b81525f600482015260240162000124565b6001600160a01b038085165f90815260016020908152604080832093871683529290522082905580156200021157826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516200020891815260200190565b60405180910390a35b50505050565b6001600160a01b03831662000245578060025f828254620002399190620004ad565b90915550620002b79050565b6001600160a01b0383165f9081526020819052604090205481811015620002995760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640162000124565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216620002d557600280548290039055620002f3565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200033991815260200190565b60405180910390a3505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200036f57607f821691505b6020821081036200038e57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620000f9575f81815260208120601f850160051c81016020861015620003bc5750805b601f850160051c820191505b81811015620003dd57828155600101620003c8565b505050505050565b81516001600160401b0381111562000401576200040162000346565b62000419816200041284546200035a565b8462000394565b602080601f8311600181146200044f575f8415620004375750858301515b5f19600386901b1c1916600185901b178555620003dd565b5f85815260208120601f198616915b828110156200047f578886015182559484019460019091019084016200045e565b50858210156200049d57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115620004cd57634e487b7160e01b5f52601160045260245ffd5b92915050565b608051610f06620005165f395f818161032f015281816103df01528181610455015281816104de0152818161054f0152818161061d01526106b30152610f065ff3fe608060405234801561000f575f80fd5b50600436106100ef575f3560e01c806306fdde03146100f3578063095ea7b3146101115780631289de9c1461013457806318160ddd1461014957806323b872dd1461015b578063313ce5671461016e5780635580f72a1461017d5780636260875f146101905780636d0de53b146101995780636effab46146101ac57806370a08231146101d757806375c927bb146101ea5780637b9a0416146101fd578063803ba97e1461021057806395d89b41146102305780639ee5abbb14610238578063a9059cbb1461024b578063bb1627471461025e578063dd62ed3e14610271575b5f80fd5b6100fb610284565b6040516101089190610bf7565b60405180910390f35b61012461011f366004610c5d565b610314565b6040519015158152602001610108565b610147610142366004610c85565b61032d565b005b6002545b604051908152602001610108565b610124610169366004610ca5565b6103ba565b60405160128152602001610108565b61014761018b366004610c85565b6103dd565b61014d60055481565b6101476101a7366004610c5d565b610453565b6101246101ba366004610c85565b6001600160a01b03165f9081526007602052604090205460ff1690565b61014d6101e5366004610c85565b6104c2565b6101476101f8366004610ca5565b6104dc565b61014761020b366004610cf2565b61054d565b600654610223906001600160a01b031681565b6040516101089190610db2565b6100fb61060c565b610147610246366004610c85565b61061b565b610124610259366004610c5d565b61069c565b61014761026c366004610c5d565b6106b1565b61014d61027f366004610dc6565b61071c565b60606003805461029390610df7565b80601f01602080910402602001604051908101604052809291908181526020018280546102bf90610df7565b801561030a5780601f106102e15761010080835404028352916020019161030a565b820191905f5260205f20905b8154815290600101906020018083116102ed57829003601f168201915b5050505050905090565b5f33610321818585610746565b60019150505b92915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163314806103725750335f9081526008602052604090205460ff165b6103975760405162461bcd60e51b815260040161038e90610e2f565b60405180910390fd5b6001600160a01b03165f908152600860205260409020805460ff19166001179055565b5f336103c7858285610753565b6103d28585856107a3565b506001949350505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163314806104225750335f9081526008602052604090205460ff165b61043e5760405162461bcd60e51b815260040161038e90610e2f565b6104508161044b836104c2565b61086f565b50565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163314806104985750335f9081526008602052604090205460ff165b6104b45760405162461bcd60e51b815260040161038e90610e2f565b6104be82826108a3565b5050565b6001600160a01b03165f9081526020819052604090205490565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163314806105215750335f9081526008602052604090205460ff165b61053d5760405162461bcd60e51b815260040161038e90610e2f565b6105488383836108d7565b505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163314806105925750335f9081526008602052604090205460ff165b6105ae5760405162461bcd60e51b815260040161038e90610e2f565b5f5b81518110156104be575f8282815181106105cc576105cc610e5c565b6020908102919091018101516001600160a01b03165f908152600790915260409020805460ff19166001179055508061060481610e84565b9150506105b0565b60606004805461029390610df7565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163314806106605750335f9081526008602052604090205460ff165b61067c5760405162461bcd60e51b815260040161038e90610e2f565b6001600160a01b03165f908152600760205260409020805460ff19169055565b5f6106a83384846107a3565b50600192915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163314806106f65750335f9081526008602052604090205460ff165b6107125760405162461bcd60e51b815260040161038e90610e2f565b6104be828261086f565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6105488383836001610934565b5f61075e848461071c565b90505f19811461079d578181101561078f57828183604051637dc7a0d960e11b815260040161038e93929190610e9c565b61079d84848484035f610934565b50505050565b6001600160a01b0383165f9081526007602052604090205460ff161580156107e357506001600160a01b0382165f9081526007602052604090205460ff16155b6107eb575f80fd5b5f61080a73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc230610a06565b9050806001600160a01b0316846001600160a01b031603610864576001600160a01b0383165f9081526008602052604090205460ff166108645742600555600680546001600160a01b0319166001600160a01b0385161790555b61079d8484846108d7565b6001600160a01b038216610898575f604051634b637e8f60e11b815260040161038e9190610db2565b6104be825f83610ae4565b6001600160a01b0382166108cc575f60405163ec442f0560e01b815260040161038e9190610db2565b6104be5f8383610ae4565b6001600160a01b038316610900575f604051634b637e8f60e11b815260040161038e9190610db2565b6001600160a01b038216610929575f60405163ec442f0560e01b815260040161038e9190610db2565b610548838383610ae4565b6001600160a01b03841661095d575f60405163e602df0560e01b815260040161038e9190610db2565b6001600160a01b038316610986575f604051634a1406b160e11b815260040161038e9190610db2565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561079d57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516109f891815260200190565b60405180910390a350505050565b5f805f836001600160a01b0316856001600160a01b031610610a29578385610a2c565b84845b604080516001600160601b0319606094851b81166020808401919091529390941b9093166034840152805180840360280181526048840182528051908301206001600160f81b03196068850152735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f60601b6069850152607d8401527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f609d808501919091528151808503909101815260bd9093019052815191012095945050505050565b6001600160a01b038316610b0e578060025f828254610b039190610ebd565b90915550610b6b9050565b6001600160a01b0383165f9081526020819052604090205481811015610b4d5783818360405163391434e360e21b815260040161038e93929190610e9c565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610b8757600280548290039055610ba5565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610bea91815260200190565b60405180910390a3505050565b5f6020808352835180828501525f5b81811015610c2257858101830151858201604001528201610c06565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610c58575f80fd5b919050565b5f8060408385031215610c6e575f80fd5b610c7783610c42565b946020939093013593505050565b5f60208284031215610c95575f80fd5b610c9e82610c42565b9392505050565b5f805f60608486031215610cb7575f80fd5b610cc084610c42565b9250610cce60208501610c42565b9150604084013590509250925092565b634e487b7160e01b5f52604160045260245ffd5b5f6020808385031215610d03575f80fd5b823567ffffffffffffffff80821115610d1a575f80fd5b818501915085601f830112610d2d575f80fd5b813581811115610d3f57610d3f610cde565b8060051b604051601f19603f83011681018181108582111715610d6457610d64610cde565b604052918252848201925083810185019188831115610d81575f80fd5b938501935b82851015610da657610d9785610c42565b84529385019392850192610d86565b98975050505050505050565b6001600160a01b0391909116815260200190565b5f8060408385031215610dd7575f80fd5b610de083610c42565b9150610dee60208401610c42565b90509250929050565b600181811c90821680610e0b57607f821691505b602082108103610e2957634e487b7160e01b5f52602260045260245ffd5b50919050565b6020808252601390820152721e5bdd48185c99481b9bdd08185b1b1bddd959606a1b604082015260600190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f60018201610e9557610e95610e70565b5060010190565b6001600160a01b039390931683526020830191909152604082015260600190565b8082018082111561032757610327610e7056fea2646970667358221220efbf5280c2d6a0464c0a2db9c834681396aeec4b351b34441fcb2a1a1d44938564736f6c63430008140033