ETH Price: $3,482.06 (+5.19%)

Contract

0xBF699784818F2AC61baadD0Af9F7F24107c5B3cD
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
128261972021-07-14 16:27:361231 days ago1626280056  Contract Creation0 ETH
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x612e8126...15C85aA5B
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
TieredCrowdfundProxy

Compiler Version
v0.8.5+commit.a4f2e591

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion, GNU GPLv3 license
/**
 *Submitted for verification at Etherscan.io on 2021-07-12
*/

// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.5;

/**
 * @title TieredCrowdfundStorage
 * @author MirrorXYZ
 */
contract TieredCrowdfundStorage {
    // The two states that this contract can exist in. "FUNDING" allows
    // contributors to add funds.
    enum Status {FUNDING, TRADING}

    // ============ Constants ============

    // The factor by which ETH contributions will multiply into crowdfund tokens.
    uint16 internal constant TOKEN_SCALE = 1000;
    uint256 internal constant REENTRANCY_NOT_ENTERED = 1;
    uint256 internal constant REENTRANCY_ENTERED = 2;
    uint8 public constant decimals = 18;

    // ============ Immutable Storage ============

    // The operator has a special role to change contract status.
    address payable public operator;
    address payable public fundingRecipient;
    // We add a hard cap to prevent raising more funds than deemed reasonable.
    uint256 public fundingCap;
    // The operator takes some equity in the tokens, represented by this percent.
    uint256 public operatorPercent;
    string public symbol;
    string public name;

    // ============ Mutable Storage ============

    // Represents the current state of the campaign.
    Status public status;
    uint256 internal reentrancy_status;

    // ============ Mutable ERC20 Attributes ============

    uint256 public totalSupply;
    mapping(address => uint256) public balanceOf;
    mapping(address => mapping(address => uint256)) public allowance;
    mapping(address => uint256) public nonces;

    // ============ Delegation logic ============
    address public logic;

    // ============ Tiered Campaigns ============
    // Address of the editions contract to purchase from.
    address public editions;
}


// File contracts/TieredCrowdfundProxy.sol


interface ITieredCrowdfundFactory {
    function mediaAddress() external returns (address);

    function logic() external returns (address);

    function editions() external returns (address);

    // ERC20 data.
    function parameters()
        external
        returns (
            address payable operator,
            address payable fundingRecipient,
            uint256 fundingCap,
            uint256 operatorPercent,
            string memory name,
            string memory symbol
        );
}

/**
 * @title TieredCrowdfundProxy
 * @author MirrorXYZ
 */
