ETH Price: $2,791.10 (+4.43%)

Token

Deposit Asset (DA)
 

Overview

Max Total Supply

200,000,000 DA

Holders

5

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 6 Decimals)

Balance
199,892,000 DA

Value
$0.00
0xc138d003247a9d1318ad7a38464b79d55f3cf939
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
DepositAsset

Compiler Version
v0.5.0+commit.1d4f565a

Optimization Enabled:
Yes with 200 runs

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

pragma solidity 0.5.0; /*

___________________________________________________________________
  _      _                                        ______           
  |  |  /          /                                /              
--|-/|-/-----__---/----__----__---_--_----__-------/-------__------
  |/ |/    /___) /   /   ' /   ) / /  ) /___)     /      /   )     
__/__|____(___ _/___(___ _(___/_/_/__/_(___ _____/______(___/__o_o_

                                                           
                                                           
DDDDDDDDDDDDD                            AAA               
D::::::::::::DDD                        A:::A              
D:::::::::::::::DD                     A:::::A             
DDD:::::DDDDD:::::D                   A:::::::A            
  D:::::D    D:::::D                 A:::::::::A           
  D:::::D     D:::::D               A:::::A:::::A          
  D:::::D     D:::::D              A:::::A A:::::A         
  D:::::D     D:::::D             A:::::A   A:::::A        
  D:::::D     D:::::D            A:::::A     A:::::A       
  D:::::D     D:::::D           A:::::AAAAAAAAA:::::A      
  D:::::D     D:::::D          A:::::::::::::::::::::A     
  D:::::D    D:::::D          A:::::AAAAAAAAAAAAA:::::A    
DDD:::::DDDDD:::::D          A:::::A             A:::::A   
D:::::::::::::::DD          A:::::A               A:::::A  
D::::::::::::DDD           A:::::A                 A:::::A 
DDDDDDDDDDDDD             AAAAAAA                   AAAAAAA
                                                           
                                                           
                                                           
// ----------------------------------------------------------------------------
// 'Deposit Asset' Token contract with following functionalities:
//      => Higher control of owner
//      => SafeMath implementation 
//
// Name             : Deposit Asset
// Symbol           : DA
// Decimals         : 15
//
// Copyright (c) 2018 FIRST DECENTRALIZED DEPOSIT PLATFORM ( https://fddp.io )
// Contract designed by: EtherAuthority ( https://EtherAuthority.io ) 
// ----------------------------------------------------------------------------
*/ 


/**
 * @title ERC20Basic
 * @dev Simpler version of ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/179
 */
contract ERC20Basic {
  function balanceOf(address who) public view returns (uint256);
  function transfer(address to, uint256 value) public returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}
/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
contract ERC20 is ERC20Basic {
  function allowance(address owner, address spender) public view returns (uint256);
  function transferFrom(address from, address to, uint256 value) public returns (bool);
  function approve(address spender, uint256 value) public returns (bool);
  event Approval(address indexed owner, address indexed spender, uint256 value);
}
/**
 * @title Basic token
 * @dev Basic version of StandardToken, with no allowances. 
 */
