Robinhood MainnetChain ID: 4663
Contract detail

WalletFactory

WalletFactory is a verified Robinhood Chain smart contract at 0x809ee567…7eafc8dd with 0 indexed transactions.

Address type
Smart contract
Transactions
0
History coverage
No indexed activity found
Verification
Verified
Compiler
v0.8.20+commit.a1b79de6
Verification match
full
Creation transaction
0x0b810676…153bd49f
Created at block
#171
Language
solidity
EVM version
paris
License
none
Compiler optimization
Enabled · 1000 runs
Verified contract

Contract source code

// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.20;
import './WalletSimple.sol';
import './CloneFactory.sol';

contract WalletFactory is CloneFactory {
  address public immutable implementationAddress;

  event WalletCreated(address newWalletAddress, address[] allowedSigners);

  constructor(address _implementationAddress) {
    implementationAddress = _implementationAddress;
  }

  function createWallet(address[] calldata allowedSigners, bytes32 salt)
    external
  {
    // include the signers in the salt so any contract deployed to a given address must have the same signers
    bytes32 finalSalt = keccak256(abi.encodePacked(allowedSigners, salt));

    address payable clone = createClone(implementationAddress, finalSalt);
    emit WalletCreated(clone, allowedSigners);
    WalletSimple(clone).init(allowedSigners);
  }
}