ETH Price: $3,501.13 (+0.05%)
Gas: 5 Gwei

Contract

0x8866d52303E372C2a2936d8Ea09AFd87BcBD8cf2
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer85652362019-09-17 5:54:031771 days ago1568699643IN
0x8866d523...7BcBD8cf2
0 ETH0.0010825921
Approve77009372019-05-05 12:34:541906 days ago1557059694IN
0x8866d523...7BcBD8cf2
0 ETH0.000184294
Approve73230172019-03-07 15:39:591964 days ago1551973199IN
0x8866d523...7BcBD8cf2
0 ETH0.000184044
Approve72465812019-02-20 23:54:171979 days ago1550706857IN
0x8866d523...7BcBD8cf2
0 ETH0.000092142
Approve70195142019-01-06 10:01:532025 days ago1546768913IN
0x8866d523...7BcBD8cf2
0 ETH0.000183784
Approve58700832018-06-28 16:47:382216 days ago1530204458IN
0x8866d523...7BcBD8cf2
0 ETH0.0009675521
Approve58600122018-06-26 23:09:292218 days ago1530054569IN
0x8866d523...7BcBD8cf2
0 ETH0.000092142
Approve58031262018-06-17 5:14:082228 days ago1529212448IN
0x8866d523...7BcBD8cf2
0 ETH0.000092142
Convert10MTI58030052018-06-17 4:42:572228 days ago1529210577IN
0x8866d523...7BcBD8cf2
0 ETH0.000090052
Approve58015952018-06-16 22:58:402228 days ago1529189920IN
0x8866d523...7BcBD8cf2
0 ETH0.000184044
Approve57676862018-06-11 1:38:402234 days ago1528681120IN
0x8866d523...7BcBD8cf2
0 ETH0.000092022
Approve57575442018-06-09 6:26:432236 days ago1528525603IN
0x8866d523...7BcBD8cf2
0 ETH0.000184294
Transfer57573442018-06-09 5:34:522236 days ago1528522492IN
0x8866d523...7BcBD8cf2
0 ETH0.000146724
Convert10MTI55650762018-05-06 7:43:592270 days ago1525592639IN
0x8866d523...7BcBD8cf2
0 ETH0.0009454215.75
Convert10MTI55169432018-04-27 21:19:052278 days ago1524863945IN
0x8866d523...7BcBD8cf2
0 ETH0.000900415
Convert10MTI55169412018-04-27 21:18:522278 days ago1524863932IN
0x8866d523...7BcBD8cf2
0 ETH0.0012005420
Transfer53983802018-04-07 17:14:162298 days ago1523121256IN
0x8866d523...7BcBD8cf2
0 ETH0.000366810
Approve52741312018-03-17 23:42:352319 days ago1521330155IN
0x8866d523...7BcBD8cf2
0 ETH0.000182764
Approve52577782018-03-15 4:55:242322 days ago1521089724IN
0x8866d523...7BcBD8cf2
0 ETH0.000183784
Approve52577772018-03-15 4:55:082322 days ago1521089708IN
0x8866d523...7BcBD8cf2
0 ETH0.000183784
Approve52529842018-03-14 9:06:242323 days ago1521018384IN
0x8866d523...7BcBD8cf2
0 ETH0.0044169696
Approve52347252018-03-11 6:52:122326 days ago1520751132IN
0x8866d523...7BcBD8cf2
0 ETH0.0007821717
Transfer51511682018-02-25 1:50:332340 days ago1519523433IN
0x8866d523...7BcBD8cf2
0 ETH0.000366810
Transfer51509922018-02-25 1:05:092340 days ago1519520709IN
0x8866d523...7BcBD8cf2
0 ETH0.000103482
Convert10MTI51487372018-02-24 16:10:342340 days ago1519488634IN
0x8866d523...7BcBD8cf2
0 ETH0.00024014
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TrustPoolToken

Compiler Version
v0.4.16+commit.d7661dd9

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2017-11-08
*/

pragma solidity ^0.4.16;

/* 
   High value, community controlled token.
   */
   contract ERC20Basic {
    uint256 public totalSupply;
    function balanceOf(address who) constant returns (uint256);
    function transfer(address to, uint256 value) returns (bool);
    event Transfer(address indexed from, address indexed to, uint256 value);
  }

/*
   ERC20 interface
  see https://github.com/ethereum/EIPs/issues/20
  */
  contract ERC20 is ERC20Basic {
    function allowance(address owner, address spender) constant returns (uint256);
    function transferFrom(address from, address to, uint256 value) returns (bool);
    function approve(address spender, uint256 value) returns (bool);
    event Approval(address indexed owner, address indexed spender, uint256 value);
  }

