ETH Price: $2,074.87 (-1.22%)

Contract

0xb2bDfd43b0046292D4C2407cC93899CfB74A88d2
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Age:30D
Reset Filter

Transaction Hash
Method
Block
From
To

There are no matching entries

Update your filters to view other transactions

Age:30D
Reset Filter

Advanced mode:
Parent Transaction Hash Method Block
From
To

There are no matching entries

Update your filters to view other transactions

View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DMOMinter

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.9 <0.9.0;

interface IDMOCollection {
    function mint(uint256 _amount) external payable;
    function safeTransferFrom(address from, address to, uint256 tokenId) external payable;
    function totalSupply() external view returns (uint256);
}

interface IERC721Receiver  {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

contract DMOMinter is IERC721Receiver {
    IDMOCollection private tokenContract = IDMOCollection(0xa275Cf78325EdCbE081b7bFeff9Ce3955fFEd3F8);
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    /**
     * @dev Mint tokens to another address
     * @param _amount the amount of tokens to mint
     * @param _address the recipient address of the minted tokens
     */
    function mint(uint256 _amount, address _address) external payable {
        uint256 _lastTokenID = tokenContract.totalSupply(); 
        tokenContract.mint{value: msg.value}(_amount);
        for(uint256 i = 0; i < _amount; i++) {
            tokenContract.safeTransferFrom(address(this), _address, _lastTokenID + i);
        }
    }
    /**
     * @dev Handle the receipt of an NFT
     * @param operator The address which called `safeTransferFrom` function
     * @param from The address which previously owned the token
     * @param tokenId The NFT identifier which is being transferred
     * @param data Additional data with no specified format
     * @return bytes4 `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external override returns (bytes4) {       
        return _ERC721_RECEIVED;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"}]

6080604052600080546001600160a01b03191673a275cf78325edcbe081b7bfeff9ce3955ffed3f817905534801561003657600080fd5b50610387806100466000396000f3fe6080604052600436106100295760003560e01c8063150b7a021461002e57806394bf804d14610077575b600080fd5b34801561003a57600080fd5b5061005a610049366004610229565b630a85bd0160e11b95945050505050565b6040516001600160e01b0319909116815260200160405180910390f35b61008a6100853660046102c4565b61008c565b005b60008060009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061010491906102f0565b60005460405163140e25ad60e31b8152600481018690529192506001600160a01b03169063a0712d689034906024016000604051808303818588803b15801561014c57600080fd5b505af1158015610160573d6000803e3d6000fd5b505050505060005b83811015610207576000546001600160a01b03166342842e0e308561018d858761031f565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156101dc57600080fd5b505af11580156101f0573d6000803e3d6000fd5b5050505080806101ff90610338565b915050610168565b50505050565b80356001600160a01b038116811461022457600080fd5b919050565b60008060008060006080868803121561024157600080fd5b61024a8661020d565b94506102586020870161020d565b935060408601359250606086013567ffffffffffffffff8082111561027c57600080fd5b818801915088601f83011261029057600080fd5b81358181111561029f57600080fd5b8960208285010111156102b157600080fd5b9699959850939650602001949392505050565b600080604083850312156102d757600080fd5b823591506102e76020840161020d565b90509250929050565b60006020828403121561030257600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561033257610332610309565b92915050565b60006001820161034a5761034a610309565b506001019056fea2646970667358221220c6230c56763a28b6b319838034a30bb06caa0c78f29e2766687f1c4b0e98cf9564736f6c63430008130033

Deployed Bytecode

0x6080604052600436106100295760003560e01c8063150b7a021461002e57806394bf804d14610077575b600080fd5b34801561003a57600080fd5b5061005a610049366004610229565b630a85bd0160e11b95945050505050565b6040516001600160e01b0319909116815260200160405180910390f35b61008a6100853660046102c4565b61008c565b005b60008060009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061010491906102f0565b60005460405163140e25ad60e31b8152600481018690529192506001600160a01b03169063a0712d689034906024016000604051808303818588803b15801561014c57600080fd5b505af1158015610160573d6000803e3d6000fd5b505050505060005b83811015610207576000546001600160a01b03166342842e0e308561018d858761031f565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156101dc57600080fd5b505af11580156101f0573d6000803e3d6000fd5b5050505080806101ff90610338565b915050610168565b50505050565b80356001600160a01b038116811461022457600080fd5b919050565b60008060008060006080868803121561024157600080fd5b61024a8661020d565b94506102586020870161020d565b935060408601359250606086013567ffffffffffffffff8082111561027c57600080fd5b818801915088601f83011261029057600080fd5b81358181111561029f57600080fd5b8960208285010111156102b157600080fd5b9699959850939650602001949392505050565b600080604083850312156102d757600080fd5b823591506102e76020840161020d565b90509250929050565b60006020828403121561030257600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561033257610332610309565b92915050565b60006001820161034a5761034a610309565b506001019056fea2646970667358221220c6230c56763a28b6b319838034a30bb06caa0c78f29e2766687f1c4b0e98cf9564736f6c63430008130033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.