EthereumEthereum
0x01...72be
Department of Government Efficiency DOGE

Department of Government Efficiency DOGE

DGE

Token
Capitalización de Mercado
$1.00
 
Precio
2%
¡El código fuente de este contrato está verificado!
Metadatos del Contrato
Compilador
0.8.20+commit.a1b79de6
Idioma
Solidity
Código Fuente del Contrato
Archivo 1 de 1: TokenProxy.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

/*    

                    ##########                                            ########      #####               
                 ###### ## ######                                          ###    #   #####                 
                ######  ##  ## ###                                           ###   ######                   
               ##  ##   ##   ##  ##                                           ###   ###                     
              ##   #    ##    #   ##                                            ###   ##                    
               ##  ##   ##   ##  ##                                             ####   ##                   
                ### ##  ##  ## ###                                            #### ##    ##                 
                 ###### ## ######                                           #####    ##   ##                
                    ##########                                            #####       ########              
                                                                                                            
https://x.com/elonmusk/status/1832319390940881133          https://x.com/elonmusk/status/1832319390940881133


┌──────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│     __  __           _         _             _______         ______                      _               │
│    |  \/  |         | |       | |           |__   __|       |  ____|                    (_)              │
│    | \  / | __ _  __| | ___   | |__  _   _     | | __ ___  _| |__ __ _ _ __ _ __ ___     _ _ __   __ _   │
│    | |\/| |/ _` |/ _|` |/ _ \  | '_ \| | | |    | |/ _` | / /  __/ _` | '__| '_ ` _ \   | | '_ \ / _` |  │
│    | |  | | (_| | (_| |  __/  | |_) | |_| |    | | (_| |>  <| | | (_| | |  | | | | | |  | | | | | (_| |  │
│    |_|  |_|\__,_|\__,_|\___|  |_.__/ \__, |    |_|\__,_/_/\_\_|  \__,_|_|  |_| |_| |_|(_)_|_| |_|\__, |  │
│                                       __/ |                                                      __/ |   │
│                                      |___/                                                      |___/    │
│                                                                                                          │
│                                             taxfarm.ing                                                  │
│                                                                                                          │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────┘

*/


contract TokenProxy {
    // constant stored in runtime bytecode to ensure contract uniqueness and be able to verify it on etherscan with custom comments
    uint256 public constant uniqueId = 0x1000200000000000000000000000000000000000000000000000000000000014; // use a 32 bytes uint to ensure consistency of PUSH32 opcode, 1st byte to ensure 32 bytes length, 2 next bytes are used as a placeholder for factory version and the next 29 bytes are used as a placeholder for unique id

    address public immutable tokenLogic;

    constructor(address _tokenLogic) {
        tokenLogic = _tokenLogic;
    }

    // delegate functions call to the token logic contract
    fallback() external payable {
        address dest = tokenLogic;
        
        assembly {
            calldatacopy(0, 0, calldatasize())

            let result := delegatecall(gas(), dest, 0, calldatasize(), 0, 0)
            returndatacopy(0, 0, returndatasize())

            switch result
            case 0 {
                revert(0, returndatasize())
            }
            default {
                return(0, returndatasize())
            }
        }
    }
}
Configuraciones
{
  "compilationTarget": {
    "contracts/TokenProxy.sol": "TokenProxy"
  },
  "evmVersion": "shanghai",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "remappings": []
}
ABI
[{"inputs":[{"internalType":"address","name":"_tokenLogic","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"tokenLogic","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniqueId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]