Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 26 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Remove Dev | 10255209 | 1721 days ago | IN | 0 ETH | 0.0011233 | ||||
Push Ether | 10255207 | 1721 days ago | IN | 0 ETH | 0.00245451 | ||||
Remove Dev | 10255200 | 1721 days ago | IN | 0 ETH | 0.00121975 | ||||
Push Ether | 7990235 | 2081 days ago | IN | 0 ETH | 0.00055922 | ||||
Push Ether | 7990196 | 2081 days ago | IN | 0 ETH | 0.00055922 | ||||
Push Ether | 7990148 | 2081 days ago | IN | 0 ETH | 0.00055922 | ||||
Push Ether | 7990098 | 2081 days ago | IN | 0 ETH | 0.00055922 | ||||
Push Ether | 7990060 | 2081 days ago | IN | 0 ETH | 0.00027961 | ||||
Push Ether | 7990022 | 2081 days ago | IN | 0 ETH | 0.00055922 | ||||
Push Ether | 7989989 | 2081 days ago | IN | 0 ETH | 0.00055922 | ||||
Push Ether | 7989948 | 2081 days ago | IN | 0 ETH | 0.00055922 | ||||
Push Ether | 7989900 | 2081 days ago | IN | 0 ETH | 0.00055922 | ||||
Push Ether | 7989856 | 2081 days ago | IN | 0 ETH | 0.00055922 | ||||
Push Ether | 7989772 | 2081 days ago | IN | 0 ETH | 0.00055922 | ||||
Push Ether | 7626110 | 2138 days ago | IN | 0 ETH | 0.00027961 | ||||
Add Dev | 7185108 | 2214 days ago | IN | 0 ETH | 0.00015617 | ||||
Push Ether | 7178266 | 2215 days ago | IN | 0 ETH | 0.00033982 | ||||
Push Ether | 6763516 | 2288 days ago | IN | 0 ETH | 0.00042477 | ||||
Push Ether | 6727193 | 2294 days ago | IN | 0 ETH | 0.00033982 | ||||
Push Ether | 6691496 | 2300 days ago | IN | 0 ETH | 0.00033982 | ||||
Push Ether | 6686828 | 2301 days ago | IN | 0 ETH | 0.00030326 | ||||
Push Ether | 6686817 | 2301 days ago | IN | 0 ETH | 0.00010332 | ||||
Push Ether | 6686789 | 2301 days ago | IN | 0 ETH | 0.00033982 | ||||
Push Ether | 6686472 | 2301 days ago | IN | 0 ETH | 0.00049982 | ||||
Set Token Contra... | 6681870 | 2301 days ago | IN | 0 ETH | 0.00014321 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
10255207 | 1721 days ago | 0.01405107 ETH | ||||
10255207 | 1721 days ago | 0.01405107 ETH | ||||
10255207 | 1721 days ago | 0.01405107 ETH | ||||
10255207 | 1721 days ago | 0.01405107 ETH | ||||
10255207 | 1721 days ago | 0.03746954 ETH | ||||
10255207 | 1721 days ago | 0.09367385 ETH | ||||
10255207 | 1721 days ago | 0.00607875 ETH | ||||
10255151 | 1721 days ago | 0.18126894 ETH | ||||
7990235 | 2081 days ago | 0.00134034 ETH | ||||
7990235 | 2081 days ago | 0.00134034 ETH | ||||
7990235 | 2081 days ago | 0.00134034 ETH | ||||
7990235 | 2081 days ago | 0.00134034 ETH | ||||
7990235 | 2081 days ago | 0.00134034 ETH | ||||
7990235 | 2081 days ago | 0.00446783 ETH | ||||
7990235 | 2081 days ago | 0.01116958 ETH | ||||
7990235 | 2081 days ago | 0.0047123 ETH | ||||
7990231 | 2081 days ago | 0.01762685 ETH | ||||
7990196 | 2081 days ago | 0.00130225 ETH | ||||
7990196 | 2081 days ago | 0.00130225 ETH | ||||
7990196 | 2081 days ago | 0.00130225 ETH | ||||
7990196 | 2081 days ago | 0.00130225 ETH | ||||
7990196 | 2081 days ago | 0.00130225 ETH | ||||
7990196 | 2081 days ago | 0.00434086 ETH | ||||
7990196 | 2081 days ago | 0.01085215 ETH | ||||
7990196 | 2081 days ago | 0.00415217 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Fund
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-11 */ pragma solidity ^0.4.25; contract Prosperity { /** * Withdraws all of the callers earnings. */ function withdraw() public; /** * Retrieve the dividends owned by the caller. * If `_includeReferralBonus` is 1/true, the referral bonus will be included in the calculations. * The reason for this, is that in the frontend, we will want to get the total divs (global + ref) * But in the internal calculations, we want them separate. */ function myDividends(bool _includeReferralBonus) public view returns(uint256); } contract Fund { using SafeMath for *; /*================================= = MODIFIERS = =================================*/ // administrators can: // -> change add or remove devs // they CANNOT: // -> change contract addresses // -> change fees // -> disable withdrawals // -> kill the contract modifier onlyAdministrator(){ address _customerAddress = msg.sender; require(administrator_ == _customerAddress); _; } /*================================ = DATASETS = ================================*/ address internal administrator_; address internal lending_; address internal freeFund_; address[] public devs_; // token exchange contract Prosperity public tokenContract_; // distribution percentages uint8 internal lendingShare_ = 50; uint8 internal freeFundShare_ = 20; uint8 internal devsShare_ = 30; /*======================================= = PUBLIC FUNCTIONS = =======================================*/ constructor() public { // set addresses administrator_ = 0x28436C7453EbA01c6EcbC8a9cAa975f0ADE6Fff1; lending_ = 0x961FA070Ef41C2b68D1A50905Ea9198EF7Dbfbf8; freeFund_ = 0x0cCA1e8Db144d2E4a8F2A80828E780a1DC9C5112; // Add devs devs_.push(0x28436C7453EbA01c6EcbC8a9cAa975f0ADE6Fff1); // Tobi devs_.push(0x92be79705F4Fab97894833448Def30377bc7267A); // Fabi devs_.push(0x000929719742ec6E0bFD0107959384F7Acd8F883); // Lukas devs_.push(0x5289f0f0E8417c7475Ba33E92b1944279e183B0C); // Julian } function() payable external { // prevent invalid or unintentional calls //require(msg.data.length == 0); } /** * Distribute ether to lending, freeFund and devs */ function pushEther() public { // get dividends (mainly referral) if (myDividends(true) > 0) { tokenContract_.withdraw(); } // current balance (after withdraw) uint256 _balance = getTotalBalance(); // distributed reinvestments if (_balance > 0) { uint256 _ethDevs = _balance.mul(devsShare_).div(100); // total of 30% uint256 _ethFreeFund = _balance.mul(freeFundShare_).div(100); // total of 20% uint256 _ethLending = _balance.sub(_ethDevs).sub(_ethFreeFund); // approx. 50% lending_.transfer(_ethLending); freeFund_.transfer(_ethFreeFund); uint256 _devsCount = devs_.length; for (uint8 i = 0; i < _devsCount; i++) { uint256 _ethDevPortion = _ethDevs.div(_devsCount); address _dev = devs_[i]; _dev.transfer(_ethDevPortion); } } } /** * Add a dev to the devs fund pool. */ function addDev(address _dev) onlyAdministrator() public { // address must not be dev before, we do not want duplicates require(!isDev(_dev), "address is already dev"); devs_.push(_dev); } /** * Remove a dev from the devs fund pool. */ function removeDev(address _dev) onlyAdministrator() public { // address must be dev before, we need a dev address to be able to remove him require(isDev(_dev), "address is not a dev"); // get index and delte dev uint8 index = getDevIndex(_dev); // close gap in dev list uint256 _devCount = getTotalDevs(); for (uint8 i = index; i < _devCount - 1; i++) { devs_[i] = devs_[i+1]; } delete devs_[devs_.length-1]; devs_.length--; } /** * Check if given address is dev or not */ function isDev(address _dealer) public view returns(bool) { uint256 _devsCount = devs_.length; for (uint8 i = 0; i < _devsCount; i++) { if (devs_[i] == _dealer) { return true; } } return false; } // VIEW FUNCTIONS function getTotalBalance() public view returns(uint256) { return address(this).balance; } function getTotalDevs() public view returns(uint256) { return devs_.length; } function myDividends(bool _includeReferralBonus) public view returns(uint256) { return tokenContract_.myDividends(_includeReferralBonus); } // INTERNAL FUNCTIONS /** * Check index of given address */ function getDevIndex(address _dev) internal view returns(uint8) { uint256 _devsCount = devs_.length; for (uint8 i = 0; i < _devsCount; i++) { if (devs_[i] == _dev) { return i; } } } // SETTER /** * Set the token contract */ function setTokenContract(address _tokenContract) onlyAdministrator() public { tokenContract_ = Prosperity(_tokenContract); } } /** * @title SafeMath * @dev Math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b); return c; } /** * @dev Integer division of two numbers truncating the quotient, reverts on division by zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0); // Solidity only automatically asserts 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; } /** * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); uint256 c = a - b; return c; } /** * @dev Adds two numbers, reverts on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a); return c; } /** * @dev Divides two numbers and returns the remainder (unsigned integer modulo), * reverts when dividing by zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0); return a % b; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":true,"inputs":[{"name":"_dealer","type":"address"}],"name":"isDev","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getTotalBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getTotalDevs","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_includeReferralBonus","type":"bool"}],"name":"myDividends","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenContract_","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_dev","type":"address"}],"name":"addDev","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenContract","type":"address"}],"name":"setTokenContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_dev","type":"address"}],"name":"removeDev","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pushEther","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"devs_","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]
Contract Creation Code
60806040526004805460a060020a60ff021916743200000000000000000000000000000000000000001760a860020a60ff02191675140000000000000000000000000000000000000000001760b060020a60ff021916761e0000000000000000000000000000000000000000000017905534801561007c57600080fd5b5060008054600160a060020a03199081167328436c7453eba01c6ecbc8a9caa975f0ade6fff1908117835560018054831673961fa070ef41c2b68d1a50905ea9198ef7dbfbf8178155600280548416730cca1e8db144d2e4a8f2a80828e780a1dc9c5112179055600380548083018255948190527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b94850180548516909317909255815480820183558401805484167392be79705f4fab97894833448def30377bc7267a17905581548082018355840180548416720929719742ec6e0bfd0107959384f7acd8f88317905581549081019091559091018054909116735289f0f0e8417c7475ba33e92b1944279e183b0c17905561097f8061019e6000396000f3006080604052600436106100a35763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630c3f64bf81146100a557806312b58349146100da5780635b1eca3814610101578063688abbf7146101165780638a68cf9c14610130578063b91d3ace14610161578063bbcd5bbe14610182578063c4026d7b146101a3578063d404d6c2146101c4578063ef1055b8146101d9575b005b3480156100b157600080fd5b506100c6600160a060020a03600435166101f1565b604080519115158252519081900360200190f35b3480156100e657600080fd5b506100ef610258565b60408051918252519081900360200190f35b34801561010d57600080fd5b506100ef61025e565b34801561012257600080fd5b506100ef6004351515610264565b34801561013c57600080fd5b50610145610301565b60408051600160a060020a039092168252519081900360200190f35b34801561016d57600080fd5b506100a3600160a060020a0360043516610310565b34801561018e57600080fd5b506100a3600160a060020a03600435166103fe565b3480156101af57600080fd5b506100a3600160a060020a0360043516610447565b3480156101d057600080fd5b506100a36105d4565b3480156101e557600080fd5b50610145600435610817565b600354600090815b818160ff16101561024c5783600160a060020a031660038260ff1681548110151561022057fe5b600091825260209091200154600160a060020a031614156102445760019250610251565b6001016101f9565b600092505b5050919050565b30315b90565b60035490565b60048054604080517f688abbf70000000000000000000000000000000000000000000000000000000081528415159381019390935251600092600160a060020a039092169163688abbf791602480830192602092919082900301818787803b1580156102cf57600080fd5b505af11580156102e3573d6000803e3d6000fd5b505050506040513d60208110156102f957600080fd5b505192915050565b600454600160a060020a031681565b6000543390600160a060020a0316811461032957600080fd5b610332826101f1565b1561039e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f6164647265737320697320616c72656164792064657600000000000000000000604482015290519081900360640190fd5b50600380546001810182556000919091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b01805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000543390600160a060020a0316811461041757600080fd5b506004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008054819081903390600160a060020a0316811461046557600080fd5b61046e856101f1565b15156104db57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f61646472657373206973206e6f74206120646576000000000000000000000000604482015290519081900360640190fd5b6104e48561083f565b93506104ee61025e565b92508391505b600183038260ff161015610581576003805460ff600185011690811061051657fe5b60009182526020909120015460038054600160a060020a039092169160ff851690811061053f57fe5b6000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055600191909101906104f4565b60038054600019810190811061059357fe5b6000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916905560038054906105cc90600019830161090c565b505050505050565b60008060008060008060008060006105ec6001610264565b11156106675760048054604080517f3ccfd60b0000000000000000000000000000000000000000000000000000000081529051600160a060020a0390921692633ccfd60b92828201926000929082900301818387803b15801561064e57600080fd5b505af1158015610662573d6000803e3d6000fd5b505050505b61066f610258565b9750600088111561080d576004546106b8906064906106ac908b90760100000000000000000000000000000000000000000000900460ff16610899565b9063ffffffff6108d216565b6004549097506106ec906064906106ac908b907501000000000000000000000000000000000000000000900460ff16610899565b955061070e866107028a8a63ffffffff6108f516565b9063ffffffff6108f516565b600154604051919650600160a060020a03169086156108fc029087906000818181858888f19350505050158015610749573d6000803e3d6000fd5b50600254604051600160a060020a039091169087156108fc029088906000818181858888f19350505050158015610784573d6000803e3d6000fd5b506003549350600092505b838360ff16101561080d576107aa878563ffffffff6108d216565b915060038360ff168154811015156107be57fe5b6000918252602082200154604051600160a060020a039091169250829184156108fc02918591818181858888f19350505050158015610801573d6000803e3d6000fd5b5060019092019161078f565b5050505050505050565b600380548290811061082557fe5b600091825260209091200154600160a060020a0316905081565b600354600090815b818160ff1610156102515783600160a060020a031660038260ff1681548110151561086e57fe5b600091825260209091200154600160a060020a0316141561089157809250610251565b600101610847565b6000808315156108ac57600091506108cb565b508282028284828115156108bc57fe5b04146108c757600080fd5b8091505b5092915050565b6000808083116108e157600080fd5b82848115156108ec57fe5b04949350505050565b6000808383111561090557600080fd5b5050900390565b81548183558181111561093057600083815260209020610930918101908301610935565b505050565b61025b91905b8082111561094f576000815560010161093b565b50905600a165627a7a72305820dd9f1ea078bb9a01d32106d800cf4d9b0896134defefba5f1501af696f97b87a0029
Deployed Bytecode
0x6080604052600436106100a35763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630c3f64bf81146100a557806312b58349146100da5780635b1eca3814610101578063688abbf7146101165780638a68cf9c14610130578063b91d3ace14610161578063bbcd5bbe14610182578063c4026d7b146101a3578063d404d6c2146101c4578063ef1055b8146101d9575b005b3480156100b157600080fd5b506100c6600160a060020a03600435166101f1565b604080519115158252519081900360200190f35b3480156100e657600080fd5b506100ef610258565b60408051918252519081900360200190f35b34801561010d57600080fd5b506100ef61025e565b34801561012257600080fd5b506100ef6004351515610264565b34801561013c57600080fd5b50610145610301565b60408051600160a060020a039092168252519081900360200190f35b34801561016d57600080fd5b506100a3600160a060020a0360043516610310565b34801561018e57600080fd5b506100a3600160a060020a03600435166103fe565b3480156101af57600080fd5b506100a3600160a060020a0360043516610447565b3480156101d057600080fd5b506100a36105d4565b3480156101e557600080fd5b50610145600435610817565b600354600090815b818160ff16101561024c5783600160a060020a031660038260ff1681548110151561022057fe5b600091825260209091200154600160a060020a031614156102445760019250610251565b6001016101f9565b600092505b5050919050565b30315b90565b60035490565b60048054604080517f688abbf70000000000000000000000000000000000000000000000000000000081528415159381019390935251600092600160a060020a039092169163688abbf791602480830192602092919082900301818787803b1580156102cf57600080fd5b505af11580156102e3573d6000803e3d6000fd5b505050506040513d60208110156102f957600080fd5b505192915050565b600454600160a060020a031681565b6000543390600160a060020a0316811461032957600080fd5b610332826101f1565b1561039e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f6164647265737320697320616c72656164792064657600000000000000000000604482015290519081900360640190fd5b50600380546001810182556000919091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b01805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000543390600160a060020a0316811461041757600080fd5b506004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008054819081903390600160a060020a0316811461046557600080fd5b61046e856101f1565b15156104db57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f61646472657373206973206e6f74206120646576000000000000000000000000604482015290519081900360640190fd5b6104e48561083f565b93506104ee61025e565b92508391505b600183038260ff161015610581576003805460ff600185011690811061051657fe5b60009182526020909120015460038054600160a060020a039092169160ff851690811061053f57fe5b6000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055600191909101906104f4565b60038054600019810190811061059357fe5b6000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916905560038054906105cc90600019830161090c565b505050505050565b60008060008060008060008060006105ec6001610264565b11156106675760048054604080517f3ccfd60b0000000000000000000000000000000000000000000000000000000081529051600160a060020a0390921692633ccfd60b92828201926000929082900301818387803b15801561064e57600080fd5b505af1158015610662573d6000803e3d6000fd5b505050505b61066f610258565b9750600088111561080d576004546106b8906064906106ac908b90760100000000000000000000000000000000000000000000900460ff16610899565b9063ffffffff6108d216565b6004549097506106ec906064906106ac908b907501000000000000000000000000000000000000000000900460ff16610899565b955061070e866107028a8a63ffffffff6108f516565b9063ffffffff6108f516565b600154604051919650600160a060020a03169086156108fc029087906000818181858888f19350505050158015610749573d6000803e3d6000fd5b50600254604051600160a060020a039091169087156108fc029088906000818181858888f19350505050158015610784573d6000803e3d6000fd5b506003549350600092505b838360ff16101561080d576107aa878563ffffffff6108d216565b915060038360ff168154811015156107be57fe5b6000918252602082200154604051600160a060020a039091169250829184156108fc02918591818181858888f19350505050158015610801573d6000803e3d6000fd5b5060019092019161078f565b5050505050505050565b600380548290811061082557fe5b600091825260209091200154600160a060020a0316905081565b600354600090815b818160ff1610156102515783600160a060020a031660038260ff1681548110151561086e57fe5b600091825260209091200154600160a060020a0316141561089157809250610251565b600101610847565b6000808315156108ac57600091506108cb565b508282028284828115156108bc57fe5b04146108c757600080fd5b8091505b5092915050565b6000808083116108e157600080fd5b82848115156108ec57fe5b04949350505050565b6000808383111561090557600080fd5b5050900390565b81548183558181111561093057600083815260209020610930918101908301610935565b505050565b61025b91905b8082111561094f576000815560010161093b565b50905600a165627a7a72305820dd9f1ea078bb9a01d32106d800cf4d9b0896134defefba5f1501af696f97b87a0029
Swarm Source
bzzr://dd9f1ea078bb9a01d32106d800cf4d9b0896134defefba5f1501af696f97b87a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.