Overview ERC20
PRICE
n/a

ON-CHAIN MARKET CAP n/a

Total Supply:
300,000,000,000.00 🧲

Holders:
33,986
Profile Summary
Blockchain:
Base (8453)


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

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
No

Created At:
Fri, 18 Oct 2024 08:49:51 GMT
Bagnet.sol
Bagnet.sol
Bagnet.sol
Magnet.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"
  },
  {
    "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": "pure",
    "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
608060405234801561000f575f80fd5b5073426f646875aa0f43dee96cb765083eac7cfc0d1e6040518060400160405280600c81526020017f4241534544204d41474e455400000000000000000000000000000000000000008152506040518060400160405280600481526020017ff09fa7b20000000000000000000000000000000000000000000000000000000081525081600390816100a09190610728565b5080600490816100b09190610728565b5050505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610123575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161011a9190610836565b60405180910390fd5b6101328161018560201b60201c565b5061018073426f646875aa0f43dee96cb765083eac7cfc0d1e61015961024860201b60201c565b600a61016591906109b7565b6445d964b8006101759190610a01565b61025060201b60201c565b610ad2565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f6012905090565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036102c0575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016102b79190610836565b60405180910390fd5b6102d15f83836102d560201b60201c565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610325578060025f8282546103199190610a42565b925050819055506103f3565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156103ae578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016103a593929190610a84565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361043a578060025f8282540392505081905550610484565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516104e19190610ab9565b60405180910390a3505050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061056957607f821691505b60208210810361057c5761057b610525565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026105de7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826105a3565b6105e886836105a3565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f61062c61062761062284610600565b610609565b610600565b9050919050565b5f819050919050565b61064583610612565b61065961065182610633565b8484546105af565b825550505050565b5f90565b61066d610661565b61067881848461063c565b505050565b5b8181101561069b576106905f82610665565b60018101905061067e565b5050565b601f8211156106e0576106b181610582565b6106ba84610594565b810160208510156106c9578190505b6106dd6106d585610594565b83018261067d565b50505b505050565b5f82821c905092915050565b5f6107005f19846008026106e5565b1980831691505092915050565b5f61071883836106f1565b9150826002028217905092915050565b610731826104ee565b67ffffffffffffffff81111561074a576107496104f8565b5b6107548254610552565b61075f82828561069f565b5f60209050601f831160018114610790575f841561077e578287015190505b610788858261070d565b8655506107ef565b601f19841661079e86610582565b5f5b828110156107c5578489015182556001820191506020850194506020810190506107a0565b868310156107e257848901516107de601f8916826106f1565b8355505b6001600288020188555050505b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610820826107f7565b9050919050565b61083081610816565b82525050565b5f6020820190506108495f830184610827565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f8160011c9050919050565b5f808291508390505b60018511156108d1578086048111156108ad576108ac61084f565b5b60018516156108bc5780820291505b80810290506108ca8561087c565b9450610891565b94509492505050565b5f826108e957600190506109a4565b816108f6575f90506109a4565b816001811461090c576002811461091657610945565b60019150506109a4565b60ff8411156109285761092761084f565b5b8360020a91508482111561093f5761093e61084f565b5b506109a4565b5060208310610133831016604e8410600b841016171561097a5782820a9050838111156109755761097461084f565b5b6109a4565b6109878484846001610888565b9250905081840481111561099e5761099d61084f565b5b81810290505b9392505050565b5f60ff82169050919050565b5f6109c182610600565b91506109cc836109ab565b92506109f97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84846108da565b905092915050565b5f610a0b82610600565b9150610a1683610600565b9250828202610a2481610600565b91508282048414831517610a3b57610a3a61084f565b5b5092915050565b5f610a4c82610600565b9150610a5783610600565b9250828201905080821115610a6f57610a6e61084f565b5b92915050565b610a7e81610600565b82525050565b5f606082019050610a975f830186610827565b610aa46020830185610a75565b610ab16040830184610a75565b949350505050565b5f602082019050610acc5f830184610a75565b92915050565b61104f80610adf5f395ff3fe608060405234801561000f575f80fd5b50600436106100b2575f3560e01c8063715018a61161006f578063715018a6146101a05780638da5cb5b146101aa57806395d89b41146101c8578063a9059cbb146101e6578063dd62ed3e14610216578063f2fde38b14610246576100b2565b806306fdde03146100b6578063095ea7b3146100d457806318160ddd1461010457806323b872dd14610122578063313ce5671461015257806370a0823114610170575b5f80fd5b6100be610262565b6040516100cb9190610cc8565b60405180910390f35b6100ee60048036038101906100e99190610d79565b6102f2565b6040516100fb9190610dd1565b60405180910390f35b61010c610314565b6040516101199190610df9565b60405180910390f35b61013c60048036038101906101379190610e12565b61031d565b6040516101499190610dd1565b60405180910390f35b61015a61034b565b6040516101679190610e7d565b60405180910390f35b61018a60048036038101906101859190610e96565b610353565b6040516101979190610df9565b60405180910390f35b6101a8610398565b005b6101b26103ab565b6040516101bf9190610ed0565b60405180910390f35b6101d06103d3565b6040516101dd9190610cc8565b60405180910390f35b61020060048036038101906101fb9190610d79565b610463565b60405161020d9190610dd1565b60405180910390f35b610230600480360381019061022b9190610ee9565b610485565b60405161023d9190610df9565b60405180910390f35b610260600480360381019061025b9190610e96565b610507565b005b60606003805461027190610f54565b80601f016020809104026020016040519081016040528092919081815260200182805461029d90610f54565b80156102e85780601f106102bf576101008083540402835291602001916102e8565b820191905f5260205f20905b8154815290600101906020018083116102cb57829003601f168201915b5050505050905090565b5f806102fc61058b565b9050610309818585610592565b600191505092915050565b5f600254905090565b5f8061032761058b565b90506103348582856105a4565b61033f858585610636565b60019150509392505050565b5f6012905090565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6103a0610726565b6103a95f6107ad565b565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546103e290610f54565b80601f016020809104026020016040519081016040528092919081815260200182805461040e90610f54565b80156104595780601f1061043057610100808354040283529160200191610459565b820191905f5260205f20905b81548152906001019060200180831161043c57829003601f168201915b5050505050905090565b5f8061046d61058b565b905061047a818585610636565b600191505092915050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b61050f610726565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361057f575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016105769190610ed0565b60405180910390fd5b610588816107ad565b50565b5f33905090565b61059f8383836001610870565b505050565b5f6105af8484610485565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146106305781811015610621578281836040517ffb8f41b200000000000000000000000000000000000000000000000000000000815260040161061893929190610f84565b60405180910390fd5b61062f84848484035f610870565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036106a6575f6040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260040161069d9190610ed0565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610716575f6040517fec442f0500000000000000000000000000000000000000000000000000000000815260040161070d9190610ed0565b60405180910390fd5b610721838383610a3f565b505050565b61072e61058b565b73ffffffffffffffffffffffffffffffffffffffff1661074c6103ab565b73ffffffffffffffffffffffffffffffffffffffff16146107ab5761076f61058b565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016107a29190610ed0565b60405180910390fd5b565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036108e0575f6040517fe602df050000000000000000000000000000000000000000000000000000000081526004016108d79190610ed0565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610950575f6040517f94280d620000000000000000000000000000000000000000000000000000000081526004016109479190610ed0565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015610a39578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610a309190610df9565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a8f578060025f828254610a839190610fe6565b92505081905550610b5d565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015610b18578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401610b0f93929190610f84565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ba4578060025f8282540392505081905550610bee565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610c4b9190610df9565b60405180910390a3505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f610c9a82610c58565b610ca48185610c62565b9350610cb4818560208601610c72565b610cbd81610c80565b840191505092915050565b5f6020820190508181035f830152610ce08184610c90565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610d1582610cec565b9050919050565b610d2581610d0b565b8114610d2f575f80fd5b50565b5f81359050610d4081610d1c565b92915050565b5f819050919050565b610d5881610d46565b8114610d62575f80fd5b50565b5f81359050610d7381610d4f565b92915050565b5f8060408385031215610d8f57610d8e610ce8565b5b5f610d9c85828601610d32565b9250506020610dad85828601610d65565b9150509250929050565b5f8115159050919050565b610dcb81610db7565b82525050565b5f602082019050610de45f830184610dc2565b92915050565b610df381610d46565b82525050565b5f602082019050610e0c5f830184610dea565b92915050565b5f805f60608486031215610e2957610e28610ce8565b5b5f610e3686828701610d32565b9350506020610e4786828701610d32565b9250506040610e5886828701610d65565b9150509250925092565b5f60ff82169050919050565b610e7781610e62565b82525050565b5f602082019050610e905f830184610e6e565b92915050565b5f60208284031215610eab57610eaa610ce8565b5b5f610eb884828501610d32565b91505092915050565b610eca81610d0b565b82525050565b5f602082019050610ee35f830184610ec1565b92915050565b5f8060408385031215610eff57610efe610ce8565b5b5f610f0c85828601610d32565b9250506020610f1d85828601610d32565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680610f6b57607f821691505b602082108103610f7e57610f7d610f27565b5b50919050565b5f606082019050610f975f830186610ec1565b610fa46020830185610dea565b610fb16040830184610dea565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f610ff082610d46565b9150610ffb83610d46565b925082820190508082111561101357611012610fb9565b5b9291505056fea2646970667358221220e2e8eed35b685ccc55ac1bccfe2c9e138740a36c8e2e5788f52e8795c083097464736f6c634300081a0033