contract BasicToken is ERC20Basic {
    
  using SafeMath for uint256;

  mapping(address => uint256) internal balances;  
  mapping(address => uint256) public holdersWithdrows;
  
  /**
  * @dev transfer token for a specified address
  * @param _to The address to transfer to.
  * @param _value The amount to be transferred.
  */
  function transfer(address _to, uint256 _value) public returns (bool) {
    uint256 _buffer = holdersWithdrows[msg.sender].mul(_value).div(balances[msg.sender]);
    holdersWithdrows[_to] += _buffer;
    holdersWithdrows[msg.sender] -= _buffer;
    
    balances[msg.sender] = balances[msg.sender].sub(_value);
    balances[_to] = balances[_to].add(_value);

    emit Transfer(msg.sender, _to, _value);
    return true;
  }
  /**
  * @dev 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) public view returns (uint256 balance) {
    return balances[_owner];
  }

}
/**
 * @title Standard ERC20 token
 *
 * @dev Implementation of the basic standard token.
 * @dev https://github.com/ethereum/EIPs/issues/20
 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 */
contract StandardToken is ERC20, BasicToken {

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

  /**
   * @dev 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) public returns (bool) {
    uint256 _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);
    require(_value != 0);
    uint256 _buffer = holdersWithdrows[msg.sender].mul(_value).div(balances[msg.sender]);
    holdersWithdrows[_to] += _buffer;
    holdersWithdrows[msg.sender] -= _buffer;

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

  /**
   * @dev 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 tokens to be spent.
   */
  function approve(address _spender, uint256 _value) public 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;
    emit Approval(msg.sender, _spender, _value);
    return true;
  }

  /**
   * @dev 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) public view returns (uint256 remaining) {
    return allowed[_owner][_spender];
  }

}

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {
    
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a * b;
    assert(a == 0 || c / a == b);
    return c;
  }

  function div(uint256 a, uint256 b) internal pure 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 pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
  
}
/**
 * TheStocksTokens
 * 
 */
contract DepositAsset is StandardToken {
    
    using SafeMath for uint256;
    
    string public constant name = "Deposit Asset";
  
    string public constant symbol = "DA";
  
    uint32 public constant decimals = 6;

    uint256 private _totalSupply = 200000000000000; // stocks
    
    uint public _totalWithdrow  = 0;
    
    uint public total_withdrows  = 0;
    
    constructor () public {
        balances[msg.sender] = _totalSupply;
        emit Transfer(address(0x0), msg.sender, _totalSupply);
    }

	function totalSupply() public view returns(uint256 total) {
        return _totalSupply;
    }
    
    // get any ethers to contract
    function () external payable {
        if (msg.value == 1 wei) {
            require(balances[msg.sender] > 0);
        
            uint256 _totalDevidends = devidendsOf(msg.sender);
            holdersWithdrows[msg.sender] += _totalDevidends;
            _totalWithdrow += _totalDevidends;
            
            msg.sender.transfer(_totalDevidends);
        }
    }
    
    /* TEST / function holdersWithdrowsOf(address _owner) public constant returns(uint256 hw) {
        return holdersWithdrows[_owner];
    }//*/
    function getDevidends() public returns (bool success){
        require(balances[msg.sender] > 0);
        
        uint256 _totalDevidends = devidendsOf(msg.sender);
        holdersWithdrows[msg.sender] += _totalDevidends;
        _totalWithdrow += _totalDevidends;
        
        msg.sender.transfer(_totalDevidends);
        
        return true;
    }
    function devidendsOf(address _owner) public view returns (uint256 devidends) {
        address self = address(this);
        // определить сумму всех начисленых средств, определить долю и отминусовать ранее снятые дивиденды
        return self.balance
            .add(_totalWithdrow)
            .mul(balances[_owner])
            .div(_totalSupply)
            .sub(holdersWithdrows[_owner]);
    }
   
    function fund() public payable returns(bool success) {
        success = true;
    }
}

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":"total","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":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"total_withdrows","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"devidendsOf","outputs":[{"name":"devidends","type":"uint256"}],"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":true,"inputs":[{"name":"","type":"address"}],"name":"holdersWithdrows","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_totalWithdrow","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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":false,"inputs":[],"name":"fund","outputs":[{"name":"success","type":"bool"}],"payable":true,"stateMutability":"payable","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"},{"constant":false,"inputs":[],"name":"getDevidends","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"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"}]

608060405265b5e620f480006003556000600455600060055534801561002457600080fd5b5060035433600081815260208181526040808320859055805194855251929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a36109a58061007e6000396000f3fe6080604052600436106100da5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610158578063095ea7b3146101e257806318160ddd1461022f57806323b872dd14610256578063313ce567146102995780634840b07c146102c757806350e08ddb146102dc57806370a082311461030f578063896aa79a1461034257806389acb9111461037557806395d89b411461038a578063a9059cbb1461039f578063b60d4288146103d8578063dd62ed3e146103e0578063efa251961461041b575b34600114156101565733600090815260208190526040812054116100fd57600080fd5b600061010833610430565b33600081815260016020526040808220805485019055600480548501905551929350909183156108fc0291849190818181858888f19350505050158015610153573d6000803e3d6000fd5b50505b005b34801561016457600080fd5b5061016d6104a7565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101a757818101518382015260200161018f565b50505050905090810190601f1680156101d45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101ee57600080fd5b5061021b6004803603604081101561020557600080fd5b50600160a060020a0381351690602001356104de565b604080519115158252519081900360200190f35b34801561023b57600080fd5b50610244610580565b60408051918252519081900360200190f35b34801561026257600080fd5b5061021b6004803603606081101561027957600080fd5b50600160a060020a03813581169160208101359091169060400135610586565b3480156102a557600080fd5b506102ae6106f8565b6040805163ffffffff9092168252519081900360200190f35b3480156102d357600080fd5b506102446106fd565b3480156102e857600080fd5b50610244600480360360208110156102ff57600080fd5b5035600160a060020a0316610430565b34801561031b57600080fd5b506102446004803603602081101561033257600080fd5b5035600160a060020a0316610703565b34801561034e57600080fd5b506102446004803603602081101561036557600080fd5b5035600160a060020a031661071e565b34801561038157600080fd5b50610244610730565b34801561039657600080fd5b5061016d610736565b3480156103ab57600080fd5b5061021b600480360360408110156103c257600080fd5b50600160a060020a03813516906020013561076d565b61021b610873565b3480156103ec57600080fd5b506102446004803603604081101561040357600080fd5b50600160a060020a0381358116916020013516610878565b34801561042757600080fd5b5061021b6108a3565b600160a060020a038116600090815260016020908152604080832054600354928490529083205460045430936104a0939261049492610488919061047c9088319063ffffffff61091d16565b9063ffffffff61092c16565b9063ffffffff61095016565b9063ffffffff61096716565b9392505050565b60408051808201909152600d81527f4465706f73697420417373657400000000000000000000000000000000000000602082015281565b600081158061050e5750336000908152600260209081526040808320600160a060020a0387168452909152902054155b151561051957600080fd5b336000818152600260209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60035490565b600160a060020a03831660009081526002602090815260408083203384529091528120548215156105b657600080fd5b336000908152602081815260408083205460019092528220546105e49190610488908763ffffffff61092c16565b600160a060020a038616600081815260016020908152604080832080548601905533835280832080548690039055928252819052205490915061062d908563ffffffff61091d16565b600160a060020a038087166000908152602081905260408082209390935590881681522054610662908563ffffffff61096716565b600160a060020a03871660009081526020819052604090205561068b828563ffffffff61096716565b600160a060020a03808816600081815260026020908152604080832033845282529182902094909455805188815290519289169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600195945050505050565b600681565b60055481565b600160a060020a031660009081526020819052604090205490565b60016020526000908152604090205481565b60045481565b60408051808201909152600281527f4441000000000000000000000000000000000000000000000000000000000000602082015281565b33600090815260208181526040808320546001909252822054829161079c91610488908663ffffffff61092c16565b600160a060020a038516600090815260016020908152604080832080548501905533835280832080548590039055908290529020549091506107e4908463ffffffff61096716565b3360009081526020819052604080822092909255600160a060020a03861681522054610816908463ffffffff61091d16565b600160a060020a038516600081815260208181526040918290209390935580518681529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060019392505050565b600190565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b3360009081526020819052604081205481106108be57600080fd5b60006108c933610430565b33600081815260016020526040808220805485019055600480548501905551929350909183156108fc0291849190818181858888f19350505050158015610914573d6000803e3d6000fd5b50600191505090565b6000828201838110156104a057fe5b6000828202831580610948575082848281151561094557fe5b04145b15156104a057fe5b600080828481151561095e57fe5b04949350505050565b60008282111561097357fe5b5090039056fea165627a7a72305820a03d69d5f8a18c6225bde1ad11248d1c5bb13c221ba9daee6158c2c26cb837370029

Deployed Bytecode

0x6080604052600436106100da5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610158578063095ea7b3146101e257806318160ddd1461022f57806323b872dd14610256578063313ce567146102995780634840b07c146102c757806350e08ddb146102dc57806370a082311461030f578063896aa79a1461034257806389acb9111461037557806395d89b411461038a578063a9059cbb1461039f578063b60d4288146103d8578063dd62ed3e146103e0578063efa251961461041b575b34600114156101565733600090815260208190526040812054116100fd57600080fd5b600061010833610430565b33600081815260016020526040808220805485019055600480548501905551929350909183156108fc0291849190818181858888f19350505050158015610153573d6000803e3d6000fd5b50505b005b34801561016457600080fd5b5061016d6104a7565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101a757818101518382015260200161018f565b50505050905090810190601f1680156101d45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101ee57600080fd5b5061021b6004803603604081101561020557600080fd5b50600160a060020a0381351690602001356104de565b604080519115158252519081900360200190f35b34801561023b57600080fd5b50610244610580565b60408051918252519081900360200190f35b34801561026257600080fd5b5061021b6004803603606081101561027957600080fd5b50600160a060020a03813581169160208101359091169060400135610586565b3480156102a557600080fd5b506102ae6106f8565b6040805163ffffffff9092168252519081900360200190f35b3480156102d357600080fd5b506102446106fd565b3480156102e857600080fd5b50610244600480360360208110156102ff57600080fd5b5035600160a060020a0316610430565b34801561031b57600080fd5b506102446004803603602081101561033257600080fd5b5035600160a060020a0316610703565b34801561034e57600080fd5b506102446004803603602081101561036557600080fd5b5035600160a060020a031661071e565b34801561038157600080fd5b50610244610730565b34801561039657600080fd5b5061016d610736565b3480156103ab57600080fd5b5061021b600480360360408110156103c257600080fd5b50600160a060020a03813516906020013561076d565b61021b610873565b3480156103ec57600080fd5b506102446004803603604081101561040357600080fd5b50600160a060020a0381358116916020013516610878565b34801561042757600080fd5b5061021b6108a3565b600160a060020a038116600090815260016020908152604080832054600354928490529083205460045430936104a0939261049492610488919061047c9088319063ffffffff61091d16565b9063ffffffff61092c16565b9063ffffffff61095016565b9063ffffffff61096716565b9392505050565b60408051808201909152600d81527f4465706f73697420417373657400000000000000000000000000000000000000602082015281565b600081158061050e5750336000908152600260209081526040808320600160a060020a0387168452909152902054155b151561051957600080fd5b336000818152600260209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60035490565b600160a060020a03831660009081526002602090815260408083203384529091528120548215156105b657600080fd5b336000908152602081815260408083205460019092528220546105e49190610488908763ffffffff61092c16565b600160a060020a038616600081815260016020908152604080832080548601905533835280832080548690039055928252819052205490915061062d908563ffffffff61091d16565b600160a060020a038087166000908152602081905260408082209390935590881681522054610662908563ffffffff61096716565b600160a060020a03871660009081526020819052604090205561068b828563ffffffff61096716565b600160a060020a03808816600081815260026020908152604080832033845282529182902094909455805188815290519289169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600195945050505050565b600681565b60055481565b600160a060020a031660009081526020819052604090205490565b60016020526000908152604090205481565b60045481565b60408051808201909152600281527f4441000000000000000000000000000000000000000000000000000000000000602082015281565b33600090815260208181526040808320546001909252822054829161079c91610488908663ffffffff61092c16565b600160a060020a038516600090815260016020908152604080832080548501905533835280832080548590039055908290529020549091506107e4908463ffffffff61096716565b3360009081526020819052604080822092909255600160a060020a03861681522054610816908463ffffffff61091d16565b600160a060020a038516600081815260208181526040918290209390935580518681529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060019392505050565b600190565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b3360009081526020819052604081205481106108be57600080fd5b60006108c933610430565b33600081815260016020526040808220805485019055600480548501905551929350909183156108fc0291849190818181858888f19350505050158015610914573d6000803e3d6000fd5b50600191505090565b6000828201838110156104a057fe5b6000828202831580610948575082848281151561094557fe5b04145b15156104a057fe5b600080828481151561095e57fe5b04949350505050565b60008282111561097357fe5b5090039056fea165627a7a72305820a03d69d5f8a18c6225bde1ad11248d1c5bb13c221ba9daee6158c2c26cb837370029

Swarm Source

bzzr://a03d69d5f8a18c6225bde1ad11248d1c5bb13c221ba9daee6158c2c26cb83737
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.