Overview ERC20
PRICE
$0.056403

ON-CHAIN MARKET CAP n/a

Total Supply:
420,690,000.00 MAGA

Holders:
2
Profile Summary
Blockchain:
C-Chain (43114)


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

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Created At:
Fri, 23 Aug 2024 06:39:57 GMT
MAGA.sol
MAGA.sol
MAGA.sol


Contract ABI
[
  {
    "inputs": [],
    "stateMutability": "nonpayable",
    "type": "constructor"
  },
  {
    "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": "burner",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "value",
        "type": "uint256"
      }
    ],
    "name": "Burn",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "previousAdmin",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "newAdmin",
        "type": "address"
      }
    ],
    "name": "ControlTransferred",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "account",
        "type": "address"
      }
    ],
    "name": "RestrictionApplied",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "account",
        "type": "address"
      }
    ],
    "name": "RestrictionLifted",
    "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": [],
    "name": "TreasuryWallet",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "admin",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "",
        "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": "",
        "type": "address"
      }
    ],
    "name": "balanceOf",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "value",
        "type": "uint256"
      }
    ],
    "name": "burn",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "account",
        "type": "address"
      },
      {
        "internalType": "bool",
        "name": "status",
        "type": "bool"
      }
    ],
    "name": "controlAccess",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "decimals",
    "outputs": [
      {
        "internalType": "uint8",
        "name": "",
        "type": "uint8"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "distributeRewards",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "name",
    "outputs": [
      {
        "internalType": "string",
        "name": "",
        "type": "string"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "renounceControl",
    "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"
  }
]


Contract Creation Code
6080604052620000126012600a620001a0565b62000022906319133850620001b5565b6001553480156200003257600080fd5b50600080546001600160a01b0319163390811782556040519091907fa06677f7b64342b4bcbde423684dbdb5356acfe41ad0285b6ecbe6dc4bf427f2908290a360015433600090815260026020526040902055620001d7565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620000e2578160001904821115620000c657620000c66200008b565b80851615620000d457918102915b93841c9390800290620000a6565b509250929050565b600082620000fb575060016200019a565b816200010a575060006200019a565b81600181146200012357600281146200012e576200014e565b60019150506200019a565b60ff8411156200014257620001426200008b565b50506001821b6200019a565b5060208310610133831016604e8410600b841016171562000173575081810a6200019a565b6200017f8383620000a1565b80600019048211156200019657620001966200008b565b0290505b92915050565b6000620001ae8383620000ea565b9392505050565b6000816000190483118215151615620001d257620001d26200008b565b500290565b610c5680620001e76000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806342966c6811610097578063a9059cbb11610066578063a9059cbb14610251578063ca281fd914610264578063dd62ed3e1461026c578063f851a4401461029757600080fd5b806342966c68146101f35780636f4a2cd01461020657806370a082311461020e57806395d89b411461022e57600080fd5b806318160ddd116100d357806318160ddd1461019a57806323b872dd146101b1578063313ce567146101c457806338df2ca3146101de57600080fd5b806306fdde03146100fa578063095ea7b31461014457806311ffeaf214610167575b600080fd5b61012e6040518060400160405280601581526020017426b0b5b29020bb30bc1023b932b0ba1020b3b0b4b760591b81525081565b60405161013b9190610a24565b60405180910390f35b610157610152366004610a8e565b6102aa565b604051901515815260200161013b565b610182737c995b5891d7fd6203ff60bf976ef98b7b8e257c81565b6040516001600160a01b03909116815260200161013b565b6101a360015481565b60405190815260200161013b565b6101576101bf366004610ab8565b610317565b6101cc601281565b60405160ff909116815260200161013b565b6101f16101ec366004610af4565b6103d6565b005b6101f1610201366004610b30565b6104a7565b6101f16104de565b6101a361021c366004610b49565b60026020526000908152604090205481565b61012e604051806040016040528060048152602001634d41474160e01b81525081565b61015761025f366004610a8e565b61053f565b6101f1610555565b6101a361027a366004610b6b565b600360209081526000928352604080842090915290825290205481565b600054610182906001600160a01b031681565b3360008181526003602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906103059086815260200190565b60405180910390a35060015b92915050565b6001600160a01b03831660009081526003602090815260408083203384529091528120548211156103885760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b60448201526064015b60405180910390fd5b6001600160a01b0384166000908152600360209081526040808320338452909152812080548492906103bb908490610bb4565b909155506103cc90508484846105c9565b5060019392505050565b33737c995b5891d7fd6203ff60bf976ef98b7b8e257c146104095760405162461bcd60e51b815260040161037f90610bc7565b6001600160a01b0382166000908152600460205260409020805460ff1916821580159190911790915561046e576040516001600160a01b038316907fcd9de7d458f0a1368977a0bce448080bfb96c91eaac314540ee1cf9f19b1105590600090a25050565b6040516001600160a01b038316907fcf45c8124ab19137fab18d559b59589a8f58656d16840b554afb414c06ebd9be90600090a25b5050565b6000546001600160a01b031633146104d15760405162461bcd60e51b815260040161037f90610bc7565b6104db338261078c565b50565b33737c995b5891d7fd6203ff60bf976ef98b7b8e257c146105115760405162461bcd60e51b815260040161037f90610bc7565b61053d737c995b5891d7fd6203ff60bf976ef98b7b8e257c600154600a6105389190610bee565b6108be565b565b600061054c3384846105c9565b50600192915050565b6000546001600160a01b0316331461057f5760405162461bcd60e51b815260040161037f90610bc7565b600080546040516001600160a01b03909116907fa06677f7b64342b4bcbde423684dbdb5356acfe41ad0285b6ecbe6dc4bf427f2908390a3600080546001600160a01b0319169055565b6001600160a01b03831661061f5760405162461bcd60e51b815260206004820152601e60248201527f5472616e736665722066726f6d20746865207a65726f20616464726573730000604482015260640161037f565b6001600160a01b0382166106755760405162461bcd60e51b815260206004820152601c60248201527f5472616e7366657220746f20746865207a65726f206164647265737300000000604482015260640161037f565b6001600160a01b0383166000908152600260205260409020548111156106d45760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b604482015260640161037f565b6106de8383610996565b6001600160a01b03831660009081526002602052604081208054839290610706908490610bb4565b90915550506001600160a01b03821660009081526002602052604081208054839290610733908490610c0d565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161077f91815260200190565b60405180910390a3505050565b6001600160a01b0382166000908152600260205260409020548111156107f45760405162461bcd60e51b815260206004820152601d60248201527f496e73756666696369656e742062616c616e636520666f72206275726e000000604482015260640161037f565b6001600160a01b0382166000908152600260205260408120805483929061081c908490610bb4565b9250508190555080600160008282546108359190610bb4565b90915550506040518181526001600160a01b038316907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59060200160405180910390a26040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6001600160a01b0382166109145760405162461bcd60e51b815260206004820152601860248201527f4d696e7420746f20746865207a65726f20616464726573730000000000000000604482015260640161037f565b80600160008282546109269190610c0d565b90915550506001600160a01b03821660009081526002602052604081208054839290610953908490610c0d565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016108b2565b6001600160a01b03821660009081526004602052604090205460ff161580156109d857506001600160a01b03811660009081526004602052604090205460ff16155b6104a35760405162461bcd60e51b815260206004820152601b60248201527f52657374726963746564206164647265737320696e766f6c7665640000000000604482015260640161037f565b600060208083528351808285015260005b81811015610a5157858101830151858201604001528201610a35565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610a8957600080fd5b919050565b60008060408385031215610aa157600080fd5b610aaa83610a72565b946020939093013593505050565b600080600060608486031215610acd57600080fd5b610ad684610a72565b9250610ae460208501610a72565b9150604084013590509250925092565b60008060408385031215610b0757600080fd5b610b1083610a72565b915060208301358015158114610b2557600080fd5b809150509250929050565b600060208284031215610b4257600080fd5b5035919050565b600060208284031215610b5b57600080fd5b610b6482610a72565b9392505050565b60008060408385031215610b7e57600080fd5b610b8783610a72565b9150610b9560208401610a72565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561031157610311610b9e565b6020808252600d908201526c1058d8d95cdcc811195b9a5959609a1b604082015260600190565b6000816000190483118215151615610c0857610c08610b9e565b500290565b8082018082111561031157610311610b9e56fea26469706673582212207cdd5a7a56d3c42dd5dde64c605ed1b10da8bb087e513cebc8b5a0255eb3bfc064736f6c63430008100033