Sponsored Link:   Learn and build dApps today without code using Crowd Machine's Crowd App Studio.
 Latest 25 txns from a total Of 8726 transactions

TxHash Age From To Value [TxFee]
0x259c851111be2bf4d73ae0d582eebad7c66e8353c417884aa85034dc22c0f226195 days 17 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0011476
0xb9f68e79c7886ef282b6628e89dabccb694add3591d37d8792f14d661d7c8ce9195 days 19 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.00114888
0x4c288c8a948b404a21c5cd72f657c6e64e326800a61396b55d5f5d4fcd936a57195 days 19 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0008476
0x5bd8ec1f415198406ad6de77c122cef27b616deffb9e037a9c6ab94ff435d51d195 days 19 hrs ago0x0052eecbba7933cdcfe42ba68d36c5834dbba83c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0003341492
0xc6cfc5084e1ab2c3f6bbe55cb826fff1ba966a098c8c31f19d3f3832860f269c195 days 20 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0011476
0x1b0b7a40a24fa08dfee023d84514941b7efe6fc6c770127ccee16fa6be47bf5e195 days 21 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0005738
0x66afb9e16aae6ef5b9fae1821468f9638c038fb90d3147af9874235ab81c5aad195 days 21 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0011476
0xa4232cdde7a9e9df353024a2df60e40d01b953065060513f12215c6e12efff52195 days 22 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0005738
0x1563aa0fdf33bd97a131ca93f42ece9616c3e97467cc37f7cd839f46f6b79dc8195 days 22 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0011476
0xa5011eca65bc1470bead8bf95fb61a2ca2829b3c3bd0267c6262be9d96065c7d195 days 22 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0011476
0x1d92e80b1b454ca29519abc75f82cdf44a17a41f862eab8f9018fe097d55fa6d196 days 18 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.00088998
0xb4f115263e47f9cb1523eb6857542c6a58cd08fc73c31b2e009e63aa6c72a2d5196 days 1 hr ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0011476
0xe1b41364fe472929bed232351caad2b1d76eecd7b25f6bd338dfe1b8d5cc2f95196 days 1 hr ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0008476
0xeb7ece2ef4131b693de6a78521bc774e4978b4b6577f42564a489fb5acf8346e196 days 7 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0011476
0x8213f4dce7645702861b9a4194c2203470ed9fb682ecca5ef6bc7c6d4450790a196 days 10 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0011476
0x0a54ca2a3e1a1f4be2dcc5981969cacef57bc816c544fcfff2631244fd99f301196 days 11 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0008476
0x7b52bcd54c96f2d179c19b6c04e0f39606058d821751a407d0fbe9bdafbab395196 days 12 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0011476
0x74133d40922a2fda1ec4d14b2f04a6058c1041012e196fcc9c54841262d37705196 days 13 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0008476
0xeb4e0349728bfe2beaa6a85d0af092efb5adec54f3f8d79dfb4b58c8b5905059196 days 14 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.00084888
0x1e1dbd7305c6fe9e729f07bde8bfbb4328f259a186262698da316260b5109b90196 days 15 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.00084888
0x95a4eca71b0914a5227aa42f2349b5c1c824b62f87321bf67c8be2f3e13727d0196 days 15 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.00084888
0x40b7773c00a655d1f848396edfbb9afedf7d0cadab6a8fc6417aeb63f1145432196 days 16 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.00114888
0x2c22ca6c7e600ab894336b985f24b92ffe13c4b8c315cd5a6c50c78d4222f5cd196 days 17 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0008476
0xc075a7647f717972718859d11e3216cc425b6f4b2cf8f74b315c35aab90afbd7196 days 17 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0011476
0xa13b6bd7456ddb30bd7a8c04120ebf1ec6a8f921930767316a1c35f855560230196 days 18 hrs ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.00114888
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Warning: The compiled contract might be susceptible to ZeroFunctionSelector (very low-severity) Solidity compiler bugs.

Contract Source Code Verified (Exact match)
Contract Name: TerraformReserve
Compiler Version: v0.4.15+commit.bbb8e64f
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.15;

contract ERC20 {
  event Transfer(address indexed from, address indexed to, uint value);
  function balanceOf( address who ) public constant returns (uint value);
  function transfer( address to, uint value) public returns (bool ok);
  function approve( address to, uint value) public returns (bool ok);
  function transferFrom(address from, address to, uint value) public returns (bool ok);
}

contract Owned {
    address public owner;

    function Owned() public {
        owner = msg.sender;
    }

    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }

    function transferOwnership(address newOwner) onlyOwner public {
        owner = newOwner;
    }
}

