Contract 0x7D0CA0957077510FFb91e443DE43A317E9cd3171

 
 
Txn Hash
Method
Block
From
To
Value
0x932e1416a51b1aeeacbde6c3f23f85148802255d37fc1659bceb76b2d4a23419Claim136134762021-11-14 10:35:06315 days 8 hrs agoENS Name schmearmybagel.eth IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.00448278 89.3840291
0x8e64909fccba1756158a433ad892283c0b26b960b189355fcf01605cda50bf75Claim94587932020-02-11 1:51:34957 days 16 hrs ago0x5597285bbe81baf351e2c0884e9a5f4416958862 IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.000162725
0xebeff3e0588bd2b82e762511733b7fa0b8045fece478437ea1af04a9ad392b47Claim90869652019-12-11 4:48:591019 days 13 hrs ago0x29a402c1c541b05704746aa69d159c8b67d36d3e IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.000162725
0x87bb9d54bdad791ba45ad87ff58bd277651eed8b61c4e764158864850c818678Claim87883002019-10-22 5:03:021069 days 13 hrs ago0x4ddb7fabcbd38e646457fa80bfce4d3551ff6801 IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.000267988
0x74664b67bb9d6d100dcc5043232b7233691840608a84a702c3d7258b4005ea41Claim86739122019-10-04 5:56:071087 days 12 hrs ago0x2527fedd0eb265b82126c7fec1ede54199302ecd IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.0006699620
0x3dfa6fd6427552b84245f6798df3e8a5ddc0890cfa3bcf6fa3e5a9a780a5f198Claim85884222019-09-20 20:50:061100 days 21 hrs ago0xb7fee1b1157a0c2c8e556209fcaa590541c4078c IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.0004574513.65625
0xc848bbf3368a3eb37795514a36b24062cbf00d0116a0bab7a9bb214f7d8e944fFinalize85877372019-09-20 18:08:381101 days 34 mins ago0x4b5f88e2ba45da7682349a376d3143fbdb7ac1cf IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.0020600319
0xbd990d986534f6aa16f2bffc4aa989743c0d90063fed19f6376f75e454fcc4dcFinalize85876472019-09-20 17:48:101101 days 54 mins ago0x4b5f88e2ba45da7682349a376d3143fbdb7ac1cf IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.00086419
0xf71751e34478bdb368b0db299824c0a2d0230b6d087340ede352b36291c49916Finalize85841642019-09-20 5:02:021101 days 13 hrs ago0x73d2548a9e19cbeb4b361ba963ad4977e413787d IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.0011004724.2
0xc261b62df881e164865c22dafec4737ef2f992df23056e321c7e694e9d29c932Finalize85778812019-09-19 5:14:281102 days 13 hrs ago0x73d2548a9e19cbeb4b361ba963ad4977e413787d IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.0009458520.8
0xb65de54b20226115fcf7298afcd7f78b9479fa54810d5d0b75994f85ae2ba407Finalize85746632019-09-18 17:07:231103 days 1 hr ago0x73d2548a9e19cbeb4b361ba963ad4977e413787d IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.0009094820
0xd027249b2fd5af013ca7663a76ff96ed196b142400c1dbb14b97af7681842bb3Finalize85746632019-09-18 17:07:231103 days 1 hr ago0x73d2548a9e19cbeb4b361ba963ad4977e413787d IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.0004547410
0x38e11471621316bb323d304276ad36598458fe5bb3155b3a2cb59435e2376f94Finalize85614382019-09-16 16:00:561105 days 2 hrs ago0x73d2548a9e19cbeb4b361ba963ad4977e413787d IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.0004592810.1
0xe692c572546b7b4b831738264166b46bd7ead8adabf68c68e9c5237fa0e945c2Finalize85523382019-09-15 5:45:271106 days 12 hrs ago0x73d2548a9e19cbeb4b361ba963ad4977e413787d IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.0004592810.1
0x5b70b433f3a2733fbaa724c18b21d6f3c393b45436dac251e91b06d40290247bFinalize85488902019-09-14 16:51:511107 days 1 hr ago0x73d2548a9e19cbeb4b361ba963ad4977e413787d IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.0005002111
0x0b3aa51c97aeb36d342efadee8dfbda3e819a58b13d2b1c5eba16c0511b8c8c8Finalize85411742019-09-13 11:56:021108 days 6 hrs ago0x73d2548a9e19cbeb4b361ba963ad4977e413787d IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.0004547410
0x2ed197dff61175cd54e2ab3fdfcee39e5b1dd66e849977b68030aee391f893abFinalize85329042019-09-12 5:03:331109 days 13 hrs ago0x73d2548a9e19cbeb4b361ba963ad4977e413787d IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.0006821115
0x6d0d0b67db58574702e7c5a087492b1a9e39d8607c38f1eefb77073ad1473ecfFinalize85265152019-09-11 5:04:231110 days 13 hrs ago0x73d2548a9e19cbeb4b361ba963ad4977e413787d IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.0004547410
0xd059f2bcdc7fe9e60b6ad84e65cef1dc2a91791810f5499c52a5cdac33d0182fFinalize85248102019-09-10 22:37:561110 days 20 hrs ago0x73d2548a9e19cbeb4b361ba963ad4977e413787d IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.0004547410
0x7dd697950dcb6ce0e0d34cfedce0eccbb32b9628b3ee54b1bac6cb00a77ab685Finalize85175932019-09-09 19:33:171111 days 23 hrs ago0x73d2548a9e19cbeb4b361ba963ad4977e413787d IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.000409269
0xbc45694af5f8cbc26b8f8eaee4de44bb0ab33726380b44073c595ed618f413dfFinalize85074792019-09-08 5:49:251113 days 12 hrs ago0x73d2548a9e19cbeb4b361ba963ad4977e413787d IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.000318317
0xd9dd880788990cfcfe0ab744ce71d245c803bd04ece851365dcf6bb78c1916a2Finalize85011282019-09-07 5:52:191114 days 12 hrs ago0x73d2548a9e19cbeb4b361ba963ad4977e413787d IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.000181894
0x05f8ebdf5a8646db3237bba68f3969c1944511d4150755b0ce44f340aecb8804Finalize84988272019-09-06 21:32:071114 days 21 hrs ago0x73d2548a9e19cbeb4b361ba963ad4977e413787d IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.000318317
0xef766e96f4aea62c7e26b979376f10b702242379593a37adf277ebe5af0d7a3aFinalize84988252019-09-06 21:31:351114 days 21 hrs ago0x73d2548a9e19cbeb4b361ba963ad4977e413787d IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.000170483.74899999
0x968701b88b45a5ed1b3396f5faa8ab816a934fdcb84372a95010e0ce0854afceFinalize84816592019-09-04 5:11:191117 days 13 hrs ago0x73d2548a9e19cbeb4b361ba963ad4977e413787d IN  0x7d0ca0957077510ffb91e443de43a317e9cd31710 Ether0.000200084.4
[ Download CSV Export 
Latest 6 internal transactions
Parent Txn Hash Block From To Value
0x932e1416a51b1aeeacbde6c3f23f85148802255d37fc1659bceb76b2d4a23419136134762021-11-14 10:35:06315 days 8 hrs ago 0x7d0ca0957077510ffb91e443de43a317e9cd3171ENS Name schmearmybagel.eth0.05 Ether
0x8e64909fccba1756158a433ad892283c0b26b960b189355fcf01605cda50bf7594587932020-02-11 1:51:34957 days 16 hrs ago 0x7d0ca0957077510ffb91e443de43a317e9cd31710x5597285bbe81baf351e2c0884e9a5f44169588620.001 Ether
0xebeff3e0588bd2b82e762511733b7fa0b8045fece478437ea1af04a9ad392b4790869652019-12-11 4:48:591019 days 13 hrs ago 0x7d0ca0957077510ffb91e443de43a317e9cd31710x29a402c1c541b05704746aa69d159c8b67d36d3e0.0011 Ether
0x87bb9d54bdad791ba45ad87ff58bd277651eed8b61c4e764158864850c81867887883002019-10-22 5:03:021069 days 13 hrs ago 0x7d0ca0957077510ffb91e443de43a317e9cd31710x4ddb7fabcbd38e646457fa80bfce4d3551ff68010.062 Ether
0x74664b67bb9d6d100dcc5043232b7233691840608a84a702c3d7258b4005ea4186739122019-10-04 5:56:071087 days 12 hrs ago 0x7d0ca0957077510ffb91e443de43a317e9cd31710x2527fedd0eb265b82126c7fec1ede54199302ecd0.1 Ether
0x3dfa6fd6427552b84245f6798df3e8a5ddc0890cfa3bcf6fa3e5a9a780a5f19885884222019-09-20 20:50:061100 days 21 hrs ago 0x7d0ca0957077510ffb91e443de43a317e9cd31710xb7fee1b1157a0c2c8e556209fcaa590541c4078c0.8 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CharityChallenge

Compiler Version
v0.5.0+commit.1d4f565a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2019-03-19
*/

pragma solidity ^0.5.0;

// Market API used to interract with augur, we only need to describe the
// functions we'll be using.
// cf https://github.com/AugurProject/augur-core/blob/master/source/contracts/reporting/IMarket.sol
interface IMarket {
    function isFinalized() external view returns (bool);
    function isInvalid() external view returns (bool);
    function getWinningPayoutNumerator(uint256 _outcome) external view returns (uint256);
    function getEndTime() external view returns (uint256);
}

contract CharityChallenge {

    event Received(address indexed sender, uint256 value);

    event Donated(address indexed npo, uint256 value);

    event Claimed(address indexed claimer, uint256 value);

    event SafetyHatchClaimed(address indexed claimer, uint256 value);

    string public constant VERSION = "0.2.0";

    address payable public contractOwner;

    // key is npo address, value is ratio
    mapping(address => uint8) public npoRatios;

    uint8 sumRatio;

    address payable[] public npoAddresses;

    address public marketAddress;

    IMarket market;

    uint256 public challengeEndTime;

    uint256 public challengeSafetyHatchTime1;

    uint256 public challengeSafetyHatchTime2;

    // Valid outcomes are 'YES', 'NO' and 'INVALID'
    bool public isEventFinalized;

    bool public hasChallengeAccomplished;

    bool private safetyHatchClaimSucceeded;

    mapping(address => uint256) public donorBalances;

    uint256 public donorCount;

    bool private mReentrancyLock = false;
    modifier nonReentrant() {
        require(!mReentrancyLock);
        mReentrancyLock = true;
        _;
        mReentrancyLock = false;
    }

    constructor(
        address payable _contractOwner,
        address payable[] memory _npoAddresses,
        uint8[] memory _ratios,
        address _marketAddress
    ) public
    {
        require(_npoAddresses.length == _ratios.length);
        uint length = _npoAddresses.length;
        for (uint i = 0; i < length; i++) {
            address payable npo = _npoAddresses[i];
            npoAddresses.push(npo);
            require(_ratios[i] > 0, "Ratio must be a positive number");
            npoRatios[npo] = _ratios[i];
            sumRatio += _ratios[i];
        }
        contractOwner = _contractOwner;
        marketAddress = _marketAddress;
        market = IMarket(_marketAddress);
        challengeEndTime = market.getEndTime();
        challengeSafetyHatchTime1 = challengeEndTime + 26 weeks;
        challengeSafetyHatchTime2 = challengeSafetyHatchTime1 + 52 weeks;
        isEventFinalized = false;
        hasChallengeAccomplished = false;
    }

    function() external payable {
        require(now <= challengeEndTime);
        require(msg.value > 0);
        if (donorBalances[msg.sender] == 0 && msg.value > 0) {
            donorCount++;
        }
        donorBalances[msg.sender] += msg.value;
        emit Received(msg.sender, msg.value);
    }

    function balanceOf(address _donorAddress) public view returns (uint256) {
        if (safetyHatchClaimSucceeded) {
            return 0;
        }
        return donorBalances[_donorAddress];
    }

    function finalize() nonReentrant external {
        require(now > challengeEndTime);
        require(now <= challengeSafetyHatchTime1);
        require(!isEventFinalized);
        doFinalize();
    }

    function doFinalize() private {
        bool hasError;
        (hasChallengeAccomplished, hasError) = checkAugur();
        if (!hasError) {
            isEventFinalized = true;
            if (hasChallengeAccomplished) {
                uint256 totalContractBalance = address(this).balance;
                uint length = npoAddresses.length;
                uint256 donatedAmount = 0;
                for (uint i = 0; i < length - 1; i++) {
                    address payable npo = npoAddresses[i];
                    uint8 ratio = npoRatios[npo];
                    uint256 amount = totalContractBalance * ratio / sumRatio;
                    donatedAmount += amount;
                    npo.transfer(amount);
                    emit Donated(npo, amount);
                }
                // Don't want to keep any amount in the contract
                uint256 remainingAmount = totalContractBalance - donatedAmount;
                address payable npo = npoAddresses[length - 1];
                npo.transfer(remainingAmount);
                emit Donated(npo, remainingAmount);
            }
        }
    }

    function getExpectedDonationAmount(address payable _npo) view external returns (uint256) {
        require(npoRatios[_npo] > 0);
        uint256 totalContractBalance = address(this).balance;
        uint8 ratio = npoRatios[_npo];
        uint256 amount = totalContractBalance * ratio / sumRatio;
        return amount;
    }

    function claim() nonReentrant external {
        require(now > challengeEndTime);
        require(isEventFinalized || now > challengeSafetyHatchTime1);
        require(!hasChallengeAccomplished || now > challengeSafetyHatchTime1);
        require(balanceOf(msg.sender) > 0);

        uint256 claimedAmount = balanceOf(msg.sender);
        donorBalances[msg.sender] = 0;
        msg.sender.transfer(claimedAmount);
        emit Claimed(msg.sender, claimedAmount);
    }

    function safetyHatchClaim() external {
        require(now > challengeSafetyHatchTime2);
        require(msg.sender == contractOwner);

        uint totalContractBalance = address(this).balance;
        safetyHatchClaimSucceeded = true;
        contractOwner.transfer(address(this).balance);
        emit SafetyHatchClaimed(contractOwner, totalContractBalance);
    }

    function checkAugur() private view returns (bool happened, bool errored) {
        if (market.isFinalized()) {
            if (market.isInvalid()) {
                // Treat 'invalid' outcome as 'no'
                // because 'invalid' is one of the valid outcomes
                return (false, false);
            } else {
                uint256 no = market.getWinningPayoutNumerator(0);
                uint256 yes = market.getWinningPayoutNumerator(1);
                return (yes > no, false);
            }
        } else {
            return (false, true);
        }
    }
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[],"name":"safetyHatchClaim","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"npoAddresses","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"hasChallengeAccomplished","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"finalize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"claim","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"npoRatios","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_npo","type":"address"}],"name":"getExpectedDonationAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_donorAddress","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"donorBalances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"challengeSafetyHatchTime1","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"marketAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isEventFinalized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"challengeEndTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"donorCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"contractOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"challengeSafetyHatchTime2","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"VERSION","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_contractOwner","type":"address"},{"name":"_npoAddresses","type":"address[]"},{"name":"_ratios","type":"uint8[]"},{"name":"_marketAddress","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Received","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"npo","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Donated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"claimer","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"claimer","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"SafetyHatchClaimed","type":"event"}]

60806040526000600c60006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b506040516200189c3803806200189c833981018060405260808110156200005257600080fd5b810190808051906020019092919080516401000000008111156200007557600080fd5b828101905060208101848111156200008c57600080fd5b8151856020820283011164010000000082111715620000aa57600080fd5b50509291906020018051640100000000811115620000c757600080fd5b82810190506020810184811115620000de57600080fd5b8151856020820283011164010000000082111715620000fc57600080fd5b505092919060200180519060200190929190505050815183511415156200012257600080fd5b60008351905060008090505b818110156200031257600085828151811015156200014857fe5b90602001906020020151905060038190806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505060008583815181101515620001cb57fe5b9060200190602002015160ff161115156200024e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f526174696f206d757374206265206120706f736974697665206e756d6265720081525060200191505060405180910390fd5b84828151811015156200025d57fe5b90602001906020020151600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff1602179055508482815181101515620002cd57fe5b90602001906020020151600260008282829054906101000a900460ff160192506101000a81548160ff021916908360ff1602179055505080806001019150506200012e565b50846000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663439f5ac26040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b1580156200045a57600080fd5b505afa1580156200046f573d6000803e3d6000fd5b505050506040513d60208110156200048657600080fd5b810190808051906020019092919050505060068190555062eff100600654016007819055506301dfe200600754016008819055506000600960006101000a81548160ff0219169083151502179055506000600960016101000a81548160ff021916908315150217905550505050505061139780620005056000396000f3fe6080604052600436106100f1576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806307171d7f146102155780630ed7e4991461022c578063306a7ce0146102a75780634bb278f3146102d65780634e71d92d146102ed5780635ead3d4b146103045780635f95eb4d1461036f57806370a08231146103d45780637b8c8de114610439578063877303091461049e57806395623641146104c9578063b77309d614610520578063bc3fde4e1461054f578063c407670f1461057a578063ce606ee0146105a5578063d87a328a146105fc578063ffa1ad7414610627575b600654421115151561010257600080fd5b60003411151561011157600080fd5b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541480156101605750600034115b1561017857600b600081548092919060010191905055505b34600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055503373ffffffffffffffffffffffffffffffffffffffff167f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874346040518082815260200191505060405180910390a2005b34801561022157600080fd5b5061022a6106b7565b005b34801561023857600080fd5b506102656004803603602081101561024f57600080fd5b810190808035906020019092919050505061084a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102b357600080fd5b506102bc610888565b604051808215151515815260200191505060405180910390f35b3480156102e257600080fd5b506102eb61089b565b005b3480156102f957600080fd5b50610302610934565b005b34801561031057600080fd5b506103536004803603602081101561032757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ae6565b604051808260ff1660ff16815260200191505060405180910390f35b34801561037b57600080fd5b506103be6004803603602081101561039257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610b06565b6040518082815260200191505060405180910390f35b3480156103e057600080fd5b50610423600480360360208110156103f757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c04565b6040518082815260200191505060405180910390f35b34801561044557600080fd5b506104886004803603602081101561045c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c6c565b6040518082815260200191505060405180910390f35b3480156104aa57600080fd5b506104b3610c84565b6040518082815260200191505060405180910390f35b3480156104d557600080fd5b506104de610c8a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561052c57600080fd5b50610535610cb0565b604051808215151515815260200191505060405180910390f35b34801561055b57600080fd5b50610564610cc3565b6040518082815260200191505060405180910390f35b34801561058657600080fd5b5061058f610cc9565b6040518082815260200191505060405180910390f35b3480156105b157600080fd5b506105ba610ccf565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561060857600080fd5b50610611610cf4565b6040518082815260200191505060405180910390f35b34801561063357600080fd5b5061063c610cfa565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561067c578082015181840152602081019050610661565b50505050905090810190601f1680156106a95780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b600854421115156106c757600080fd5b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561072257600080fd5b60003073ffffffffffffffffffffffffffffffffffffffff163190506001600960026101000a81548160ff0219169083151502179055506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f193505050501580156107d7573d6000803e3d6000fd5b506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f1ac1e39f5a410afcc9fd213aab1b92287e00cf00e216f3776f352ab328d124f9826040518082815260200191505060405180910390a250565b60038181548110151561085957fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600960019054906101000a900460ff1681565b600c60009054906101000a900460ff161515156108b757600080fd5b6001600c60006101000a81548160ff021916908315150217905550600654421115156108e257600080fd5b60075442111515156108f357600080fd5b600960009054906101000a900460ff1615151561090f57600080fd5b610917610d33565b6000600c60006101000a81548160ff021916908315150217905550565b600c60009054906101000a900460ff1615151561095057600080fd5b6001600c60006101000a81548160ff0219169083151502179055506006544211151561097b57600080fd5b600960009054906101000a900460ff1680610997575060075442115b15156109a257600080fd5b600960019054906101000a900460ff1615806109bf575060075442115b15156109ca57600080fd5b60006109d533610c04565b1115156109e157600080fd5b60006109ec33610c04565b90506000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610a79573d6000803e3d6000fd5b503373ffffffffffffffffffffffffffffffffffffffff167fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a826040518082815260200191505060405180910390a2506000600c60006101000a81548160ff021916908315150217905550565b60016020528060005260406000206000915054906101000a900460ff1681565b600080600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff16111515610b6557600080fd5b60003073ffffffffffffffffffffffffffffffffffffffff163190506000600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1690506000600260009054906101000a900460ff1660ff168260ff168402811515610bf657fe5b049050809350505050919050565b6000600960029054906101000a900460ff1615610c245760009050610c67565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490505b919050565b600a6020528060005260406000206000915090505481565b60075481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600960009054906101000a900460ff1681565b60065481565b600b5481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b6040805190810160405280600581526020017f302e322e3000000000000000000000000000000000000000000000000000000081525081565b6000610d3d611019565b600960018294508391906101000a81548160ff0219169083151502179055505050801515611016576001600960006101000a81548160ff021916908315150217905550600960019054906101000a900460ff16156110155760003073ffffffffffffffffffffffffffffffffffffffff1631905060006003805490509050600080905060008090505b60018303811015610f31576000600382815481101515610de257fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1690506000600260009054906101000a900460ff1660ff168260ff168802811515610e8457fe5b04905080850194508273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610ed2573d6000803e3d6000fd5b508273ffffffffffffffffffffffffffffffffffffffff167f2a01595cddf097c90216094025db714da3f4e5bd8877b56ba86a24ecead8e543826040518082815260200191505060405180910390a25050508080600101915050610dc6565b50600081840390506000600360018503815481101515610f4d57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015610fc0573d6000803e3d6000fd5b508073ffffffffffffffffffffffffffffffffffffffff167f2a01595cddf097c90216094025db714da3f4e5bd8877b56ba86a24ecead8e543836040518082815260200191505060405180910390a250505050505b5b50565b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638d4e40836040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b1580156110a057600080fd5b505afa1580156110b4573d6000803e3d6000fd5b505050506040513d60208110156110ca57600080fd5b81019080805190602001909291905050501561135e57600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166304be2f506040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b15801561116457600080fd5b505afa158015611178573d6000803e3d6000fd5b505050506040513d602081101561118e57600080fd5b8101908080519060200190929190505050156111b05760008091509150611367565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633c26482060006040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018082815260200191505060206040518083038186803b15801561124257600080fd5b505afa158015611256573d6000803e3d6000fd5b505050506040513d602081101561126c57600080fd5b810190808051906020019092919050505090506000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633c26482060016040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018082815260200191505060206040518083038186803b15801561131157600080fd5b505afa158015611325573d6000803e3d6000fd5b505050506040513d602081101561133b57600080fd5b810190808051906020019092919050505090508181116000935093505050611367565b60006001915091505b909156fea165627a7a72305820050e5b8bd5a4916b7c52251da2941121d8ce1c77c228be4d8ca10fee35d7308100290000000000000000000000000ed8c3d25849fe3fe918a8863a04e71036cbc501000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000c247a41e8508b48c1e34609eedd077d60e75cbb100000000000000000000000000000000000000000000000000000000000000010000000000000000000000003990a27b2da3612727dd3a9cf877c94465c3277600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

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

0000000000000000000000000ed8c3d25849fe3fe918a8863a04e71036cbc501000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000c247a41e8508b48c1e34609eedd077d60e75cbb100000000000000000000000000000000000000000000000000000000000000010000000000000000000000003990a27b2da3612727dd3a9cf877c94465c3277600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

-----Decoded View---------------
Arg [0] : _contractOwner (address): 0x0ed8c3d25849fe3fe918a8863a04e71036cbc501
Arg [1] : _npoAddresses (address[]): 0x3990a27b2da3612727dd3a9cf877c94465c32776
Arg [2] : _ratios (uint8[]): 1
Arg [3] : _marketAddress (address): 0xc247a41e8508b48c1e34609eedd077d60e75cbb1

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000ed8c3d25849fe3fe918a8863a04e71036cbc501
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 000000000000000000000000c247a41e8508b48c1e34609eedd077d60e75cbb1
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 0000000000000000000000003990a27b2da3612727dd3a9cf877c94465c32776
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000001


Swarm Source

bzzr://050e5b8bd5a4916b7c52251da2941121d8ce1c77c228be4d8ca10fee35d73081
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.