contract TieredCrowdfundProxy is TieredCrowdfundStorage {
    constructor() {
        logic = ITieredCrowdfundFactory(msg.sender).logic();
        editions = ITieredCrowdfundFactory(msg.sender).editions();
        // Crowdfund-specific data.
        (
            operator,
            fundingRecipient,
            fundingCap,
            operatorPercent,
            name,
            symbol
        ) = ITieredCrowdfundFactory(msg.sender).parameters();
        // Initialize mutable storage.
        status = Status.FUNDING;
    }

    fallback() external payable {
        address _impl = logic;
        assembly {
            let ptr := mload(0x40)
            calldatacopy(ptr, 0, calldatasize())
            let result := delegatecall(gas(), _impl, ptr, calldatasize(), 0, 0)
            let size := returndatasize()
            returndatacopy(ptr, 0, size)

            switch result
                case 0 {
                    revert(ptr, size)
                }
                default {
                    return(ptr, size)
                }
        }
    }

    receive() external payable {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"editions","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fundingCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fundingRecipient","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"logic","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"status","outputs":[{"internalType":"enum TieredCrowdfundStorage.Status","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x6080604052600436106100e15760003560e01c80637b4044a01161007f578063b8ddbcb311610059578063b8ddbcb3146102ca578063d7dfa0dd146102f7578063dd62ed3e14610324578063e3b2594f1461035c576100e8565b80637b4044a0146102725780637ecebe001461028857806395d89b41146102b5576100e8565b8063200d2ed2116100bb578063200d2ed2146101ca578063313ce567146101f1578063570ca7351461021857806370a0823114610245576100e8565b806306fdde031461012957806318160ddd146101545780631bb534ba14610178576100e8565b366100e857005b600c5460405173ffffffffffffffffffffffffffffffffffffffff9091169036600082376000803683855af43d806000843e818015610125578184f35b8184fd5b34801561013557600080fd5b5061013e610372565b60405161014b91906104cc565b60405180910390f35b34801561016057600080fd5b5061016a60085481565b60405190815260200161014b565b34801561018457600080fd5b506001546101a59073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161014b565b3480156101d657600080fd5b506006546101e49060ff1681565b60405161014b919061048b565b3480156101fd57600080fd5b50610206601281565b60405160ff909116815260200161014b565b34801561022457600080fd5b506000546101a59073ffffffffffffffffffffffffffffffffffffffff1681565b34801561025157600080fd5b5061016a610260366004610436565b60096020526000908152604090205481565b34801561027e57600080fd5b5061016a60035481565b34801561029457600080fd5b5061016a6102a3366004610436565b600b6020526000908152604090205481565b3480156102c157600080fd5b5061013e610400565b3480156102d657600080fd5b50600d546101a59073ffffffffffffffffffffffffffffffffffffffff1681565b34801561030357600080fd5b50600c546101a59073ffffffffffffffffffffffffffffffffffffffff1681565b34801561033057600080fd5b5061016a61033f366004610458565b600a60209081526000928352604080842090915290825290205481565b34801561036857600080fd5b5061016a60025481565b6005805461037f9061053f565b80601f01602080910402602001604051908101604052809291908181526020018280546103ab9061053f565b80156103f85780601f106103cd576101008083540402835291602001916103f8565b820191906000526020600020905b8154815290600101906020018083116103db57829003601f168201915b505050505081565b6004805461037f9061053f565b803573ffffffffffffffffffffffffffffffffffffffff8116811461043157600080fd5b919050565b60006020828403121561044857600080fd5b6104518261040d565b9392505050565b6000806040838503121561046b57600080fd5b6104748361040d565b91506104826020840161040d565b90509250929050565b60208101600283106104c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b600060208083528351808285015260005b818110156104f9578581018301518582016040015282016104dd565b8181111561050b576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b600181811c9082168061055357607f821691505b6020821081141561058d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b5091905056fea2646970667358221220cec644ee21cdccf7b828fbfa1f15b275c2bc29023800e6bf8a3b9dd1a5baf5fd64736f6c63430008050033

Deployed Bytecode Sourcemap

2456:1144:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3067:5;;3124:4;3118:11;3067:5;;;;;3164:14;3051:13;3118:11;3143:36;3258:1;3255;3239:14;3234:3;3227:5;3220;3207:53;3286:16;3339:4;3336:1;3331:3;3316:28;3367:6;3391:66;;;;3518:4;3513:3;3506:17;3391:66;3433:4;3428:3;3421:17;1124:18;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1388:26;;;;;;;;;;;;;;;;;;;2354:25:1;;;2342:2;2327:18;1388:26:0;2309:76:1;819:39:0;;;;;;;;;;-1:-1:-1;819:39:0;;;;;;;;;;;847:42:1;835:55;;;817:74;;805:2;790:18;819:39:0;772:125:1;1257:20:0;;;;;;;;;;-1:-1:-1;1257:20:0;;;;;;;;;;;;;;;:::i;616:35::-;;;;;;;;;;;;649:2;616:35;;;;;2562:4:1;2550:17;;;2532:36;;2520:2;2505:18;616:35:0;2487:87:1;781:31:0;;;;;;;;;;-1:-1:-1;781:31:0;;;;;;;;1421:44;;;;;;;;;;-1:-1:-1;1421:44:0;;;;;:::i;:::-;;;;;;;;;;;;;;1060:30;;;;;;;;;;;;;;;;1543:41;;;;;;;;;;-1:-1:-1;1543:41:0;;;;;:::i;:::-;;;;;;;;;;;;;;1097:20;;;;;;;;;;;;;:::i;1783:23::-;;;;;;;;;;-1:-1:-1;1783:23:0;;;;;;;;1644:20;;;;;;;;;;-1:-1:-1;1644:20:0;;;;;;;;1472:64;;;;;;;;;;-1:-1:-1;1472:64:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;945:25;;;;;;;;;;;;;;;;1124:18;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1097:20::-;;;;;;;:::i;14:196:1:-;82:20;;142:42;131:54;;121:65;;111:2;;200:1;197;190:12;111:2;63:147;;;:::o;215:186::-;274:6;327:2;315:9;306:7;302:23;298:32;295:2;;;343:1;340;333:12;295:2;366:29;385:9;366:29;:::i;:::-;356:39;285:116;-1:-1:-1;;;285:116:1:o;406:260::-;474:6;482;535:2;523:9;514:7;510:23;506:32;503:2;;;551:1;548;541:12;503:2;574:29;593:9;574:29;:::i;:::-;564:39;;622:38;656:2;645:9;641:18;622:38;:::i;:::-;612:48;;493:173;;;;;:::o;1149:393::-;1289:2;1274:18;;1322:1;1311:13;;1301:2;;1358:77;1355:1;1348:88;1459:4;1456:1;1449:15;1487:4;1484:1;1477:15;1301:2;1511:25;;;1256:286;:::o;1547:656::-;1659:4;1688:2;1717;1706:9;1699:21;1749:6;1743:13;1792:6;1787:2;1776:9;1772:18;1765:34;1817:1;1827:140;1841:6;1838:1;1835:13;1827:140;;;1936:14;;;1932:23;;1926:30;1902:17;;;1921:2;1898:26;1891:66;1856:10;;1827:140;;;1985:6;1982:1;1979:13;1976:2;;;2055:1;2050:2;2041:6;2030:9;2026:22;2022:31;2015:42;1976:2;-1:-1:-1;2119:2:1;2107:15;2124:66;2103:88;2088:104;;;;2194:2;2084:113;;1668:535;-1:-1:-1;;;1668:535:1:o;2579:437::-;2658:1;2654:12;;;;2701;;;2722:2;;2776:4;2768:6;2764:17;2754:27;;2722:2;2829;2821:6;2818:14;2798:18;2795:38;2792:2;;;2866:77;2863:1;2856:88;2967:4;2964:1;2957:15;2995:4;2992:1;2985:15;2792:2;;2634:382;;;:::o

Swarm Source

ipfs://cec644ee21cdccf7b828fbfa1f15b275c2bc29023800e6bf8a3b9dd1a5baf5fd

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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.