/*  SafeMath - the lowest gas library
  Math operations with safety checks that throw on error
  */
  library SafeMath {

    function mul(uint256 a, uint256 b) internal constant returns (uint256) {
      uint256 c = a * b;
      assert(a == 0 || c / a == b);
      return c;
    }

    function div(uint256 a, uint256 b) internal constant returns (uint256) {
      // assert(b > 0); // Solidity automatically throws when dividing by 0
      uint256 c = a / b;
      // assert(a == b * c + a % b); // There is no case in which this doesn't hold
      return c;
    }

    function sub(uint256 a, uint256 b) internal constant returns (uint256) {
      assert(b <= a);
      return a - b;
    }

    function add(uint256 a, uint256 b) internal constant returns (uint256) {
      uint256 c = a + b;
      assert(c >= a);
      return c;
    }

  }

/*
Basic token
 Basic version of StandardToken, with no allowances. 
 */
 contract BasicToken is ERC20Basic {

  using SafeMath for uint256;

  mapping(address => uint256) balances;

  function transfer(address _to, uint256 _value) returns (bool) {
    balances[msg.sender] = balances[msg.sender].sub(_value);
    balances[_to] = balances[_to].add(_value);
    Transfer(msg.sender, _to, _value);
    return true;
  }

  /*
  Gets the balance of the specified address.
   param _owner The address to query the the balance of. 
   return An uint256 representing the amount owned by the passed address.
   */
   function balanceOf(address _owner) constant returns (uint256 balance) {
    return balances[_owner];
  }

}

/* Implementation of the basic standard token.
  https://github.com/ethereum/EIPs/issues/20
  */
  contract StandardToken is ERC20, BasicToken {

    mapping (address => mapping (address => uint256)) allowed;

  /*
    Transfer tokens from one address to another
    param _from address The address which you want to send tokens from
    param _to address The address which you want to transfer to
    param _value uint256 the amout of tokens to be transfered
    */
    function transferFrom(address _from, address _to, uint256 _value) returns (bool) {
      var _allowance = allowed[_from][msg.sender];

      // Check is not needed because sub(_allowance, _value) will already throw if this condition is not met
      // require (_value <= _allowance);

      balances[_to] = balances[_to].add(_value);
      balances[_from] = balances[_from].sub(_value);
      allowed[_from][msg.sender] = _allowance.sub(_value);
      Transfer(_from, _to, _value);
      return true;
    }

  /*
  Aprove the passed address to spend the specified amount of tokens on behalf of msg.sender.
   param _spender The address which will spend the funds.
   param _value The amount of Roman Lanskoj's tokens to be spent.
   */
   function approve(address _spender, uint256 _value) returns (bool) {

    // To change the approve amount you first have to reduce the addresses`
    //  allowance to zero by calling `approve(_spender, 0)` if it is not
    //  already 0 to mitigate the race condition described here:
    //  https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
    require((_value == 0) || (allowed[msg.sender][_spender] == 0));

    allowed[msg.sender][_spender] = _value;
    Approval(msg.sender, _spender, _value);
    return true;
  }

  /*
  Function to check the amount of tokens that an owner allowed to a spender.
  param _owner address The address which owns the funds.
  param _spender address The address which will spend the funds.
  return A uint256 specifing the amount of tokens still available for the spender.
  */
  function allowance(address _owner, address _spender) constant returns (uint256 remaining) {
    return allowed[_owner][_spender];
  }
}

/*
The Ownable contract has an owner address, and provides basic authorization control
 functions, this simplifies the implementation of "user permissions".
 */
 contract Ownable {

  address public owner;


  function Ownable() {
    owner = msg.sender;
  }

  /*
  Throws if called by any account other than the owner.
  */
  modifier onlyOwner() {
    require(msg.sender == owner);
    _;
  }

  /*
  Allows the current owner to transfer control of the contract to a newOwner.
  param newOwner The address to transfer ownership to.
  */
  function transferOwnership(address newOwner) onlyOwner {
    require(newOwner != address(0));      
    owner = newOwner;
  }

}

