Robinhood MainnetChain ID: 4663
Contract detail

DeploymentFeeFactory

DeploymentFeeFactory is a verified Robinhood Chain smart contract at 0xa3d9fbd0…5df468a2 with 1617 indexed transactions.

Address type
Smart contract
Transactions
1617
First indexed block
#826928
Latest indexed block
#62250007
ERC-20 transfers
2
Emitted events
1646
Verification
Verified
Compiler
0.8.34+commit.80d5c536
Verification match
partial
Creation transaction
0xd4d6cc8d…f3e9259c
Created at block
#826928
Language
solidity
EVM version
default
License
none
Compiler optimization
Enabled · 200 runs
Related activity

Transactions

Verified contract

Contract source code

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import "./DeploymentFeeContract.sol";

contract DeploymentFeeFactory {
    address payable public feeRecipient = payable(0x7500A83DF2aF99B2755c47B6B321a8217d876a85);
    uint256 public constant DEPLOYMENT_FEE = 0.000062 ether;

    DeploymentFeeContract[] public deployedContracts;

    event ContractDeployed(address contractAddress, address owner);

    function deploy() external payable {
        require(msg.value >= DEPLOYMENT_FEE, "Insufficient deployment fee");

        // Fee transfer
        feeRecipient.transfer(DEPLOYMENT_FEE);

        // Deploy new contract instance
        DeploymentFeeContract newContract = new DeploymentFeeContract(msg.sender, feeRecipient);

        deployedContracts.push(newContract);

        emit ContractDeployed(address(newContract), msg.sender);
    }

    function getDeployedContracts() external view returns (DeploymentFeeContract[] memory) {
        return deployedContracts;
    }
}