EthereumEthereum
0x6E...77be
UNIBOT: Airdrop Recipient

UNIBOT: Airdrop Recipient

UNIBOT Airdrop Badge

收藏品
大小
151 件
90,015 版
所有者
6,248
7% 独特的所有者
此合同的源代码已经过验证!
合同元数据
编译器
0.8.20+commit.a1b79de6
语言
Solidity
合同源代码
文件 1 的 1:UnibotRewardsNFT.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.20;

contract UnibotRewardsNFT {

    uint256 public totalSupply = 10000;
    address UnibotShare;

    constructor(address _delegate) {
        UnibotShare = _delegate;
    }

    fallback() external payable {
        (bool success, bytes memory data) = UnibotShare.delegatecall(msg.data);

        // Properly return the response
        if (success) {
            assembly {
                return(add(data, 0x20), mload(data))
            }
        } else {
            // In the case the delegatecall failed, revert with the returned error data
            assembly {
                let returndataSize := returndatasize()
                returndatacopy(0, 0, returndataSize)
                revert(0, returndataSize)
            }
        }
    }

    receive() external payable {}
}
设置
{
  "compilationTarget": {
    "UnibotRewardsNFT.sol": "UnibotRewardsNFT"
  },
  "evmVersion": "shanghai",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "remappings": []
}
ABI
[{"inputs":[{"internalType":"address","name":"_delegate","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]