contract TrustPoolToken is StandardToken {
  string public constant name = "Trust Pool Token";
  string public constant symbol = "TPL";
  uint public constant decimals = 10;
  uint256 public initialSupply;

  // Original 10MTI contract
  ERC20 public sourceTokens = ERC20(0x9742fA8CB51d294C8267DDFEad8582E16f18e421); //real


  // Manager account initially holding all 50M tokens
  address public manager = 0x36586ef28844D0f2587c4b565C6D57aA677Ef09E; //real

  function TrustPoolToken() {
   totalSupply = 50000000 * 10 ** decimals;
   balances[msg.sender] = totalSupply;
   initialSupply = totalSupply;

   Transfer(0, this, totalSupply);
   Transfer(this, msg.sender, totalSupply);
  }

  /*
  Converts all 10MTI tokens approve()'d by msg.sender to this contract
  */
  function convert10MTI() external {
    uint256 balance = sourceTokens.balanceOf(msg.sender);
    uint256 allowed = sourceTokens.allowance(msg.sender, this); 
    uint256 tokensToTransfer = (balance < allowed) ? balance : allowed;
    //burn 10MTI
    sourceTokens.transferFrom(msg.sender, 0, tokensToTransfer);
    // transferFrom(manager, msg.sender, tokensToTransfer); this should either be called as `this.call.transferFrom(...)'
    // or just inlined
    balances[manager] = balances[manager].sub(tokensToTransfer);
    balances[msg.sender] = balances[msg.sender].add(tokensToTransfer);
  }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"initialSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"manager","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"convert10MTI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sourceTokens","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]

606060405260048054600160a060020a0319908116739742fa8cb51d294c8267ddfead8582e16f18e42117909155600580549091167336586ef28844d0f2587c4b565c6d57aa677ef09e179055341561005757600080fd5b5b6706f05b59d3b200006000818155600160a060020a0333811682526001602052604080832084905560038490553090911692600080516020610a7f833981519152915190815260200160405180910390a333600160a060020a031630600160a060020a0316600080516020610a7f83398151915260005460405190815260200160405180910390a35b5b61098e806100f16000396000f300606060405236156100a95763ffffffff60e060020a60003504166306fdde0381146100ae578063095ea7b31461013957806318160ddd1461016f57806323b872dd14610194578063313ce567146101d0578063378dc3dc146101f5578063481c6a751461021a57806370a082311461024957806378a7e17d1461027a57806395d89b411461028f578063a9059cbb1461031a578063b2f7e98914610350578063dd62ed3e1461037f575b600080fd5b34156100b957600080fd5b6100c16103b6565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100fe5780820151818401525b6020016100e5565b50505050905090810190601f16801561012b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014457600080fd5b61015b600160a060020a03600435166024356103ed565b604051901515815260200160405180910390f35b341561017a57600080fd5b610182610494565b60405190815260200160405180910390f35b341561019f57600080fd5b61015b600160a060020a036004358116906024351660443561049a565b604051901515815260200160405180910390f35b34156101db57600080fd5b6101826105af565b60405190815260200160405180910390f35b341561020057600080fd5b6101826105b4565b60405190815260200160405180910390f35b341561022557600080fd5b61022d6105ba565b604051600160a060020a03909116815260200160405180910390f35b341561025457600080fd5b610182600160a060020a03600435166105c9565b60405190815260200160405180910390f35b341561028557600080fd5b61028d6105e8565b005b341561029a57600080fd5b6100c16107fe565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100fe5780820151818401525b6020016100e5565b50505050905090810190601f16801561012b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561032557600080fd5b61015b600160a060020a0360043516602435610835565b604051901515815260200160405180910390f35b341561035b57600080fd5b61022d6108f5565b604051600160a060020a03909116815260200160405180910390f35b341561038a57600080fd5b610182600160a060020a0360043581169060243516610904565b60405190815260200160405180910390f35b60408051908101604052601081527f547275737420506f6f6c20546f6b656e00000000000000000000000000000000602082015281565b600081158061041f5750600160a060020a03338116600090815260026020908152604080832093871683529290522054155b151561042a57600080fd5b600160a060020a03338116600081815260026020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60005481565b600160a060020a0380841660009081526002602090815260408083203385168452825280832054938616835260019091528120549091906104e1908463ffffffff61093116565b600160a060020a038086166000908152600160205260408082209390935590871681522054610516908463ffffffff61094b16565b600160a060020a03861660009081526001602052604090205561053f818463ffffffff61094b16565b600160a060020a03808716600081815260026020908152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3600191505b509392505050565b600a81565b60035481565b600554600160a060020a031681565b600160a060020a0381166000908152600160205260409020545b919050565b60045460009081908190600160a060020a03166370a0823133836040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561064757600080fd5b6102c65a03f1151561065857600080fd5b5050506040518051600454909450600160a060020a0316905063dd62ed3e333060006040516020015260405160e060020a63ffffffff8516028152600160a060020a03928316600482015291166024820152604401602060405180830381600087803b15156106c657600080fd5b6102c65a03f115156106d757600080fd5b50505060405180519250508183106106ef57816106f1565b825b600454909150600160a060020a03166323b872dd33600084816040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b151561076057600080fd5b6102c65a03f1151561077157600080fd5b50505060405180515050600554600160a060020a03166000908152600160205260409020546107a6908263ffffffff61094b16565b600554600160a060020a039081166000908152600160205260408082209390935533909116815220546107df908263ffffffff61093116565b600160a060020a0333166000908152600160205260409020555b505050565b60408051908101604052600381527f54504c0000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a03331660009081526001602052604081205461085e908363ffffffff61094b16565b600160a060020a033381166000908152600160205260408082209390935590851681522054610893908363ffffffff61093116565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060015b92915050565b600454600160a060020a031681565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b92915050565b60008282018381101561094057fe5b8091505b5092915050565b60008282111561095757fe5b508082035b929150505600a165627a7a723058202fe4cff37c46991f530c1a7b9ba72d288ea32e24cf97972115db630ac8678bd50029ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef

Deployed Bytecode

0x606060405236156100a95763ffffffff60e060020a60003504166306fdde0381146100ae578063095ea7b31461013957806318160ddd1461016f57806323b872dd14610194578063313ce567146101d0578063378dc3dc146101f5578063481c6a751461021a57806370a082311461024957806378a7e17d1461027a57806395d89b411461028f578063a9059cbb1461031a578063b2f7e98914610350578063dd62ed3e1461037f575b600080fd5b34156100b957600080fd5b6100c16103b6565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100fe5780820151818401525b6020016100e5565b50505050905090810190601f16801561012b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014457600080fd5b61015b600160a060020a03600435166024356103ed565b604051901515815260200160405180910390f35b341561017a57600080fd5b610182610494565b60405190815260200160405180910390f35b341561019f57600080fd5b61015b600160a060020a036004358116906024351660443561049a565b604051901515815260200160405180910390f35b34156101db57600080fd5b6101826105af565b60405190815260200160405180910390f35b341561020057600080fd5b6101826105b4565b60405190815260200160405180910390f35b341561022557600080fd5b61022d6105ba565b604051600160a060020a03909116815260200160405180910390f35b341561025457600080fd5b610182600160a060020a03600435166105c9565b60405190815260200160405180910390f35b341561028557600080fd5b61028d6105e8565b005b341561029a57600080fd5b6100c16107fe565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100fe5780820151818401525b6020016100e5565b50505050905090810190601f16801561012b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561032557600080fd5b61015b600160a060020a0360043516602435610835565b604051901515815260200160405180910390f35b341561035b57600080fd5b61022d6108f5565b604051600160a060020a03909116815260200160405180910390f35b341561038a57600080fd5b610182600160a060020a0360043581169060243516610904565b60405190815260200160405180910390f35b60408051908101604052601081527f547275737420506f6f6c20546f6b656e00000000000000000000000000000000602082015281565b600081158061041f5750600160a060020a03338116600090815260026020908152604080832093871683529290522054155b151561042a57600080fd5b600160a060020a03338116600081815260026020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60005481565b600160a060020a0380841660009081526002602090815260408083203385168452825280832054938616835260019091528120549091906104e1908463ffffffff61093116565b600160a060020a038086166000908152600160205260408082209390935590871681522054610516908463ffffffff61094b16565b600160a060020a03861660009081526001602052604090205561053f818463ffffffff61094b16565b600160a060020a03808716600081815260026020908152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3600191505b509392505050565b600a81565b60035481565b600554600160a060020a031681565b600160a060020a0381166000908152600160205260409020545b919050565b60045460009081908190600160a060020a03166370a0823133836040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561064757600080fd5b6102c65a03f1151561065857600080fd5b5050506040518051600454909450600160a060020a0316905063dd62ed3e333060006040516020015260405160e060020a63ffffffff8516028152600160a060020a03928316600482015291166024820152604401602060405180830381600087803b15156106c657600080fd5b6102c65a03f115156106d757600080fd5b50505060405180519250508183106106ef57816106f1565b825b600454909150600160a060020a03166323b872dd33600084816040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b151561076057600080fd5b6102c65a03f1151561077157600080fd5b50505060405180515050600554600160a060020a03166000908152600160205260409020546107a6908263ffffffff61094b16565b600554600160a060020a039081166000908152600160205260408082209390935533909116815220546107df908263ffffffff61093116565b600160a060020a0333166000908152600160205260409020555b505050565b60408051908101604052600381527f54504c0000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a03331660009081526001602052604081205461085e908363ffffffff61094b16565b600160a060020a033381166000908152600160205260408082209390935590851681522054610893908363ffffffff61093116565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060015b92915050565b600454600160a060020a031681565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b92915050565b60008282018381101561094057fe5b8091505b5092915050565b60008282111561095757fe5b508082035b929150505600a165627a7a723058202fe4cff37c46991f530c1a7b9ba72d288ea32e24cf97972115db630ac8678bd50029

Swarm Source

bzzr://2fe4cff37c46991f530c1a7b9ba72d288ea32e24cf97972115db630ac8678bd5

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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.