contract TerraformReserve is Owned {

  /* Storing a balance for each user */
  mapping (address => uint256) public lockedBalance;
  
  /* Store the total sum locked */
  uint public totalLocked;
  
  /* Reference to the token */
  ERC20 public manaToken;
  
  /* Contract that will assign the LAND and burn/return tokens */
  address public landClaim;
  
  /* Prevent the token from accepting deposits */
  bool public acceptingDeposits;

  event LockedBalance(address user, uint mana);
  event LandClaimContractSet(address target);
  event LandClaimExecuted(address user, uint value, bytes data);
  event AcceptingDepositsChanged(bool _acceptingDeposits);

  function TerraformReserve(address _token) {
    require(_token != 0);
    manaToken = ERC20(_token);
    acceptingDeposits = true;
  }

  /**
   * Lock MANA into the contract.
   * This contract does not have another way to take the tokens out other than
   * through the target contract.
   */
  function lockMana(address _from, uint256 mana) public {
    require(acceptingDeposits);
    require(mana >= 1000 * 1e18);
    require(manaToken.transferFrom(_from, this, mana));

    lockedBalance[_from] += mana; 
    totalLocked += mana;
    LockedBalance(_from, mana);
  }
  
  /**
   * Allows the owner of the contract to pause acceptingDeposits
   */
  function changeContractState(bool _acceptingDeposits) public onlyOwner {
    acceptingDeposits = _acceptingDeposits;
    AcceptingDepositsChanged(acceptingDeposits);
  }
  
  /**
   * Set the contract that can move the staked MANA.
   * Calls the `approve` function of the ERC20 token with the total amount.
   */
  function setTargetContract(address target) public onlyOwner {
    landClaim = target;
    manaToken.approve(landClaim, totalLocked);
    LandClaimContractSet(target);
  }

  /**
   * Prevent payments to the contract
   */
  function () public payable {
    revert();
  }
}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"target","type":"address"}],"name":"setTargetContract","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalLocked","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_acceptingDeposits","type":"bool"}],"name":"changeContractState","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"mana","type":"uint256"}],"name":"lockMana","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"manaToken","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"landClaim","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"lockedBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"acceptingDeposits","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"_token","type":"address"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"user","type":"address"},{"indexed":false,"name":"mana","type":"uint256"}],"name":"LockedBalance","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"target","type":"address"}],"name":"LandClaimContractSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"user","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"data","type":"bytes"}],"name":"LandClaimExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_acceptingDeposits","type":"bool"}],"name":"AcceptingDepositsChanged","type":"event"}]

  Contract Creation Code Switch To Opcodes View
6060604052341561000f57600080fd5b604051602080610684833981016040528080519150505b5b60008054600160a060020a03191633600160a060020a03161790555b600160a060020a038116151561005857600080fd5b60038054600160a060020a038316600160a060020a03199091161790556004805460a060020a60ff021916740100000000000000000000000000000000000000001790555b505b6105d6806100ae6000396000f300606060405236156100885763ffffffff60e060020a60003504166347fc822f811461009057806356891412146100b1578063689a521d146100d65780636b7006d7146100f057806374c97c99146101145780638da5cb5b1461014357806390b06593146101725780639ae697bf146101a1578063df334093146101d2578063f2fde38b146101f9575b5b600080fd5b005b341561009b57600080fd5b61008e600160a060020a036004351661021a565b005b34156100bc57600080fd5b6100c461031f565b60405190815260200160405180910390f35b34156100e157600080fd5b61008e6004351515610325565b005b34156100fb57600080fd5b61008e600160a060020a03600435166024356103bf565b005b341561011f57600080fd5b610127610502565b604051600160a060020a03909116815260200160405180910390f35b341561014e57600080fd5b610127610511565b604051600160a060020a03909116815260200160405180910390f35b341561017d57600080fd5b610127610520565b604051600160a060020a03909116815260200160405180910390f35b34156101ac57600080fd5b6100c4600160a060020a036004351661052f565b60405190815260200160405180910390f35b34156101dd57600080fd5b6101e5610541565b604051901515815260200160405180910390f35b341561020457600080fd5b61008e600160a060020a0360043516610562565b005b60005433600160a060020a0390811691161461023557600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290556003546002549082169263095ea7b392169060006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156102c157600080fd5b6102c65a03f115156102d257600080fd5b50505060405180519050507f53e0b78f8befdee4500f015571e9fc9e272eea929617a296cc4dfbd6f94ab7a981604051600160a060020a03909116815260200160405180910390a15b5b50565b60025481565b60005433600160a060020a0390811691161461034057600080fd5b6004805474ff0000000000000000000000000000000000000000191674010000000000000000000000000000000000000000831515810291909117918290557ff3c7809150929110a2f541a06b6e5504f96d2a64b6d23a11af57dceda35a6f2a9160ff91900416604051901515815260200160405180910390a15b5b50565b60045474010000000000000000000000000000000000000000900460ff1615156103e857600080fd5b683635c9adc5dea000008110156103fe57600080fd5b600354600160a060020a03166323b872dd83308460006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b151561046a57600080fd5b6102c65a03f1151561047b57600080fd5b50505060405180519050151561049057600080fd5b600160a060020a0382166000908152600160205260409081902080548301905560028054830190557febfb816221eaf798e256b970818c54755242a19e3e1a2b5b2060f9d22ecbf46d908390839051600160a060020a03909216825260208201526040908101905180910390a15b5050565b600354600160a060020a031681565b600054600160a060020a031681565b600454600160a060020a031681565b60016020526000908152604090205481565b60045474010000000000000000000000000000000000000000900460ff1681565b60005433600160a060020a0390811691161461057d57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b505600a165627a7a723058206fe8501df1c5236403021a4816bbbc844e8a18a89c6abf2feb764f82908230f700290000000000000000000000000f5d2fb29fb7d3cfee444a200298f468908cc942

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

-----Decoded View---------------
Found 1 constructor arguments :
Arg [0] : 0000000000000000000000000f5d2fb29fb7d3cfee444a200298f468908cc942


   Swarm Source:
bzzr://6fe8501df1c5236403021a4816bbbc844e8a18a89c6abf2feb764f82908230f7

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.