Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Source Code
Overview
Max Total Supply
0
Holders
0
Transfers
-
0
Market
Onchain Market Cap
-
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 0 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
| # | Exchange | Pair | Price | 24H Volume | % Volume |
|---|
Contract Name:
ETH911
Compiler Version
v0.4.25+commit.59dbf8f1
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2018-11-01
*/
pragma solidity ^0.4.25;
/*
* 911ETH - Financial Ambulance
*
* INVEST AND GAIN UP TO 9.11% DAILY
*
* For detailed information go to 911eth.finance
*/
contract ETH911 {
using SafeMath for uint;
//Total deposit of every participant
mapping(address => uint) public balance;
//Time since last deposit
mapping(address => uint) public time;
//Current withdrawal amount
mapping(address => uint) public percentWithdraw;
//Overall withdrawal amount
mapping(address => uint) public allPercentWithdraw;
//interest rates of participants
mapping(address => uint) public interestRate;
//bonus rates of participants
mapping(address => uint) public bonusRate;
//checks whether participant has referrer or not
mapping (address => uint) public referrers;
//minimal amount of time since payment to request withdraw
uint public stepTime = 1 hours;
//Total count of participants
uint public countOfInvestors = 0;
//Advertising address
address public advertising = 0x6bD679Be133eD01262E206768734Ba20823fCa43;
//Address for support service
address public support = 0xDDd7eC52FAdB9f3673220e88EC72D0783E2E9d0f;
//Overall project(support and ads) rate = 9.11%
uint projectPercent = 911;
//Data of DATA field
bytes msg_data;
event Invest(address investor, uint256 amount);
event Withdraw(address investor, uint256 amount);
modifier userExist() {
require(balance[msg.sender] > 0, "Address not found");
_;
}
//Sending payout by request
function collectPercent() userExist internal {
uint payout = payoutAmount();
if (payout > address(this).balance)
payout = address(this).balance;
percentWithdraw[msg.sender] = percentWithdraw[msg.sender].add(payout);
allPercentWithdraw[msg.sender] = allPercentWithdraw[msg.sender].add(payout);
msg.sender.transfer(payout);
emit Withdraw(msg.sender, payout);
}
//Setting interest rate for participant depending on overall count of participants
function setInterestRate() private {
if (interestRate[msg.sender]<100)
if (countOfInvestors <= 100)
interestRate[msg.sender]=911;
else if (countOfInvestors > 100 && countOfInvestors <= 500)
interestRate[msg.sender]=611;
else if (countOfInvestors > 500)
interestRate[msg.sender]=311;
}
//Setting bonus rate for participant depending on overall count of participants
function setBonusRate() private {
if (countOfInvestors <= 100)
bonusRate[msg.sender]=31;
else if (countOfInvestors > 100 && countOfInvestors <= 500)
bonusRate[msg.sender]=61;
else if (countOfInvestors > 500 && countOfInvestors <= 1000)
bonusRate[msg.sender]=91;
}
//Sending bonuses to referrers and referrals
function sendRefBonuses() private{
if(msg_data.length == 20 && referrers[msg.sender] == 0) {
address referrer = bytesToAddress(msg_data);
if(referrer != msg.sender && balance[referrer]>0){
referrers[msg.sender] = 1;
uint bonus = msg.value.mul(311).div(10000);
referrer.transfer(bonus);
msg.sender.transfer(bonus);
}
}
}
//Transmits bytes to address
function bytesToAddress(bytes source) internal pure returns(address) {
uint result;
uint mul = 1;
for(uint i = 20; i > 0; i--) {
result += uint8(source[i-1])*mul;
mul = mul*256;
}
return address(result);
}
//Calculating amount of payout
function payoutAmount() public view returns(uint256) {
if ((balance[msg.sender].mul(2)) <= allPercentWithdraw[msg.sender])
interestRate[msg.sender] = 100;
uint256 percent = interestRate[msg.sender];
uint256 different = now.sub(time[msg.sender]).div(stepTime);
if (different>264)
different=different.mul(bonusRate[msg.sender]).div(100).add(different);
uint256 rate = balance[msg.sender].mul(percent).div(10000);
uint256 withdrawalAmount = rate.mul(different).div(24).sub(percentWithdraw[msg.sender]);
return withdrawalAmount;
}
//Deposit processing
function deposit() private {
if (msg.value > 0) {
if (balance[msg.sender] == 0){
countOfInvestors += 1;
setInterestRate();
setBonusRate();
}
if (balance[msg.sender] > 0 && now > time[msg.sender].add(stepTime)) {
collectPercent();
percentWithdraw[msg.sender] = 0;
}
balance[msg.sender] = balance[msg.sender].add(msg.value);
time[msg.sender] = now;
advertising.transfer(msg.value.mul(projectPercent).div(20000));
support.transfer(msg.value.mul(projectPercent).div(20000));
msg_data = bytes(msg.data);
sendRefBonuses();
emit Invest(msg.sender, msg.value);
} else {
collectPercent();
}
}
//Refund by request
function returnDeposit() userExist private {
if (balance[msg.sender] > allPercentWithdraw[msg.sender]) {
uint256 payout = balance[msg.sender].sub(allPercentWithdraw[msg.sender]);
if (payout > address(this).balance)
payout = address(this).balance;
interestRate[msg.sender] = 0;
bonusRate[msg.sender] = 0;
time[msg.sender] = 0;
percentWithdraw[msg.sender] = 0;
allPercentWithdraw[msg.sender] = 0;
balance[msg.sender] = 0;
referrers[msg.sender] = 0;
msg.sender.transfer(payout.mul(40).div(100));
advertising.transfer(payout.mul(25).div(100));
support.transfer(payout.mul(25).div(100));
}
}
function() external payable {
if (msg.value == 0.000911 ether) {
returnDeposit();
} else {
deposit();
}
}
}
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(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;
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":true,"inputs":[],"name":"support","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"allPercentWithdraw","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"referrers","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"advertising","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"payoutAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"percentWithdraw","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"interestRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"time","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"countOfInvestors","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stepTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"bonusRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"investor","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Invest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"investor","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"}]Contract Creation Code
6080604052610e10600755600060085560098054600160a060020a0319908116736bd679be133ed01262e206768734ba20823fca4317909155600a805490911673ddd7ec52fadb9f3673220e88ec72d0783e2e9d0f17905561038f600b5534801561006957600080fd5b50610de0806100796000396000f3006080604052600436106100b95763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663119f874781146100df5780634883c329146101105780634a3b68cc14610143578063573328ef146101645780636b46c8c3146101795780637960eff81461018e5780637c2c69c0146101af5780637c67a3e2146101d0578063e3d670d7146101f1578063f3f7d63314610212578063f488fdd014610227578063fc1012e11461023c575b3466033c8cb763f00014156100d5576100d061025d565b6100dd565b6100dd610470565b005b3480156100eb57600080fd5b506100f4610648565b60408051600160a060020a039092168252519081900360200190f35b34801561011c57600080fd5b50610131600160a060020a0360043516610657565b60408051918252519081900360200190f35b34801561014f57600080fd5b50610131600160a060020a0360043516610669565b34801561017057600080fd5b506100f461067b565b34801561018557600080fd5b5061013161068a565b34801561019a57600080fd5b50610131600160a060020a03600435166107be565b3480156101bb57600080fd5b50610131600160a060020a03600435166107d0565b3480156101dc57600080fd5b50610131600160a060020a03600435166107e2565b3480156101fd57600080fd5b50610131600160a060020a03600435166107f4565b34801561021e57600080fd5b50610131610806565b34801561023357600080fd5b5061013161080c565b34801561024857600080fd5b50610131600160a060020a0360043516610812565b3360009081526020819052604081205481106102da57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f41646472657373206e6f7420666f756e64000000000000000000000000000000604482015290519081900360640190fd5b336000908152600360209081526040808320549183905290912054111561046d573360009081526003602090815260408083205491839052909120546103259163ffffffff61082416565b90503031811115610334575030315b3360008181526004602090815260408083208390556005825280832083905560018252808320839055600282528083208390556003825280832083905582825280832083905560069091528120556108fc6103a7606461039b85602863ffffffff61083616565b9063ffffffff61086c16565b6040518115909202916000818181858888f193505050501580156103cf573d6000803e3d6000fd5b50600954600160a060020a03166108fc6103f5606461039b85601963ffffffff61083616565b6040518115909202916000818181858888f1935050505015801561041d573d6000803e3d6000fd5b50600a54600160a060020a03166108fc610443606461039b85601963ffffffff61083616565b6040518115909202916000818181858888f1935050505015801561046b573d6000803e3d6000fd5b505b50565b600034111561063e573360009081526020819052604090205415156104a8576008805460010190556104a0610883565b6104a8610914565b336000908152602081905260408120541180156104e55750600754336000908152600160205260409020546104e29163ffffffff61099a16565b42115b15610503576104f26109a9565b336000908152600260205260408120555b33600090815260208190526040902054610523903463ffffffff61099a16565b33600090815260208181526040808320939093556001905220429055600954600b54600160a060020a03909116906108fc9061056890614e209061039b903490610836565b6040518115909202916000818181858888f19350505050158015610590573d6000803e3d6000fd5b50600a54600b54600160a060020a03909116906108fc906105c090614e209061039b90349063ffffffff61083616565b6040518115909202916000818181858888f193505050501580156105e8573d6000803e3d6000fd5b506105f6600c600036610d19565b506105ff610b06565b6040805133815234602082015281517fd90d253a9de34d2fdd5a75ae49ea17fcb43af32fc8ea08cc6d2341991dd3872e929181900390910190a1610646565b6106466109a9565b565b600a54600160a060020a031681565b60036020526000908152604090205481565b60066020526000908152604090205481565b600954600160a060020a031681565b336000908152600360209081526040808320549183905282205482918291829182916106bd90600263ffffffff61083616565b116106d657336000908152600460205260409020606490555b33600090815260046020908152604080832054600754600190935292205491955061070c9161039b90429063ffffffff61082416565b925061010883111561075557336000908152600560205260409020546107529084906107469060649061039b90849063ffffffff61083616565b9063ffffffff61099a16565b92505b3360009081526020819052604090205461077d906127109061039b908763ffffffff61083616565b336000908152600260205260409020549092506107b5906107a9601861039b868863ffffffff61083616565b9063ffffffff61082416565b95945050505050565b60026020526000908152604090205481565b60046020526000908152604090205481565b60016020526000908152604090205481565b60006020819052908152604090205481565b60085481565b60075481565b60056020526000908152604090205481565b60008282111561083057fe5b50900390565b6000808315156108495760009150610865565b5082820282848281151561085957fe5b041461086157fe5b8091505b5092915050565b600080828481151561087a57fe5b04949350505050565b3360009081526004602052604090205460641115610646576008546064106108be5733600090815260046020526040902061038f9055610646565b60646008541180156108d457506101f460085411155b156108f2573360009081526004602052604090206102639055610646565b6101f46008541115610646573360009081526004602052604090206101379055565b60085460641061093657336000908152600560205260409020601f9055610646565b606460085411801561094c57506101f460085411155b1561096957336000908152600560205260409020603d9055610646565b6101f460085411801561098057506103e860085411155b1561064657336000908152600560205260409020605b9055565b60008282018381101561086157fe5b336000908152602081905260408120548110610a2657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f41646472657373206e6f7420666f756e64000000000000000000000000000000604482015290519081900360640190fd5b610a2e61068a565b90503031811115610a3d575030315b33600090815260026020526040902054610a5d908263ffffffff61099a16565b33600090815260026020908152604080832093909355600390522054610a89908263ffffffff61099a16565b33600081815260036020526040808220939093559151909183156108fc02918491818181858888f19350505050158015610ac7573d6000803e3d6000fd5b50604080513381526020810183905281517f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364929181900390910190a150565b600080600c8054600181600116156101000203166002900490506014148015610b3c575033600090815260066020526040902054155b1561046b57600c8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152610bd89390929091830182828015610bce5780601f10610ba357610100808354040283529160200191610bce565b820191906000526020600020905b815481529060010190602001808311610bb157829003601f168201915b5050505050610ca5565b9150600160a060020a0382163314801590610c095750600160a060020a038216600090815260208190526040812054115b1561046b5733600090815260066020526040902060019055610c3961271061039b3461013763ffffffff61083616565b604051909150600160a060020a0383169082156108fc029083906000818181858888f19350505050158015610c72573d6000803e3d6000fd5b50604051339082156108fc029083906000818181858888f19350505050158015610ca0573d6000803e3d6000fd5b505050565b600080600160145b6000811115610d1057818560018303815181101515610cc857fe5b6020910101517f01000000000000000000000000000000000000000000000000000000000000009081900481020460ff16029290920191610100919091029060001901610cad565b50909392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610d5a5782800160ff19823516178555610d87565b82800160010185558215610d87579182015b82811115610d87578235825591602001919060010190610d6c565b50610d93929150610d97565b5090565b610db191905b80821115610d935760008155600101610d9d565b905600a165627a7a72305820e0bd65cec0ead6b750b2a5d8496f281621d91826d2d0526c2edad84fb8ad07ac0029
Deployed Bytecode
0x6080604052600436106100b95763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663119f874781146100df5780634883c329146101105780634a3b68cc14610143578063573328ef146101645780636b46c8c3146101795780637960eff81461018e5780637c2c69c0146101af5780637c67a3e2146101d0578063e3d670d7146101f1578063f3f7d63314610212578063f488fdd014610227578063fc1012e11461023c575b3466033c8cb763f00014156100d5576100d061025d565b6100dd565b6100dd610470565b005b3480156100eb57600080fd5b506100f4610648565b60408051600160a060020a039092168252519081900360200190f35b34801561011c57600080fd5b50610131600160a060020a0360043516610657565b60408051918252519081900360200190f35b34801561014f57600080fd5b50610131600160a060020a0360043516610669565b34801561017057600080fd5b506100f461067b565b34801561018557600080fd5b5061013161068a565b34801561019a57600080fd5b50610131600160a060020a03600435166107be565b3480156101bb57600080fd5b50610131600160a060020a03600435166107d0565b3480156101dc57600080fd5b50610131600160a060020a03600435166107e2565b3480156101fd57600080fd5b50610131600160a060020a03600435166107f4565b34801561021e57600080fd5b50610131610806565b34801561023357600080fd5b5061013161080c565b34801561024857600080fd5b50610131600160a060020a0360043516610812565b3360009081526020819052604081205481106102da57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f41646472657373206e6f7420666f756e64000000000000000000000000000000604482015290519081900360640190fd5b336000908152600360209081526040808320549183905290912054111561046d573360009081526003602090815260408083205491839052909120546103259163ffffffff61082416565b90503031811115610334575030315b3360008181526004602090815260408083208390556005825280832083905560018252808320839055600282528083208390556003825280832083905582825280832083905560069091528120556108fc6103a7606461039b85602863ffffffff61083616565b9063ffffffff61086c16565b6040518115909202916000818181858888f193505050501580156103cf573d6000803e3d6000fd5b50600954600160a060020a03166108fc6103f5606461039b85601963ffffffff61083616565b6040518115909202916000818181858888f1935050505015801561041d573d6000803e3d6000fd5b50600a54600160a060020a03166108fc610443606461039b85601963ffffffff61083616565b6040518115909202916000818181858888f1935050505015801561046b573d6000803e3d6000fd5b505b50565b600034111561063e573360009081526020819052604090205415156104a8576008805460010190556104a0610883565b6104a8610914565b336000908152602081905260408120541180156104e55750600754336000908152600160205260409020546104e29163ffffffff61099a16565b42115b15610503576104f26109a9565b336000908152600260205260408120555b33600090815260208190526040902054610523903463ffffffff61099a16565b33600090815260208181526040808320939093556001905220429055600954600b54600160a060020a03909116906108fc9061056890614e209061039b903490610836565b6040518115909202916000818181858888f19350505050158015610590573d6000803e3d6000fd5b50600a54600b54600160a060020a03909116906108fc906105c090614e209061039b90349063ffffffff61083616565b6040518115909202916000818181858888f193505050501580156105e8573d6000803e3d6000fd5b506105f6600c600036610d19565b506105ff610b06565b6040805133815234602082015281517fd90d253a9de34d2fdd5a75ae49ea17fcb43af32fc8ea08cc6d2341991dd3872e929181900390910190a1610646565b6106466109a9565b565b600a54600160a060020a031681565b60036020526000908152604090205481565b60066020526000908152604090205481565b600954600160a060020a031681565b336000908152600360209081526040808320549183905282205482918291829182916106bd90600263ffffffff61083616565b116106d657336000908152600460205260409020606490555b33600090815260046020908152604080832054600754600190935292205491955061070c9161039b90429063ffffffff61082416565b925061010883111561075557336000908152600560205260409020546107529084906107469060649061039b90849063ffffffff61083616565b9063ffffffff61099a16565b92505b3360009081526020819052604090205461077d906127109061039b908763ffffffff61083616565b336000908152600260205260409020549092506107b5906107a9601861039b868863ffffffff61083616565b9063ffffffff61082416565b95945050505050565b60026020526000908152604090205481565b60046020526000908152604090205481565b60016020526000908152604090205481565b60006020819052908152604090205481565b60085481565b60075481565b60056020526000908152604090205481565b60008282111561083057fe5b50900390565b6000808315156108495760009150610865565b5082820282848281151561085957fe5b041461086157fe5b8091505b5092915050565b600080828481151561087a57fe5b04949350505050565b3360009081526004602052604090205460641115610646576008546064106108be5733600090815260046020526040902061038f9055610646565b60646008541180156108d457506101f460085411155b156108f2573360009081526004602052604090206102639055610646565b6101f46008541115610646573360009081526004602052604090206101379055565b60085460641061093657336000908152600560205260409020601f9055610646565b606460085411801561094c57506101f460085411155b1561096957336000908152600560205260409020603d9055610646565b6101f460085411801561098057506103e860085411155b1561064657336000908152600560205260409020605b9055565b60008282018381101561086157fe5b336000908152602081905260408120548110610a2657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f41646472657373206e6f7420666f756e64000000000000000000000000000000604482015290519081900360640190fd5b610a2e61068a565b90503031811115610a3d575030315b33600090815260026020526040902054610a5d908263ffffffff61099a16565b33600090815260026020908152604080832093909355600390522054610a89908263ffffffff61099a16565b33600081815260036020526040808220939093559151909183156108fc02918491818181858888f19350505050158015610ac7573d6000803e3d6000fd5b50604080513381526020810183905281517f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364929181900390910190a150565b600080600c8054600181600116156101000203166002900490506014148015610b3c575033600090815260066020526040902054155b1561046b57600c8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152610bd89390929091830182828015610bce5780601f10610ba357610100808354040283529160200191610bce565b820191906000526020600020905b815481529060010190602001808311610bb157829003601f168201915b5050505050610ca5565b9150600160a060020a0382163314801590610c095750600160a060020a038216600090815260208190526040812054115b1561046b5733600090815260066020526040902060019055610c3961271061039b3461013763ffffffff61083616565b604051909150600160a060020a0383169082156108fc029083906000818181858888f19350505050158015610c72573d6000803e3d6000fd5b50604051339082156108fc029083906000818181858888f19350505050158015610ca0573d6000803e3d6000fd5b505050565b600080600160145b6000811115610d1057818560018303815181101515610cc857fe5b6020910101517f01000000000000000000000000000000000000000000000000000000000000009081900481020460ff16029290920191610100919091029060001901610cad565b50909392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610d5a5782800160ff19823516178555610d87565b82800160010185558215610d87579182015b82811115610d87578235825591602001919060010190610d6c565b50610d93929150610d97565b5090565b610db191905b80821115610d935760008155600101610d9d565b905600a165627a7a72305820e0bd65cec0ead6b750b2a5d8496f281621d91826d2d0526c2edad84fb8ad07ac0029
Swarm Source
bzzr://e0bd65cec0ead6b750b2a5d8496f281621d91826d2d0526c2edad84fb8ad07ac
Loading...
Loading
Loading...
Loading
[ 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.
Add Token to MetaMask (Web3)