Contract 0xd8EE3a6B246674a7C6Ca07ED9d8b4500D1d80371

 

TxHash Block Age From To Value [TxFee]
0xf1521c49e916454b027916aad6b8fd185a334f43698e8181f75e5ea997fc1b226464471135 days 1 hr ago0x45405daa47eff12bc225ddcac932ce5ef965b39b  IN   0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d803710 Ether0.001693294
0x2ec90bfd26ea385fb6ef1bb55b7be1b9504858a1e856702942c5b2049f33bec36453998136 days 18 hrs ago0x45405daa47eff12bc225ddcac932ce5ef965b39b  IN   0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d803710 Ether0.001693294
0xfec1ecdf88b6997f9797ab3629a01a1d0ce010f00ce44f9ec781edabedaa96776380859148 days 18 hrs ago0xb37e7587c9cc267c2d6918dc3181d423cfd78d69  IN   0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d803710 Ether0.003449708
0xf1ed97e3e8365d00c63bc82b143dd52e6fde83b2ab6a069b7753a84b65967cba6320681158 days 16 hrs ago0x11fcc9f23fbab2ca8041309d8ad8d98781fc4ba8  IN   0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d803710 Ether0.006899928
0xee62d471d2013a29de78b2eaa1cacf08187253a4ab4e74226c5141c774f95e6f6320681158 days 16 hrs ago0x11fcc9f23fbab2ca8041309d8ad8d98781fc4ba8  IN   0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d803710 Ether0.007762419
0x9b7f32c4201f9fdc9fc3c5237c95a19ee850ace18f628ef84e2beda31401f5ce6320681158 days 16 hrs ago0x11fcc9f23fbab2ca8041309d8ad8d98781fc4ba8  IN   0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d803710 Ether0.000862875
0xe519110ba192d6d47181ed91e15ce026cd28854f0f1a030ba77ebd14b71465886249740170 days 14 hrs ago0x45405daa47eff12bc225ddcac932ce5ef965b39b  IN   0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d803710 Ether0.006773176
0xff4ceec996d8be2cdbbc9426f3fc93e826dcff4176add41f47105b8df4da58646247952170 days 21 hrs ago0xd2c8f97fd79dd00758e90803ea01e9724bf80f44  IN   0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d803710 Ether0.003452012
0x3f3ddc285a5f14f7ed6857a3bd4f196628076d8b38d0efb423a4d1b7b1e44ded6247266171 days 7 mins ago0x4133c79e575591b6c380c233fffb47a13348de86  IN   0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d803710 Ether0.00345022
0x0137097f6195e163d24be8c6992f4ae073850f4dfe81f8efa85ce36c1a9a19786246650171 days 2 hrs ago0x02f3c931ab393ae1c23b80f060231dddfcb56d50  IN   0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d803710 Ether0.002586513
0x91d8bc777c9b3701394b98da1ca7ae4c571324950e223b2ccbcc0a5b2318853a6244384171 days 11 hrs ago0x45405daa47eff12bc225ddcac932ce5ef965b39b  IN   0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d803710 Ether0.001693294
0xa22b1bd6869b6f4c19d9bb1af8059919b1adff4518a114281a41d069f6f2cb5e6238944172 days 9 hrs ago0x45405daa47eff12bc225ddcac932ce5ef965b39b  IN   0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d803710 Ether0.004233235
0x23cf8737327761058ab9f37ae9acbe16ed1bff76389892747eb2284cf35e074a6238944172 days 9 hrs ago0x45405daa47eff12bc225ddcac932ce5ef965b39b  IN   0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d803710 Ether0.002539941
0x1230904d5b3dcfab9062465c9dcc197d72d289cd6080478f97c193cb9a3005646238943172 days 9 hrs ago0x45405daa47eff12bc225ddcac932ce5ef965b39b  IN   0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d803710 Ether0.001723294
0x7fd1127c1f20a7a2b0ea1f2e245fb6af449c89e3f042d1abb38a12414a2f59186229175174 days 1 hr ago0x45405daa47eff12bc225ddcac932ce5ef965b39b  IN   Contract Creation0 Ether0.00253179
[ Download CSV Export 

Latest 14 Internal Transactions Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
0xf1521c49e916454b027916aad6b8fd185a334f43698e8181f75e5ea997fc1b226464471135 days 1 hr ago0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d80371  Contract Creation0 Ether
0x2ec90bfd26ea385fb6ef1bb55b7be1b9504858a1e856702942c5b2049f33bec36453998136 days 18 hrs ago0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d80371  Contract Creation0 Ether
0xfec1ecdf88b6997f9797ab3629a01a1d0ce010f00ce44f9ec781edabedaa96776380859148 days 18 hrs ago0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d80371  Contract Creation0 Ether
0xf1ed97e3e8365d00c63bc82b143dd52e6fde83b2ab6a069b7753a84b65967cba6320681158 days 16 hrs ago0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d80371  Contract Creation0 Ether
0xee62d471d2013a29de78b2eaa1cacf08187253a4ab4e74226c5141c774f95e6f6320681158 days 16 hrs ago0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d80371  Contract Creation0 Ether
0x9b7f32c4201f9fdc9fc3c5237c95a19ee850ace18f628ef84e2beda31401f5ce6320681158 days 16 hrs ago0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d80371  Contract Creation0 Ether
0xe519110ba192d6d47181ed91e15ce026cd28854f0f1a030ba77ebd14b71465886249740170 days 14 hrs ago0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d80371  Contract Creation0 Ether
0xff4ceec996d8be2cdbbc9426f3fc93e826dcff4176add41f47105b8df4da58646247952170 days 21 hrs ago0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d80371  Contract Creation0 Ether
0x3f3ddc285a5f14f7ed6857a3bd4f196628076d8b38d0efb423a4d1b7b1e44ded6247266171 days 7 mins ago0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d80371  Contract Creation0 Ether
0x0137097f6195e163d24be8c6992f4ae073850f4dfe81f8efa85ce36c1a9a19786246650171 days 2 hrs ago0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d80371  Contract Creation0 Ether
0x91d8bc777c9b3701394b98da1ca7ae4c571324950e223b2ccbcc0a5b2318853a6244384171 days 11 hrs ago0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d80371  Contract Creation0 Ether
0xa22b1bd6869b6f4c19d9bb1af8059919b1adff4518a114281a41d069f6f2cb5e6238944172 days 9 hrs ago0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d80371  Contract Creation0 Ether
0x23cf8737327761058ab9f37ae9acbe16ed1bff76389892747eb2284cf35e074a6238944172 days 9 hrs ago0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d80371  Contract Creation0 Ether
0x1230904d5b3dcfab9062465c9dcc197d72d289cd6080478f97c193cb9a3005646238943172 days 9 hrs ago0xd8ee3a6b246674a7c6ca07ed9d8b4500d1d80371  Contract Creation0 Ether
[ Download CSV Export 
Warning: The compiled contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) Solidity Compiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: MemeRecorder
Compiler Version: v0.4.24+commit.e67f0147
Optimization Enabled: No
Runs (Optimizer):  200


Contract Source Code
pragma solidity ^0.4.24;

library CheckOverflows {
    function add(uint256 n1, uint256 n2) internal pure returns(uint256 n3) {
        n3 = n1 + n2;
        require(n3 >= n1);
        return n3;
    }

    function sub(uint256 n1, uint256 n2) internal pure returns(uint256) {
        require(n2 <= n1);
        return n1 - n2;
    }

    function mul(uint256 n1, uint256 n2) internal pure returns(uint256 n3) {
        if (n1 == 0 || n2 == 0) {
            return 0;
        }

        n3 = n1 * n2;
        require(n3 / n1 == n2);
        return n3;
    }

    function div(uint256 n1, uint256 n2) internal pure returns(uint256) {
        return n1 / n2;
    }
}

// PolynomialBonding curve
// Each meme is independent on its own on the eth blockchain
contract Meme {
    string public ipfsHash;
    address public creator; // aka owner
    uint256 exponent;
    uint256 PRECISION;
    uint256 public totalSupply;
    string public name;
    uint256 public decimals;

    // amount of wei the smart contract holds
    uint256 public poolBalance;

    using CheckOverflows for uint256;

    constructor(string _ipfsHash, address _creator, string _name, uint256 _decimals, uint256 _exponent, uint256 _precision) public {
        ipfsHash = _ipfsHash;
        creator = _creator;
        name = _name;
        decimals = _decimals;        // 18
        exponent = _exponent;        // 1
        PRECISION = _precision;      // experimenting with: 10 billion > 10000000000

        // to reward creators automatically give tokens 100 * 1000
        totalSupply = 100000;
        tokenBalances[msg.sender] = 100000;
    }

    // tokens owned by each address
    mapping(address => uint256) public tokenBalances;

    // Calculate the integral from 0 to t (number to integrate to)
    // https://github.com/CryptoAgainstHumanity/crypto-against-humanity/blob/master/ethereum/contracts/WhiteCard.sol#L249
    function curveIntegral(uint256 _t) internal returns(uint256) {
        uint256 nexp = exponent.add(1);
        // calculate integral t^exponent
        return PRECISION.div(nexp).mul(_t ** nexp).div(PRECISION);
    }

    // minting new tokens > aka voting
    function mint(uint256 _numTokens) public payable {
        uint256 priceForTokens = getMintingPrice(_numTokens);
        require(msg.value >= priceForTokens, "Not enough value for total price of tokens");

        totalSupply = totalSupply.add(_numTokens);
        tokenBalances[msg.sender] = tokenBalances[msg.sender].add(_numTokens);
        poolBalance = poolBalance.add(priceForTokens);

        // send back the change
        if (msg.value > priceForTokens) {
            msg.sender.transfer(msg.value.sub(priceForTokens));
        }
    }

    function getMintingPrice(uint256 _numTokens) public view returns(uint256) {
        return curveIntegral(totalSupply.add(_numTokens)).sub(poolBalance);
    }

    // burning tokens >> eth to return
    function burn(uint256 _numTokens) public {
        require(tokenBalances[msg.sender] >= _numTokens, "Not enough owned tokens to burn");

        uint256 ethToReturn = getBurningReward(_numTokens);

        totalSupply = totalSupply.sub(_numTokens);
        poolBalance = poolBalance.sub(ethToReturn);

        // 3% fee go to site creators, the rest to former tokens owner
        uint256 fee = ethToReturn.div(100).mul(3);

        address(0x45405DAa47EFf12Bc225ddcAC932Ce5ef965B39b).transfer(fee);
        msg.sender.transfer(ethToReturn.sub(fee));
    }

    function getBurningReward(uint256 _numTokens) public view returns(uint256) {
        return poolBalance.sub(curveIntegral(totalSupply.sub(_numTokens)));
    }

    function kill() public {
        // I give myself the ability to kill any contracts, though will only do so with duplicates aka cheaters
        require(msg.sender == address(0xE76197fAa1C8c4973087d9d79064d2bb6F940946));
        selfdestruct(this);
    }
}

// Factory contract: keeps track of meme for only leaderboard and view purposes
contract MemeRecorder {
    address[] public memeContracts;

    constructor() public {}

    function addMeme(string _ipfsHash, string _name) public {
        Meme newMeme;
        newMeme = new Meme(_ipfsHash, msg.sender, _name, 18, 1, 10000000000);
        memeContracts.push(newMeme);
    }

    function getMemes() public view returns(address[]) {
        return memeContracts;
    }
}

Contract ABI
[{"constant":true,"inputs":[],"name":"getMemes","outputs":[{"name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"memeContracts","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_ipfsHash","type":"string"},{"name":"_name","type":"string"}],"name":"addMeme","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]

Contract Creation Code
608060405234801561001057600080fd5b506111e3806100206000396000f300608060405260043610610057576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638c849f3f1461005c578063df35bd0f146100c8578063e209bf2214610135575b600080fd5b34801561006857600080fd5b506100716101e4565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156100b4578082015181840152602081019050610099565b505050509050019250505060405180910390f35b3480156100d457600080fd5b506100f360048036038101908080359060200190929190505050610272565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561014157600080fd5b506101e2600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506102b0565b005b6060600080548060200260200160405190810160405280929190818152602001828054801561026857602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001906001019080831161021e575b5050505050905090565b60008181548110151561028157fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000823383601260016402540be4006102c7610474565b80806020018773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001868152602001858152602001848152602001838103835289818151815260200191508051906020019080838360005b8381101561034c578082015181840152602081019050610331565b50505050905090810190601f1680156103795780820380516001836020036101000a031916815260200191505b50838103825287818151815260200191508051906020019080838360005b838110156103b2578082015181840152602081019050610397565b50505050905090810190601f1680156103df5780820380516001836020036101000a031916815260200191505b5098505050505050505050604051809103906000f080158015610406573d6000803e3d6000fd5b50905060008190806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b604051610d3380610485833901905600608060405234801561001057600080fd5b50604051610d33380380610d33833981018060405281019080805182019291906020018051906020019092919080518201929190602001805190602001909291908051906020019092919080519060200190929190505050856000908051906020019061007e929190610148565b5084600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600590805190602001906100d6929190610148565b50826006819055508160028190555080600381905550620186a0600481905550620186a0600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505050506101ed565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061018957805160ff19168380011785556101b7565b828001600101855582156101b7579182015b828111156101b657825182559160200191906001019061019b565b5b5090506101c491906101c8565b5090565b6101ea91905b808211156101e65760008160009055506001016101ce565b5090565b90565b610b37806101fc6000396000f3006080604052600436106100ba576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806302d05d3f146100bf57806306fdde031461011657806318160ddd146101a6578063313ce567146101d157806341c0e1b5146101fc57806342966c6814610213578063523fba7f14610240578063758120191461029757806396365d44146102d8578063a0712d6814610303578063c623674f14610323578063eb1635ed146103b3575b600080fd5b3480156100cb57600080fd5b506100d46103f4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561012257600080fd5b5061012b61041a565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561016b578082015181840152602081019050610150565b50505050905090810190601f1680156101985780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101b257600080fd5b506101bb6104b8565b6040518082815260200191505060405180910390f35b3480156101dd57600080fd5b506101e66104be565b6040518082815260200191505060405180910390f35b34801561020857600080fd5b506102116104c4565b005b34801561021f57600080fd5b5061023e6004803603810190808035906020019092919050505061052b565b005b34801561024c57600080fd5b50610281600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610708565b6040518082815260200191505060405180910390f35b3480156102a357600080fd5b506102c260048036038101908080359060200190929190505050610720565b6040518082815260200191505060405180910390f35b3480156102e457600080fd5b506102ed61075a565b6040518082815260200191505060405180910390f35b61032160048036038101908080359060200190929190505050610760565b005b34801561032f57600080fd5b5061033861093c565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561037857808201518184015260208101905061035d565b50505050905090810190601f1680156103a55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103bf57600080fd5b506103de600480360381019080803590602001909291905050506109da565b6040518082815260200191505060405180910390f35b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60058054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104b05780601f10610485576101008083540402835291602001916104b0565b820191906000526020600020905b81548152906001019060200180831161049357829003601f168201915b505050505081565b60045481565b60065481565b73e76197faa1c8c4973087d9d79064d2bb6f94094673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561051257600080fd5b3073ffffffffffffffffffffffffffffffffffffffff16ff5b60008082600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054101515156105e5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4e6f7420656e6f756768206f776e656420746f6b656e7320746f206275726e0081525060200191505060405180910390fd5b6105ee83610720565b915061060583600454610a1490919063ffffffff16565b60048190555061062082600754610a1490919063ffffffff16565b60078190555061064d600361063f606485610a3090919063ffffffff16565b610a4690919063ffffffff16565b90507345405daa47eff12bc225ddcac932ce5ef965b39b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156106a9573d6000803e3d6000fd5b503373ffffffffffffffffffffffffffffffffffffffff166108fc6106d78385610a1490919063ffffffff16565b9081150290604051600060405180830381858888f19350505050158015610702573d6000803e3d6000fd5b50505050565b60086020528060005260406000206000915090505481565b600061075361074261073d84600454610a1490919063ffffffff16565b610a8c565b600754610a1490919063ffffffff16565b9050919050565b60075481565b600061076b826109da565b905080341015151561080b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001807f4e6f7420656e6f7567682076616c756520666f7220746f74616c20707269636581526020017f206f6620746f6b656e730000000000000000000000000000000000000000000081525060400191505060405180910390fd5b61082082600454610aec90919063ffffffff16565b60048190555061087882600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610aec90919063ffffffff16565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506108d081600754610aec90919063ffffffff16565b60078190555080341115610938573373ffffffffffffffffffffffffffffffffffffffff166108fc61090b8334610a1490919063ffffffff16565b9081150290604051600060405180830381858888f19350505050158015610936573d6000803e3d6000fd5b505b5050565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156109d25780601f106109a7576101008083540402835291602001916109d2565b820191906000526020600020905b8154815290600101906020018083116109b557829003601f168201915b505050505081565b6000610a0d6007546109ff6109fa85600454610aec90919063ffffffff16565b610a8c565b610a1490919063ffffffff16565b9050919050565b6000828211151515610a2557600080fd5b818303905092915050565b60008183811515610a3d57fe5b04905092915050565b600080831480610a565750600082145b15610a645760009050610a86565b8183029050818382811515610a7557fe5b04141515610a8257600080fd5b8090505b92915050565b600080610aa56001600254610aec90919063ffffffff16565b9050610ae4600354610ad683860a610ac885600354610a3090919063ffffffff16565b610a4690919063ffffffff16565b610a3090919063ffffffff16565b915050919050565b60008183019050828110151515610b0257600080fd5b809050929150505600a165627a7a723058209fc399626f44318fa18c5a45ef298a206189e657f5409ac20addacac5acf9c4c0029a165627a7a7230582093865754348de0d7244fc48e9afd85eaee0d299139d6d1676580cfc16d35c7920029


   Swarm Source:
bzzr://93865754348de0d7244fc48e9afd85eaee0d299139d6d1676580cfc16d35c792
Block Age transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.