Sponsored Link:   Buy your 1st Ethereum in 5 minutes. Trusted by more than 100k buyers.
Contract Overview
ETH Balance: 0 Ether
ETH USD Value: $0
No Of Transactions: 7677 txns
  Latest 25 txns from a total Of 7677 transactions View All

TxHash Age From To Value [TxFee]
0x9d03eb1182f25cd377b7a78388b86ea12d221ebb36ee76b750a268762bab3aa61 min ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0021222
0x3b0f2bbf86f41ef7d168432bbb7cabfa9556b68959cba0079a850a31fc80a5e42 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0011928
0x760752fd9f6d0b9aeb0b84b31abe31cbee1bec9d580ee48d22310cac38bc0c563 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.002119
0x06b82b93a793d115deef456f15b6f87f3266e00cea6a81354c9364ae29c511e212 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.002119
0x73a313c2ba0a4eaee9fdcc7397249211798ed98e8e437e9216357500317a3d3312 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.002869
0xa326a933fcb8f3ae08b0bd2681e0ae32dbae30df3fe8e59c7cf9348a241b1bd012 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.002869
0xc967ba48310a62e419adf56f06a5836174d90319d2ceac386c6fba083aec689d13 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.002869
0x18ea2c7f9a1481b857602e86950fea4b1fd462effae4e376bafe88477cd2fc4819 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0021222
0x750bd6898607e91963ec35c81f1f77d9e71b288c0628f1c0611a010404b32ab721 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.002119
0xd98f7002934199b9e610f4d6f328ea6ab62bd103e1ceffb406b2046d3e9298c223 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0011896
0xa75af4f495690424a294c435e8b6cecc2eedbd4b44fe28299101f544ef1d4b8a29 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0021222
0x7749c2f4d2afc67b48a2be92ad8690b03128eebb066077c3119f8559eaf2b63130 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.002119
0x8690c4a31929f03334e0e2ccb2a464143b7ae5f0230b1a9d0da00940c55a54f632 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.00592775
0x78e9efdc9e927191f2c1780c2b829ce44e7f11f4a3a18485a8644d831689fbf032 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0028722
0xd82550e801ee0c0bf8ba6b6db544866ceb587d27c1690fb81e34fbd39fe3190537 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0028658
0x5e65d59808b8abd65aeed96d8592f34d73925739ee83046dcfc5c4b0de71cdff40 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.002119
0x25ed9b21b8ae741bfde324d240aee308d7fceb9471fda179395c8ad43d36687a42 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0021222
0x113a4c10cd3bbf163472601ce2588ba152d1b164f1f5c71468d763f427f4ec0743 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0021222
0x4542cb8e5071b4495f4b180c5277d02448fa8da4b01087c403c0f88961b71b9143 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.002119
0x974142dbb81e3464f1a58994afeb94529a6148a22261ca8083b90ac7bd5a19ba45 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.002119
0xc6c1808f2b88bff7a566d98dca1ce149daea17cb3e0c716aacef31829e6df57447 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0028722
0xb1f94d955b0bdfb137bad99310303e43a02846b76a0d350e72c9b0b376845fab54 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0014345
0xdf14113f65842bfb79866eb32bbc6f3f28a47e22870657947b77053bc6284d4757 mins ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0011928
0x0a3a88c451a97b71edd6b38730f78b655dd4eb7c145a5c8009461c1d86a916a41 hr ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0012088
0xaad84da83e7cddb8897349d0bf4b28c7ed8e58a6e1bb7d7464df542bfab9356a1 hr ago0xf561e4ea801833b4828859002cd06f35c784732c  IN   0xcca95e580bbbd04851ebfb85f77fd46c9b91f11c0 Ether0.0021222
[ 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
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.