Contract 0x00f0fEED50926c27261dF37f7bCcC519d87525D0 1

 
 
Txn Hash
Method
Block
From
To
Value
0xa7fb1ae24c1e1436dc6d882834c5f44b8d5d11be2398fc87a7e4dc63ab1942fcOof Mint133923262021-10-10 17:45:20350 days 6 hrs ago0x1fc6e73075c584dbdda0e53449e2c944986b9a72 IN  0x00f0feed50926c27261df37f7bccc519d87525d00 Ether0.02022155 85.21623827
0x61e134350459cd67901c150f3834a630c5bb4527b18edaf9946be2c243c30b06Oof Mint129275072021-07-30 14:31:08422 days 9 hrs ago0xa71a51a4863a2f9c2a83a9feb284595020cc80a7 IN  0x00f0feed50926c27261df37f7bccc519d87525d00 Ether0.0076004935
0x0cd8411cdb87456d64d72692a71016a5839a5206e618bd4e5f84e9911441a3280x60806040128084132021-07-11 21:15:42441 days 3 hrs ago0x06471b73883b696149d57f635922ff5cab270623 IN  Create: OOFFactory0 Ether0.0129986813
[ Download CSV Export 
Latest 2 internal transactions
Parent Txn Hash Block From To Value
0xa7fb1ae24c1e1436dc6d882834c5f44b8d5d11be2398fc87a7e4dc63ab1942fc133923262021-10-10 17:45:20350 days 6 hrs ago 0x00f0feed50926c27261df37f7bccc519d87525d0  Contract Creation0 Ether
0x61e134350459cd67901c150f3834a630c5bb4527b18edaf9946be2c243c30b06129275072021-07-30 14:31:08422 days 9 hrs ago 0x00f0feed50926c27261df37f7bccc519d87525d0  Contract Creation0 Ether
[ Download CSV Export 
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
OOFFactory

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 2 : OOFFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
pragma abicoder v2;

import "./lib/CloneLibrary.sol";

/// @author Conjure Finance Team
/// @title ConjureFactory
contract OOFFactory {
    using CloneLibrary for address;

    event NewOOF(address oof);
    event FactoryOwnerChanged(address newowner);
    event NewConjureRouter(address newConjureRouter);
    event NewOOFImplementation(address newOOFImplementation);

    address payable public factoryOwner;
    address public oofImplementation;
    address payable public conjureRouter;

    constructor(
        address _oofImplementation,
        address payable _conjureRouter
    )
    {
        require(_oofImplementation != address(0), "No zero address for _oofImplementation");
        require(_conjureRouter != address(0), "No zero address for conjureRouter");

        factoryOwner = msg.sender;
        oofImplementation = _oofImplementation;
        conjureRouter = _conjureRouter;

        emit FactoryOwnerChanged(factoryOwner);
        emit NewOOFImplementation(oofImplementation);
        emit NewConjureRouter(conjureRouter);
    }

    function oofMint(
        address[] memory signers_,
        uint256 signerThreshold_,
        address payable payoutAddress_,
        uint256 subscriptionPassPrice_
    )
    external
    returns(address oof)
    {
        oof = oofImplementation.createClone();

        emit NewOOF(oof);

        IOOF(oof).initialize(
            signers_,
            signerThreshold_,
            payoutAddress_,
            subscriptionPassPrice_,
            address(this)
        );
    }

    /**
     * @dev gets the address of the current factory owner
     *
     * @return the address of the conjure router
    */
    function getConjureRouter() external view returns (address payable) {
        return conjureRouter;
    }

    /**
     * @dev lets the owner change the current conjure implementation
     *
     * @param oofImplementation_ the address of the new implementation
    */
    function newOOFImplementation(address oofImplementation_) external {
        require(msg.sender == factoryOwner, "Only factory owner");
        require(oofImplementation_ != address(0), "No zero address for oofImplementation_");

        oofImplementation = oofImplementation_;
        emit NewOOFImplementation(oofImplementation);
    }

    /**
     * @dev lets the owner change the current conjure router
     *
     * @param conjureRouter_ the address of the new router
    */
    function newConjureRouter(address payable conjureRouter_) external {
        require(msg.sender == factoryOwner, "Only factory owner");
        require(conjureRouter_ != address(0), "No zero address for conjureRouter_");

        conjureRouter = conjureRouter_;
        emit NewConjureRouter(conjureRouter);
    }

    /**
     * @dev lets the owner change the ownership to another address
     *
     * @param newOwner the address of the new owner
    */
    function newFactoryOwner(address payable newOwner) external {
        require(msg.sender == factoryOwner, "Only factory owner");
        require(newOwner != address(0), "No zero address for newOwner");

        factoryOwner = newOwner;
        emit FactoryOwnerChanged(factoryOwner);
    }

    /**
     * receive function to receive funds
    */
    receive() external payable {}
}

interface IOOF {
    function initialize(
        address[] memory signers_,
        uint256 signerThreshold_,
        address payable payoutAddress_,
        uint256 subscriptionPassPrice_,
        address factoryContract_
    ) external;
}

File 2 of 2 : CloneLibrary.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;

/*
The MIT License (MIT)
Copyright (c) 2018 Murray Software, LLC.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
//solhint-disable max-line-length
//solhint-disable no-inline-assembly


/**
 * EIP 1167 Proxy Deployment
 * Originally from https://github.com/optionality/clone-factory/
 */
library CloneLibrary {

    function createClone(address target) internal returns (address result) {
        // Reserve 55 bytes for the deploy code + 17 bytes as a buffer to prevent overwriting
        // other memory in the final mstore
        bytes memory cloneBuffer = new bytes(72);
        assembly {
            let clone := add(cloneBuffer, 32)
            mstore(clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(clone, 0x14), shl(96, target))
            mstore(add(clone, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            result := create(0, clone, 0x37)
        }
    }


    function isClone(address target, address query) internal view returns (bool result) {
        assembly {
            let clone := mload(0x40)
            mstore(clone, 0x363d3d373d3d3d363d7300000000000000000000000000000000000000000000)
            mstore(add(clone, 0xa), shl(96, target))
            mstore(add(clone, 0x1e), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)

            let other := add(clone, 0x40)
            extcodecopy(query, other, 0, 0x2d)
            result := and(
                eq(mload(clone), mload(other)),
                eq(mload(add(clone, 0xd)), mload(add(other, 0xd)))
            )
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_oofImplementation","type":"address"},{"internalType":"address payable","name":"_conjureRouter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newowner","type":"address"}],"name":"FactoryOwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newConjureRouter","type":"address"}],"name":"NewConjureRouter","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oof","type":"address"}],"name":"NewOOF","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOOFImplementation","type":"address"}],"name":"NewOOFImplementation","type":"event"},{"inputs":[],"name":"conjureRouter","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factoryOwner","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getConjureRouter","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"conjureRouter_","type":"address"}],"name":"newConjureRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newOwner","type":"address"}],"name":"newFactoryOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"oofImplementation_","type":"address"}],"name":"newOOFImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"oofImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"signers_","type":"address[]"},{"internalType":"uint256","name":"signerThreshold_","type":"uint256"},{"internalType":"address payable","name":"payoutAddress_","type":"address"},{"internalType":"uint256","name":"subscriptionPassPrice_","type":"uint256"}],"name":"oofMint","outputs":[{"internalType":"address","name":"oof","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b506040516200153338038062001533833981810160405281019062000037919062000324565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415620000aa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000a19062000491565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156200011d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200011490620004b3565b60405180910390fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fa678fcf08d9cdc9b47b42c20a6bd0ac7d1a4f40ba502c452fe1ed0c12dbb070360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660405162000230919062000474565b60405180910390a17fe1b3e6c7dad87174ccce9589ece8f7d0f92cfa3d86b775ee9dc61ad72f474484600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516200028b919062000457565b60405180910390a17f6e37ac5fa7e77d052e081845a5518ef49c89bba3e81736dcb42338c8a79e971d600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051620002e6919062000474565b60405180910390a150506200059e565b60008151905062000307816200056a565b92915050565b6000815190506200031e8162000584565b92915050565b600080604083850312156200033857600080fd5b60006200034885828601620002f6565b92505060206200035b858286016200030d565b9150509250929050565b62000370816200052e565b82525050565b6200038181620004e6565b82525050565b600062000396602683620004d5565b91507f4e6f207a65726f206164647265737320666f72205f6f6f66496d706c656d656e60008301527f746174696f6e00000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000620003fe602183620004d5565b91507f4e6f207a65726f206164647265737320666f7220636f6e6a757265526f75746560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006020820190506200046e600083018462000376565b92915050565b60006020820190506200048b600083018462000365565b92915050565b60006020820190508181036000830152620004ac8162000387565b9050919050565b60006020820190508181036000830152620004ce81620003ef565b9050919050565b600082825260208201905092915050565b6000620004f3826200050e565b9050919050565b600062000507826200050e565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200053b8262000542565b9050919050565b60006200054f8262000556565b9050919050565b600062000563826200050e565b9050919050565b6200057581620004e6565b81146200058157600080fd5b50565b6200058f81620004fa565b81146200059b57600080fd5b50565b610f8580620005ae6000396000f3fe60806040526004361061007e5760003560e01c80637e315e0b1161004e5780637e315e0b1461013457806388a7a6c71461015d578063a0e8239f14610186578063c216844a146101c357610085565b8062d938501461008a5780632ecf5812146100b55780634273601c146100e057806353b17b551461010b57610085565b3661008557005b600080fd5b34801561009657600080fd5b5061009f6101ee565b6040516100ac9190610ce8565b60405180910390f35b3480156100c157600080fd5b506100ca610214565b6040516100d79190610cb2565b60405180910390f35b3480156100ec57600080fd5b506100f561023a565b6040516101029190610ce8565b60405180910390f35b34801561011757600080fd5b50610132600480360381019061012d91906109d8565b61025e565b005b34801561014057600080fd5b5061015b60048036038101906101569190610a01565b6103f9565b005b34801561016957600080fd5b50610184600480360381019061017f9190610a01565b610591565b005b34801561019257600080fd5b506101ad60048036038101906101a89190610a2a565b61072c565b6040516101ba9190610cb2565b60405180910390f35b3480156101cf57600080fd5b506101d8610823565b6040516101e59190610ce8565b60405180910390f35b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146102ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102e390610dbd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561035c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161035390610d7d565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe1b3e6c7dad87174ccce9589ece8f7d0f92cfa3d86b775ee9dc61ad72f474484600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516103ee9190610cb2565b60405180910390a150565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610487576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161047e90610dbd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156104f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104ee90610d9d565b60405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fa678fcf08d9cdc9b47b42c20a6bd0ac7d1a4f40ba502c452fe1ed0c12dbb070360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516105869190610ccd565b60405180910390a150565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461061f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061690610dbd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561068f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068690610d5d565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f6e37ac5fa7e77d052e081845a5518ef49c89bba3e81736dcb42338c8a79e971d600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516107219190610ccd565b60405180910390a150565b600061076f600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661084d565b90507f0679cccf2611c52aa35da6241c0e7b3f07d7c87dd052ea1512a6e0cec46634c8816040516107a09190610cb2565b60405180910390a18073ffffffffffffffffffffffffffffffffffffffff16630f3c80b286868686306040518663ffffffff1660e01b81526004016107e9959493929190610d03565b600060405180830381600087803b15801561080357600080fd5b505af1158015610817573d6000803e3d6000fd5b50505050949350505050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080604867ffffffffffffffff8111801561086857600080fd5b506040519080825280601f01601f19166020018201604052801561089b5781602001600182028036833780820191505090505b509050602081017f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528360601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f092505050919050565b600061091661091184610e0e565b610ddd565b9050808382526020820190508285602086028201111561093557600080fd5b60005b85811015610965578161094b888261096f565b845260208401935060208301925050600181019050610938565b5050509392505050565b60008135905061097e81610f0a565b92915050565b60008135905061099381610f21565b92915050565b600082601f8301126109aa57600080fd5b81356109ba848260208601610903565b91505092915050565b6000813590506109d281610f38565b92915050565b6000602082840312156109ea57600080fd5b60006109f88482850161096f565b91505092915050565b600060208284031215610a1357600080fd5b6000610a2184828501610984565b91505092915050565b60008060008060808587031215610a4057600080fd5b600085013567ffffffffffffffff811115610a5a57600080fd5b610a6687828801610999565b9450506020610a77878288016109c3565b9350506040610a8887828801610984565b9250506060610a99878288016109c3565b91505092959194509250565b6000610ab18383610adb565b60208301905092915050565b610ac681610ed2565b82525050565b610ad581610e96565b82525050565b610ae481610e84565b82525050565b610af381610e84565b82525050565b6000610b0482610e4a565b610b0e8185610e62565b9350610b1983610e3a565b8060005b83811015610b4a578151610b318882610aa5565b9750610b3c83610e55565b925050600181019050610b1d565b5085935050505092915050565b6000610b64602283610e73565b91507f4e6f207a65726f206164647265737320666f7220636f6e6a757265526f75746560008301527f725f0000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000610bca602683610e73565b91507f4e6f207a65726f206164647265737320666f72206f6f66496d706c656d656e7460008301527f6174696f6e5f00000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000610c30601c83610e73565b91507f4e6f207a65726f206164647265737320666f72206e65774f776e6572000000006000830152602082019050919050565b6000610c70601283610e73565b91507f4f6e6c7920666163746f7279206f776e657200000000000000000000000000006000830152602082019050919050565b610cac81610ec8565b82525050565b6000602082019050610cc76000830184610aea565b92915050565b6000602082019050610ce26000830184610abd565b92915050565b6000602082019050610cfd6000830184610acc565b92915050565b600060a0820190508181036000830152610d1d8188610af9565b9050610d2c6020830187610ca3565b610d396040830186610acc565b610d466060830185610ca3565b610d536080830184610abd565b9695505050505050565b60006020820190508181036000830152610d7681610b57565b9050919050565b60006020820190508181036000830152610d9681610bbd565b9050919050565b60006020820190508181036000830152610db681610c23565b9050919050565b60006020820190508181036000830152610dd681610c63565b9050919050565b6000604051905081810181811067ffffffffffffffff82111715610e0457610e03610f08565b5b8060405250919050565b600067ffffffffffffffff821115610e2957610e28610f08565b5b602082029050602081019050919050565b6000819050602082019050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b6000610e8f82610ea8565b9050919050565b6000610ea182610ea8565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610edd82610ee4565b9050919050565b6000610eef82610ef6565b9050919050565b6000610f0182610ea8565b9050919050565bfe5b610f1381610e84565b8114610f1e57600080fd5b50565b610f2a81610e96565b8114610f3557600080fd5b50565b610f4181610ec8565b8114610f4c57600080fd5b5056fea2646970667358221220aae702fa11f56eb24a8f56b0f87fb4871b4e2e75fe116c4c3fec61195e7654da64736f6c6343000706003300000000000000000000000000f0feed50354e22370f3523897081e3d994dae60000000000000000000000000263df631fd4f5825c29f49e33d2e9ce710ecc24

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000f0feed50354e22370f3523897081e3d994dae60000000000000000000000000263df631fd4f5825c29f49e33d2e9ce710ecc24

-----Decoded View---------------
Arg [0] : _oofImplementation (address): 0x00f0feed50354e22370f3523897081e3d994dae6
Arg [1] : _conjureRouter (address): 0x0263df631fd4f5825c29f49e33d2e9ce710ecc24

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000000f0feed50354e22370f3523897081e3d994dae6
Arg [1] : 0000000000000000000000000263df631fd4f5825c29f49e33d2e9ce710ecc24


Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

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.