ERC-20
Overview
Max Total Supply
4,997,850 KRAUSE
Holders
1,888
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
590.156107070010790256 KRAUSEValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
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"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162000c4a38038062000c4a8339810160408190526200003491620004c7565b336001600160a01b031663d7dfa0dd6040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156200007057600080fd5b505af115801562000085573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000ab9190620003f9565b601060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550336001600160a01b031663b8ddbcb36040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156200010d57600080fd5b505af115801562000122573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001489190620003f9565b601160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550336001600160a01b031663890357306040518163ffffffff1660e01b8152600401600060405180830381600087803b158015620001aa57600080fd5b505af1158015620001bf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620001e9919081019062000420565b600b819055600482905582516001906000906003908290600590829060079082906200021d9060069060208e01906200029c565b50508a5162000232919060208d01906200029c565b5050989098559790975580546101009790970a6001600160a01b038181021990981698881602979097179096555050600080546001600160a01b03199081169685169690961790555050600280549093169316929092179055506008805460ff1916905562000572565b828054620002aa9062000506565b90600052602060002090601f016020900481019282620002ce576000855562000319565b82601f10620002e957805160ff191683800117855562000319565b8280016001018555821562000319579182015b8281111562000319578251825591602001919060010190620002fc565b50620003279291506200032b565b5090565b5b808211156200032757600081556001016200032c565b600082601f8301126200035457600080fd5b81516001600160401b038082111562000371576200037162000543565b604051601f8301601f19908116603f011681019082821181831017156200039c576200039c62000543565b81604052838152602092508683858801011115620003b957600080fd5b600091505b83821015620003dd5785820183015181830184015290820190620003be565b83821115620003ef5760008385830101525b9695505050505050565b6000602082840312156200040c57600080fd5b8151620004198162000559565b9392505050565b600080600080600080600060e0888a0312156200043c57600080fd5b8751620004498162000559565b602089015160408a015160608b015192995090975095506001600160401b03808211156200047657600080fd5b620004848b838c0162000342565b955060808a01519150808211156200049b57600080fd5b50620004aa8a828b0162000342565b93505060a0880151915060c0880151905092959891949750929550565b60008060408385031215620004db57600080fd5b8251620004e88162000559565b6020840151909250620004fb8162000559565b809150509250929050565b600181811c908216806200051b57607f821691505b602082108114156200053d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146200056f57600080fd5b50565b6106c880620005826000396000f3fe6080604052600436106101485760003560e01c80637ecebe00116100c0578063cfd7b0df11610074578063dd62ed3e11610059578063dd62ed3e1461040d578063e3b2594f14610445578063f72655ef1461045b5761014f565b8063cfd7b0df146103b3578063d7dfa0dd146103e05761014f565b806395d89b41116100a557806395d89b411461035b578063a001ecdd14610370578063b8ddbcb3146103865761014f565b80637ecebe00146103185780638dc06c7f146103455761014f565b8063200d2ed211610117578063570ca735116100fc578063570ca735146102a857806370a08231146102d55780637b4044a0146103025761014f565b8063200d2ed21461025a578063313ce567146102815761014f565b806306fdde031461019057806318160ddd146101bb57806318a855c7146101df5780631bb534ba146102085761014f565b3661014f57005b60105460405173ffffffffffffffffffffffffffffffffffffffff9091169036600082376000803683855af43d806000843e81801561018c578184f35b8184fd5b34801561019c57600080fd5b506101a5610471565b6040516101b291906105cb565b60405180910390f35b3480156101c757600080fd5b506101d1600c5481565b6040519081526020016101b2565b3480156101eb57600080fd5b506101f561038481565b60405161ffff90911681526020016101b2565b34801561021457600080fd5b506001546102359073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b2565b34801561026657600080fd5b506008546102749060ff1681565b6040516101b2919061058a565b34801561028d57600080fd5b50610296601281565b60405160ff90911681526020016101b2565b3480156102b457600080fd5b506000546102359073ffffffffffffffffffffffffffffffffffffffff1681565b3480156102e157600080fd5b506101d16102f0366004610535565b600d6020526000908152604090205481565b34801561030e57600080fd5b506101d160055481565b34801561032457600080fd5b506101d1610333366004610535565b600f6020526000908152604090205481565b34801561035157600080fd5b506101d1600b5481565b34801561036757600080fd5b506101a56104ff565b34801561037c57600080fd5b506101d160045481565b34801561039257600080fd5b506011546102359073ffffffffffffffffffffffffffffffffffffffff1681565b3480156103bf57600080fd5b506002546102359073ffffffffffffffffffffffffffffffffffffffff1681565b3480156103ec57600080fd5b506010546102359073ffffffffffffffffffffffffffffffffffffffff1681565b34801561041957600080fd5b506101d1610428366004610557565b600e60209081526000928352604080842090915290825290205481565b34801561045157600080fd5b506101d160035481565b34801561046757600080fd5b506101d1600a5481565b6007805461047e9061063e565b80601f01602080910402602001604051908101604052809291908181526020018280546104aa9061063e565b80156104f75780601f106104cc576101008083540402835291602001916104f7565b820191906000526020600020905b8154815290600101906020018083116104da57829003601f168201915b505050505081565b6006805461047e9061063e565b803573ffffffffffffffffffffffffffffffffffffffff8116811461053057600080fd5b919050565b60006020828403121561054757600080fd5b6105508261050c565b9392505050565b6000806040838503121561056a57600080fd5b6105738361050c565b91506105816020840161050c565b90509250929050565b60208101600283106105c5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b600060208083528351808285015260005b818110156105f8578581018301518582016040015282016105dc565b8181111561060a576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b600181811c9082168061065257607f821691505b6020821081141561068c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b5091905056fea2646970667358221220b229364e7a9918553c008bca2249fc251b0662b166387bb68248fe64daee07b864736f6c6343000806003300000000000000000000000021a93be569666527dae0fdbfbe7715299dec1202000000000000000000000000b72229463d4cedfb0b2a7377912d48d0a2e75841
Deployed Bytecode
0x6080604052600436106101485760003560e01c80637ecebe00116100c0578063cfd7b0df11610074578063dd62ed3e11610059578063dd62ed3e1461040d578063e3b2594f14610445578063f72655ef1461045b5761014f565b8063cfd7b0df146103b3578063d7dfa0dd146103e05761014f565b806395d89b41116100a557806395d89b411461035b578063a001ecdd14610370578063b8ddbcb3146103865761014f565b80637ecebe00146103185780638dc06c7f146103455761014f565b8063200d2ed211610117578063570ca735116100fc578063570ca735146102a857806370a08231146102d55780637b4044a0146103025761014f565b8063200d2ed21461025a578063313ce567146102815761014f565b806306fdde031461019057806318160ddd146101bb57806318a855c7146101df5780631bb534ba146102085761014f565b3661014f57005b60105460405173ffffffffffffffffffffffffffffffffffffffff9091169036600082376000803683855af43d806000843e81801561018c578184f35b8184fd5b34801561019c57600080fd5b506101a5610471565b6040516101b291906105cb565b60405180910390f35b3480156101c757600080fd5b506101d1600c5481565b6040519081526020016101b2565b3480156101eb57600080fd5b506101f561038481565b60405161ffff90911681526020016101b2565b34801561021457600080fd5b506001546102359073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b2565b34801561026657600080fd5b506008546102749060ff1681565b6040516101b2919061058a565b34801561028d57600080fd5b50610296601281565b60405160ff90911681526020016101b2565b3480156102b457600080fd5b506000546102359073ffffffffffffffffffffffffffffffffffffffff1681565b3480156102e157600080fd5b506101d16102f0366004610535565b600d6020526000908152604090205481565b34801561030e57600080fd5b506101d160055481565b34801561032457600080fd5b506101d1610333366004610535565b600f6020526000908152604090205481565b34801561035157600080fd5b506101d1600b5481565b34801561036757600080fd5b506101a56104ff565b34801561037c57600080fd5b506101d160045481565b34801561039257600080fd5b506011546102359073ffffffffffffffffffffffffffffffffffffffff1681565b3480156103bf57600080fd5b506002546102359073ffffffffffffffffffffffffffffffffffffffff1681565b3480156103ec57600080fd5b506010546102359073ffffffffffffffffffffffffffffffffffffffff1681565b34801561041957600080fd5b506101d1610428366004610557565b600e60209081526000928352604080842090915290825290205481565b34801561045157600080fd5b506101d160035481565b34801561046757600080fd5b506101d1600a5481565b6007805461047e9061063e565b80601f01602080910402602001604051908101604052809291908181526020018280546104aa9061063e565b80156104f75780601f106104cc576101008083540402835291602001916104f7565b820191906000526020600020905b8154815290600101906020018083116104da57829003601f168201915b505050505081565b6006805461047e9061063e565b803573ffffffffffffffffffffffffffffffffffffffff8116811461053057600080fd5b919050565b60006020828403121561054757600080fd5b6105508261050c565b9392505050565b6000806040838503121561056a57600080fd5b6105738361050c565b91506105816020840161050c565b90509250929050565b60208101600283106105c5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b600060208083528351808285015260005b818110156105f8578581018301518582016040015282016105dc565b8181111561060a576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b600181811c9082168061065257607f821691505b6020821081141561068c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b5091905056fea2646970667358221220b229364e7a9918553c008bca2249fc251b0662b166387bb68248fe64daee07b864736f6c63430008060033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.