Overview
ETH Balance
0.3 ETH
Eth Value
$691.02 (@ $2,303.42/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
14677458 | 862 days ago | Contract Creation | 0 ETH |
Loading...
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.
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x320d8376...97997f930 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
CrowdfundWithPodiumEditionsProxy
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 2000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.8.6; import {CrowdfundWithPodiumEditionsStorage} from "./CrowdfundWithPodiumEditionsStorage.sol"; interface ICrowdfundWithPodiumEditionsFactory { function mediaAddress() external returns (address); function logic() external returns (address); function editions() external returns (address); // ERC20 data. function parameters() external returns ( address payable fundingRecipient, uint256 fundingCap, uint256 operatorPercent, string memory name, string memory symbol, uint256 feePercentage, uint256 podiumDuration ); } /** * @title CrowdfundWithPodiumEditionsProxy * @author MirrorXYZ */ contract CrowdfundWithPodiumEditionsProxy is CrowdfundWithPodiumEditionsStorage { constructor(address treasuryConfig_, address payable operator_) { logic = ICrowdfundWithPodiumEditionsFactory(msg.sender).logic(); editions = ICrowdfundWithPodiumEditionsFactory(msg.sender).editions(); // Crowdfund-specific data. ( fundingRecipient, fundingCap, operatorPercent, name, symbol, feePercentage, podiumDuration ) = ICrowdfundWithPodiumEditionsFactory(msg.sender).parameters(); operator = operator_; treasuryConfig = treasuryConfig_; // 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 {} }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.8.6; /** * @title CrowdfundWithPodiumEditionsStorage * @author MirrorXYZ */ contract CrowdfundWithPodiumEditionsStorage { // 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; uint16 public constant PODIUM_TIME_BUFFER = 900; 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; address public treasuryConfig; // We add a hard cap to prevent raising more funds than deemed reasonable. uint256 public fundingCap; uint256 public feePercentage; // 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; // Podium storage uint256 public podiumStartTime; uint256 public podiumDuration; // ============ 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; }
{ "optimizer": { "enabled": true, "runs": 2000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"treasuryConfig_","type":"address"},{"internalType":"address payable","name":"operator_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"PODIUM_TIME_BUFFER","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"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":"feePercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"podiumDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"podiumStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"status","outputs":[{"internalType":"enum CrowdfundWithPodiumEditionsStorage.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"},{"inputs":[],"name":"treasuryConfig","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Deployed Bytecode
0x6080604052600436106101485760003560e01c80637ecebe00116100c0578063cfd7b0df11610074578063dd62ed3e11610059578063dd62ed3e1461040d578063e3b2594f14610445578063f72655ef1461045b5761014f565b8063cfd7b0df146103b3578063d7dfa0dd146103e05761014f565b806395d89b41116100a557806395d89b411461035b578063a001ecdd14610370578063b8ddbcb3146103865761014f565b80637ecebe00146103185780638dc06c7f146103455761014f565b8063200d2ed211610117578063570ca735116100fc578063570ca735146102a857806370a08231146102d55780637b4044a0146103025761014f565b8063200d2ed21461025a578063313ce567146102815761014f565b806306fdde031461019057806318160ddd146101bb57806318a855c7146101df5780631bb534ba146102085761014f565b3661014f57005b60105460405173ffffffffffffffffffffffffffffffffffffffff9091169036600082376000803683855af43d806000843e81801561018c578184f35b8184fd5b34801561019c57600080fd5b506101a5610471565b6040516101b291906105cb565b60405180910390f35b3480156101c757600080fd5b506101d1600c5481565b6040519081526020016101b2565b3480156101eb57600080fd5b506101f561038481565b60405161ffff90911681526020016101b2565b34801561021457600080fd5b506001546102359073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b2565b34801561026657600080fd5b506008546102749060ff1681565b6040516101b2919061058a565b34801561028d57600080fd5b50610296601281565b60405160ff90911681526020016101b2565b3480156102b457600080fd5b506000546102359073ffffffffffffffffffffffffffffffffffffffff1681565b3480156102e157600080fd5b506101d16102f0366004610535565b600d6020526000908152604090205481565b34801561030e57600080fd5b506101d160055481565b34801561032457600080fd5b506101d1610333366004610535565b600f6020526000908152604090205481565b34801561035157600080fd5b506101d1600b5481565b34801561036757600080fd5b506101a56104ff565b34801561037c57600080fd5b506101d160045481565b34801561039257600080fd5b506011546102359073ffffffffffffffffffffffffffffffffffffffff1681565b3480156103bf57600080fd5b506002546102359073ffffffffffffffffffffffffffffffffffffffff1681565b3480156103ec57600080fd5b506010546102359073ffffffffffffffffffffffffffffffffffffffff1681565b34801561041957600080fd5b506101d1610428366004610557565b600e60209081526000928352604080842090915290825290205481565b34801561045157600080fd5b506101d160035481565b34801561046757600080fd5b506101d1600a5481565b6007805461047e9061063e565b80601f01602080910402602001604051908101604052809291908181526020018280546104aa9061063e565b80156104f75780601f106104cc576101008083540402835291602001916104f7565b820191906000526020600020905b8154815290600101906020018083116104da57829003601f168201915b505050505081565b6006805461047e9061063e565b803573ffffffffffffffffffffffffffffffffffffffff8116811461053057600080fd5b919050565b60006020828403121561054757600080fd5b6105508261050c565b9392505050565b6000806040838503121561056a57600080fd5b6105738361050c565b91506105816020840161050c565b90509250929050565b60208101600283106105c5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b600060208083528351808285015260005b818110156105f8578581018301518582016040015282016105dc565b8181111561060a576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b600181811c9082168061065257607f821691505b6020821081141561068c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b5091905056fea2646970667358221220b229364e7a9918553c008bca2249fc251b0662b166387bb68248fe64daee07b864736f6c63430008060033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,303.42 | 0.3 | $691.02 |
Loading...
Loading
[ Download: CSV Export ]
[ 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.