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 3,593 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim ROI | 11267060 | 1535 days ago | IN | 0 ETH | 0.00168702 | ||||
Claim ROI | 11126552 | 1556 days ago | IN | 0 ETH | 0.00851334 | ||||
Claim ROI | 11126546 | 1556 days ago | IN | 0 ETH | 0.00500106 | ||||
Claim ROI | 11126514 | 1556 days ago | IN | 0 ETH | 0.00659097 | ||||
Claim ROI | 11126490 | 1556 days ago | IN | 0 ETH | 0.00768947 | ||||
Claim ROI | 11126462 | 1556 days ago | IN | 0 ETH | 0.007741 | ||||
Claim ROI | 11126447 | 1556 days ago | IN | 0 ETH | 0.0076346 | ||||
Claim ROI | 11106717 | 1559 days ago | IN | 0 ETH | 0.0105193 | ||||
Claim ROI | 11102470 | 1560 days ago | IN | 0 ETH | 0.0061963 | ||||
Claim ROI | 11097876 | 1560 days ago | IN | 0 ETH | 0.00556707 | ||||
Claim ROI | 11097873 | 1560 days ago | IN | 0 ETH | 0.00556707 | ||||
Claim ROI | 11097869 | 1560 days ago | IN | 0 ETH | 0.00434927 | ||||
Claim ROI | 11096558 | 1561 days ago | IN | 0 ETH | 0.01045307 | ||||
Claim ROI | 11096231 | 1561 days ago | IN | 0 ETH | 0.0086684 | ||||
Claim ROI | 11096101 | 1561 days ago | IN | 0 ETH | 0.00591501 | ||||
Claim ROI | 11087593 | 1562 days ago | IN | 0 ETH | 0.002882 | ||||
Register | 11086404 | 1562 days ago | IN | 0 ETH | 0.01017152 | ||||
Claim ROI | 11047342 | 1568 days ago | IN | 0 ETH | 0.0066286 | ||||
Claim ROI | 11038037 | 1570 days ago | IN | 0 ETH | 0.0031702 | ||||
Claim ROI | 11026399 | 1571 days ago | IN | 0 ETH | 0.0051876 | ||||
Claim ROI | 11026306 | 1571 days ago | IN | 0 ETH | 0.0044671 | ||||
Claim ROI | 11018617 | 1573 days ago | IN | 0 ETH | 0.0080696 | ||||
Claim ROI | 11014790 | 1573 days ago | IN | 0 ETH | 0.005764 | ||||
Claim ROI | 11014725 | 1573 days ago | IN | 0 ETH | 0.00998826 | ||||
Claim ROI | 11014619 | 1573 days ago | IN | 0 ETH | 0.0107862 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
10366591 | 1673 days ago | 1.5 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
DeFi
Compiler Version
v0.6.2+commit.bacdbe57
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-06-28 */ // SPDX-License-Identifier: MIT // _ __ __ __ __ __ __ _ // | | \/ | \/ | \/ | (_) // __| | \ / | \ / | \ / | _ ___ // / _` | |\/| | |\/| | |\/| | | |/ _ \ // | (_| | | | | | | | | | | _| | (_) | // \__,_|_| |_|_| |_|_| |_| (_)_|\___/ // dMMM dApp: https://dMMM.io // Official Website: http://d-mmm.github.io/ // Telegram Channel: https://t.me/dMMM2020 // Github: https://github.com/d-mmm // WhitePaper: https://dMMM.io/whitepaper pragma solidity >=0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // SPDX-License-Identifier: MIT interface IMaster { function isOwner(address _addr) external view returns (bool); function payableOwner() external view returns (address payable); function isInternal(address _addr) external view returns (bool); function getLatestAddress(bytes2 _contractName) external view returns (address contractAddress); } // SPDX-License-Identifier: MIT interface IDeFiLogic { function onTokenReceived( address token, address operator, address msgSender, address to, uint256 amount, bytes calldata userData, bytes calldata operatorData ) external; function getOriginalAccountQuota() external view returns ( uint256, uint256, uint256 ); function register( address msgSender, uint256 msgValue, bytes32 inviteCode, bool purchaseOriginAccount ) external; function claimROI(address msgSender) external; function deposit( address msgSender, uint256 poolID, uint256 tokenAmt ) external; } // SPDX-License-Identifier: MIT interface IDeFiStorage { enum ConfigType { InvestAmt, StaticIncomeAmt, DynamicIncomePercent, ClaimFeePercent, UpgradeRequiredInviteValidPlayerCount, UpgradeRequiredMarketPerformance, UpgradeRequiredSelfInvestCount } enum InvestType {Newbie, Open, PreOrder} enum GlobalStatus {Pending, Started, Bankruptcy, Ended} event GlobalBlocks(uint256 indexed eventID, uint256[3] blocks); // public function getCurrentRoundID(bool enableCurrentBlock) external view returns (uint256); function getAvailableRoundID(bool isNewUser, bool enableCurrentBlock) external view returns (uint256 id, InvestType investType); function getInvestGear(uint256 usdAmt) external view returns (uint256); function U2T(uint256 usdAmt) external view returns (uint256); function U2E(uint256 usdAmt) external view returns (uint256); function T2U(uint256 tokenAmt) external view returns (uint256); function E2U(uint256 etherAmt) external view returns (uint256); function T2E(uint256 tokenAmt) external view returns (uint256); function E2T(uint256 etherAmt) external view returns (uint256); function getGlobalStatus() external view returns (GlobalStatus); function last100() external view returns (uint256[100] memory); function getGlobalBlocks() external view returns (uint256[3] memory); function getDeFiAccounts() external view returns (uint256[5] memory); function getPoolSplitStats() external view returns (uint256[3] memory); function getPoolSplitPercent(uint256 roundID) external view returns (uint256[6] memory splitPrcent, uint256[2] memory nodeCount); // internal function isLast100AndLabel(uint256 userID) external returns (bool); function increaseRoundData( uint256 roundID, uint256 dataID, uint256 num ) external; function getNodePerformance( uint256 roundID, uint256 nodeID, bool isSuperNode ) external view returns (uint256); function increaseUserData( uint256 userID, uint256 dataID, uint256 num, bool isSub, bool isSet ) external; function checkRoundAvailableAndUpdate( bool isNewUser, uint256 roundID, uint256 usdAmt, uint256 tokenAmt ) external returns (bool success); function increaseDeFiAccount( uint256 accountID, uint256 num, bool isSub ) external returns (bool); function getUser(uint256 userID) external view returns ( bool[2] memory userBoolArray, uint256[21] memory userUint256Array ); function getUserUint256Data(uint256 userID, uint256 dataID) external view returns (uint256); function setDeFiAccounts(uint256[5] calldata data) external; function splitDone() external; function getSelfInvestCount(uint256 userID) external view returns (uint256[5] memory selfInvestCount); function setSelfInvestCount( uint256 userID, uint256[5] calldata selfInvestCount ) external; function pushToInvestQueue(uint256 userID) external; function effectReferrals( uint256 userID, uint256 roundID, uint256 usdAmt, bool isNewUser ) external; function getLevelConfig(uint256 level, ConfigType configType) external view returns (uint256); function getUserFatherIDs(uint256 userID) external view returns (uint256[7] memory fathers); function getUserFatherActiveInfo(uint256 userID) external view returns ( uint256[7] memory fathers, uint256[7] memory roundID, uint256[7] memory lastActive, address[7] memory addrs ); function getUserFatherAddrs(uint256 userID) external view returns (address[7] memory fathers); function setGlobalBlocks(uint256[3] calldata blocks) external; function getGlobalNodeCount(uint256 roundID) external view returns (uint256[2] memory nodeCount); function getToken() external view returns (address); function setToken(address token) external; function getPlatformAddress() external view returns (address payable); function setPlatformAddress(address payable platformAddress) external; function getIDByAddr(address addr) external view returns (uint256); function getAddrByID(uint256 id) external view returns (address); function setUserAddr(uint256 id, address addr) external; function getIDByInviteCode(bytes32 inviteCode) external view returns (uint256); function getInviteCodeByID(uint256 id) external view returns (bytes32); function setUserInviteCode(uint256 id, bytes32 inviteCode) external; function issueUserID(address addr) external returns (uint256); function issueEventIndex() external returns (uint256); function setUser( uint256 userID, bool[2] calldata userBoolArry, uint256[21] calldata userUint256Array ) external; function deactivateUser(uint256 id) external; function getRound(uint256 roundID) external view returns (uint256[4] memory roundUint256Vars); function setRound(uint256 roundID, uint256[4] calldata roundUint256Vars) external; function setE2U(uint256 e2u) external; function setT2U(uint256 t2u) external; function setRoundLimit(uint256[] calldata roundID, uint256[] calldata limit) external; } // SPDX-License-Identifier: MIT interface IDeFi { function sendToken(address to, uint256 amt) external; function sendETH(address payable to, uint256 amt) external; } // SPDX-License-Identifier: MIT // _ __ __ __ __ __ __ _ // | | \/ | \/ | \/ | (_) // __| | \ / | \ / | \ / | _ ___ // / _` | |\/| | |\/| | |\/| | | |/ _ \ // | (_| | | | | | | | | | | _| | (_) | // \__,_|_| |_|_| |_|_| |_| (_)_|\___/ // dMMM dApp: https://dMMM.io // Official Website: http://d-mmm.github.io/ // Telegram Channel: https://t.me/dMMM2020 // Github: https://github.com/d-mmm // WhitePaper: https://dMMM.io/whitepaper // SPDX-License-Identifier: MIT /** * @dev Interface of the ERC777TokensRecipient standard as defined in the EIP. * * Accounts can be notified of {IERC777} tokens being sent to them by having a * contract implement this interface (contract holders can be their own * implementer) and registering it on the * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry]. * * See {IERC1820Registry} and {ERC1820Implementer}. */ interface IERC777Recipient { /** * @dev Called by an {IERC777} token contract whenever tokens are being * moved or created into a registered account (`to`). The type of operation * is conveyed by `from` being the zero address or not. * * This call occurs _after_ the token contract's state is updated, so * {IERC777-balanceOf}, etc., can be used to query the post-operation state. * * This function may revert to prevent the operation from being executed. */ function tokensReceived( address operator, address from, address to, uint256 amount, bytes calldata userData, bytes calldata operatorData ) external; } // SPDX-License-Identifier: MIT /** * @dev Interface of the global ERC1820 Registry, as defined in the * https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register * implementers for interfaces in this registry, as well as query support. * * Implementers may be shared by multiple accounts, and can also implement more * than a single interface for each account. Contracts can implement interfaces * for themselves, but externally-owned accounts (EOA) must delegate this to a * contract. * * {IERC165} interfaces can also be queried via the registry. * * For an in-depth explanation and source code analysis, see the EIP text. */ interface IERC1820Registry { /** * @dev Sets `newManager` as the manager for `account`. A manager of an * account is able to set interface implementers for it. * * By default, each account is its own manager. Passing a value of `0x0` in * `newManager` will reset the manager to this initial state. * * Emits a {ManagerChanged} event. * * Requirements: * * - the caller must be the current manager for `account`. */ function setManager(address account, address newManager) external; /** * @dev Returns the manager for `account`. * * See {setManager}. */ function getManager(address account) external view returns (address); /** * @dev Sets the `implementer` contract as ``account``'s implementer for * `interfaceHash`. * * `account` being the zero address is an alias for the caller's address. * The zero address can also be used in `implementer` to remove an old one. * * See {interfaceHash} to learn how these are created. * * Emits an {InterfaceImplementerSet} event. * * Requirements: * * - the caller must be the current manager for `account`. * - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not * end in 28 zeroes). * - `implementer` must implement {IERC1820Implementer} and return true when * queried for support, unless `implementer` is the caller. See * {IERC1820Implementer-canImplementInterfaceForAddress}. */ function setInterfaceImplementer(address account, bytes32 interfaceHash, address implementer) external; /** * @dev Returns the implementer of `interfaceHash` for `account`. If no such * implementer is registered, returns the zero address. * * If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28 * zeroes), `account` will be queried for support of it. * * `account` being the zero address is an alias for the caller's address. */ function getInterfaceImplementer(address account, bytes32 interfaceHash) external view returns (address); /** * @dev Returns the interface hash for an `interfaceName`, as defined in the * corresponding * https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP]. */ function interfaceHash(string calldata interfaceName) external pure returns (bytes32); /** * @notice Updates the cache with whether the contract implements an ERC165 interface or not. * @param account Address of the contract for which to update the cache. * @param interfaceId ERC165 interface for which to update the cache. */ function updateERC165Cache(address account, bytes4 interfaceId) external; /** * @notice Checks whether a contract implements an ERC165 interface or not. * If the result is not cached a direct lookup on the contract address is performed. * If the result is not cached or the cached value is out-of-date, the cache MUST be updated manually by calling * {updateERC165Cache} with the contract address. * @param account Address of the contract to check. * @param interfaceId ERC165 interface to check. * @return True if `account` implements `interfaceId`, false otherwise. */ function implementsERC165Interface(address account, bytes4 interfaceId) external view returns (bool); /** * @notice Checks whether a contract implements an ERC165 interface or not without using nor updating the cache. * @param account Address of the contract to check. * @param interfaceId ERC165 interface to check. * @return True if `account` implements `interfaceId`, false otherwise. */ function implementsERC165InterfaceNoCache(address account, bytes4 interfaceId) external view returns (bool); event InterfaceImplementerSet(address indexed account, bytes32 indexed interfaceHash, address indexed implementer); event ManagerChanged(address indexed account, address indexed newManager); } // SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } abstract contract IUpgradable { IMaster public master; modifier onlyInternal { assert(master.isInternal(msg.sender)); _; } modifier onlyOwner { assert(master.isOwner(msg.sender)); _; } modifier onlyMaster { assert(address(master) == msg.sender); _; } /** * @dev IUpgradable Interface to update dependent contract address */ function changeDependentContractAddress() public virtual; /** * @dev change master address * @param addr is the new address */ function changeMasterAddress(address addr) public { assert(Address.isContract(addr)); assert(address(master) == address(0) || address(master) == msg.sender); master = IMaster(addr); } } // SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot 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-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } function per(uint256 a, uint256 base, uint256 percent) internal pure returns (uint256) { return div(mul(a,percent),base); } } /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // SPDX-License-Identifier: MIT /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } contract DeFi is IUpgradable, IDeFi, IERC777Recipient, ReentrancyGuard { using SafeERC20 for IERC20; bytes32 internal constant TOKENS_RECIPIENT_INTERFACE_HASH = keccak256( "ERC777TokensRecipient" ); IERC1820Registry internal ERC1820 = IERC1820Registry( 0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24 ); IDeFiStorage _fs; IDeFiLogic _dl; constructor() public { ERC1820.setInterfaceImplementer( address(this), TOKENS_RECIPIENT_INTERFACE_HASH, address(this) ); } /// fallback function tokensReceived( address operator, address from, address to, uint256 amount, bytes memory userData, bytes memory operatorData ) public override { _dl.onTokenReceived( msg.sender, operator, from, to, amount, userData, operatorData ); } /// public functions function getOriginalAccountQuota() public view returns ( uint256, uint256, uint256 ) { return _dl.getOriginalAccountQuota(); } function register(bytes32 inviteCode, bool purchaseOriginAccount) public payable { _dl.register(msg.sender, msg.value, inviteCode, purchaseOriginAccount); } function claimROI() public { _dl.claimROI(msg.sender); } function deposit(uint256 poolID, uint256 tokenAmt) public { IERC20(_fs.getToken()).safeTransferFrom( msg.sender, address(this), tokenAmt ); _dl.deposit(msg.sender, poolID, tokenAmt); } function sendToken(address to, uint256 amt) public override onlyInternal nonReentrant { IERC20(_fs.getToken()).safeTransfer(to, amt); } function sendETH(address payable to, uint256 amt) public override onlyInternal nonReentrant { to.transfer(amt); } /// implements functions function changeDependentContractAddress() public override { _fs = IDeFiStorage(master.getLatestAddress("FS")); _dl = IDeFiLogic(master.getLatestAddress("DL")); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"changeDependentContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"changeMasterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimROI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"poolID","type":"uint256"},{"internalType":"uint256","name":"tokenAmt","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getOriginalAccountQuota","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"master","outputs":[{"internalType":"contract IMaster","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"inviteCode","type":"bytes32"},{"internalType":"bool","name":"purchaseOriginAccount","type":"bool"}],"name":"register","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amt","type":"uint256"}],"name":"sendETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amt","type":"uint256"}],"name":"sendToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"tokensReceived","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600280546001600160a01b031916731820a4b7618bde71dce8cdc73aab6c95905fad2417905534801561003657600080fd5b5060018055600254604080517f455243373737546f6b656e73526563697069656e740000000000000000000000815281519081900360150181206329965a1d60e01b825230600483018190526024830191909152604482015290516001600160a01b03909216916329965a1d9160648082019260009290919082900301818387803b1580156100c457600080fd5b505af11580156100d8573d6000803e3d6000fd5b50505050610f31806100eb6000396000f3fe6080604052600436106100905760003560e01c806364a197f31161005957806364a197f31461029f5780636c4fea7b146102d8578063d46655f4146102ed578063e2bbb15814610320578063ee97f7f31461035057610090565b806223de29146100955780630ea9c984146101f957806318a3c4e11461020e578063412664ae1461024157806344c5db1d1461027a575b600080fd5b3480156100a157600080fd5b506101f7600480360360c08110156100b857600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a0810160808201356401000000008111156100fb57600080fd5b82018360208201111561010d57600080fd5b8035906020019184600183028401116401000000008311171561012f57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561018257600080fd5b82018360208201111561019457600080fd5b803590602001918460018302840111640100000000831117156101b657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610381945050505050565b005b34801561020557600080fd5b506101f76104f0565b34801561021a57600080fd5b5061022361061b565b60408051938452602084019290925282820152519081900360600190f35b34801561024d57600080fd5b506101f76004803603604081101561026457600080fd5b506001600160a01b0381351690602001356106b1565b6101f76004803603604081101561029057600080fd5b5080359060200135151561082b565b3480156102ab57600080fd5b506101f7600480360360408110156102c257600080fd5b506001600160a01b0381351690602001356108a9565b3480156102e457600080fd5b506101f76109c2565b3480156102f957600080fd5b506101f76004803603602081101561031057600080fd5b50356001600160a01b0316610a28565b34801561032c57600080fd5b506101f76004803603604081101561034357600080fd5b5080359060200135610a81565b34801561035c57600080fd5b50610365610b73565b604080516001600160a01b039092168252519081900360200190f35b60048054604051632da8aaef60e11b8152339281018381526001600160a01b038a81166024840152898116604484015288811660648401526084830188905260e060a48401908152875160e485015287519190941694635b5155de9490938c938c938c938c938c938c9390929160c481019161010490910190602087019080838360005b8381101561041d578181015183820152602001610405565b50505050905090810190601f16801561044a5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b8381101561047d578181015183820152602001610465565b50505050905090810190601f1680156104aa5780820380516001836020036101000a031916815260200191505b509950505050505050505050600060405180830381600087803b1580156104d057600080fd5b505af11580156104e4573d6000803e3d6000fd5b50505050505050505050565b600054604080516227050b60e31b815261465360f01b600482015290516001600160a01b0390921691630138285891602480820192602092909190829003018186803b15801561053f57600080fd5b505afa158015610553573d6000803e3d6000fd5b505050506040513d602081101561056957600080fd5b5051600380546001600160a01b0319166001600160a01b03928316179055600054604080516227050b60e31b815261111360f21b6004820152905191909216916301382858916024808301926020929190829003018186803b1580156105ce57600080fd5b505afa1580156105e2573d6000803e3d6000fd5b505050506040513d60208110156105f857600080fd5b5051600480546001600160a01b0319166001600160a01b03909216919091179055565b6000806000600460009054906101000a90046001600160a01b03166001600160a01b03166318a3c4e16040518163ffffffff1660e01b815260040160606040518083038186803b15801561066e57600080fd5b505afa158015610682573d6000803e3d6000fd5b505050506040513d606081101561069857600080fd5b5080516020820151604090920151909591945092509050565b600054604080516323c5b10760e21b815233600482015290516001600160a01b0390921691638f16c41c91602480820192602092909190829003018186803b1580156106fc57600080fd5b505afa158015610710573d6000803e3d6000fd5b505050506040513d602081101561072657600080fd5b505161072e57fe5b60026001541415610786576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001819055506108238282600360009054906101000a90046001600160a01b03166001600160a01b03166321df0da76040518163ffffffff1660e01b815260040160206040518083038186803b1580156107e157600080fd5b505afa1580156107f5573d6000803e3d6000fd5b505050506040513d602081101561080b57600080fd5b50516001600160a01b0316919063ffffffff610b8216565b505060018055565b60048054604080516370d3458760e01b81523393810193909352346024840152604483018590528315156064840152516001600160a01b03909116916370d3458791608480830192600092919082900301818387803b15801561088d57600080fd5b505af11580156108a1573d6000803e3d6000fd5b505050505050565b600054604080516323c5b10760e21b815233600482015290516001600160a01b0390921691638f16c41c91602480820192602092909190829003018186803b1580156108f457600080fd5b505afa158015610908573d6000803e3d6000fd5b505050506040513d602081101561091e57600080fd5b505161092657fe5b6002600154141561097e576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001556040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156109b9573d6000803e3d6000fd5b50506001805550565b600480546040805162a3d4fb60e71b81523393810193909352516001600160a01b03909116916351ea7d8091602480830192600092919082900301818387803b158015610a0e57600080fd5b505af1158015610a22573d6000803e3d6000fd5b50505050565b610a3181610bd9565b610a3757fe5b6000546001600160a01b03161580610a5957506000546001600160a01b031633145b610a5f57fe5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b610b18333083600360009054906101000a90046001600160a01b03166001600160a01b03166321df0da76040518163ffffffff1660e01b815260040160206040518083038186803b158015610ad557600080fd5b505afa158015610ae9573d6000803e3d6000fd5b505050506040513d6020811015610aff57600080fd5b50516001600160a01b031692919063ffffffff610c1516565b6004805460408051630efe6a8b60e01b815233938101939093526024830185905260448301849052516001600160a01b0390911691630efe6a8b91606480830192600092919082900301818387803b15801561088d57600080fd5b6000546001600160a01b031681565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610bd4908490610c6b565b505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610c0d57508115155b949350505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610a229085905b6060610cc0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610d1c9092919063ffffffff16565b805190915015610bd457808060200190516020811015610cdf57600080fd5b5051610bd45760405162461bcd60e51b815260040180806020018281038252602a815260200180610ed2602a913960400191505060405180910390fd5b6060610c0d84846000856060610d3185610bd9565b610d82576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610dc15780518252601f199092019160209182019101610da2565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610e23576040519150601f19603f3d011682016040523d82523d6000602084013e610e28565b606091505b50915091508115610e3c579150610c0d9050565b805115610e4c5780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e96578181015183820152602001610e7e565b50505050905090810190601f168015610ec35780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212206452066107485aeca61d1f0e7e032976c8488ca0e585decedea633ddf89f3a8864736f6c63430006020033
Deployed Bytecode
0x6080604052600436106100905760003560e01c806364a197f31161005957806364a197f31461029f5780636c4fea7b146102d8578063d46655f4146102ed578063e2bbb15814610320578063ee97f7f31461035057610090565b806223de29146100955780630ea9c984146101f957806318a3c4e11461020e578063412664ae1461024157806344c5db1d1461027a575b600080fd5b3480156100a157600080fd5b506101f7600480360360c08110156100b857600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a0810160808201356401000000008111156100fb57600080fd5b82018360208201111561010d57600080fd5b8035906020019184600183028401116401000000008311171561012f57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561018257600080fd5b82018360208201111561019457600080fd5b803590602001918460018302840111640100000000831117156101b657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610381945050505050565b005b34801561020557600080fd5b506101f76104f0565b34801561021a57600080fd5b5061022361061b565b60408051938452602084019290925282820152519081900360600190f35b34801561024d57600080fd5b506101f76004803603604081101561026457600080fd5b506001600160a01b0381351690602001356106b1565b6101f76004803603604081101561029057600080fd5b5080359060200135151561082b565b3480156102ab57600080fd5b506101f7600480360360408110156102c257600080fd5b506001600160a01b0381351690602001356108a9565b3480156102e457600080fd5b506101f76109c2565b3480156102f957600080fd5b506101f76004803603602081101561031057600080fd5b50356001600160a01b0316610a28565b34801561032c57600080fd5b506101f76004803603604081101561034357600080fd5b5080359060200135610a81565b34801561035c57600080fd5b50610365610b73565b604080516001600160a01b039092168252519081900360200190f35b60048054604051632da8aaef60e11b8152339281018381526001600160a01b038a81166024840152898116604484015288811660648401526084830188905260e060a48401908152875160e485015287519190941694635b5155de9490938c938c938c938c938c938c9390929160c481019161010490910190602087019080838360005b8381101561041d578181015183820152602001610405565b50505050905090810190601f16801561044a5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b8381101561047d578181015183820152602001610465565b50505050905090810190601f1680156104aa5780820380516001836020036101000a031916815260200191505b509950505050505050505050600060405180830381600087803b1580156104d057600080fd5b505af11580156104e4573d6000803e3d6000fd5b50505050505050505050565b600054604080516227050b60e31b815261465360f01b600482015290516001600160a01b0390921691630138285891602480820192602092909190829003018186803b15801561053f57600080fd5b505afa158015610553573d6000803e3d6000fd5b505050506040513d602081101561056957600080fd5b5051600380546001600160a01b0319166001600160a01b03928316179055600054604080516227050b60e31b815261111360f21b6004820152905191909216916301382858916024808301926020929190829003018186803b1580156105ce57600080fd5b505afa1580156105e2573d6000803e3d6000fd5b505050506040513d60208110156105f857600080fd5b5051600480546001600160a01b0319166001600160a01b03909216919091179055565b6000806000600460009054906101000a90046001600160a01b03166001600160a01b03166318a3c4e16040518163ffffffff1660e01b815260040160606040518083038186803b15801561066e57600080fd5b505afa158015610682573d6000803e3d6000fd5b505050506040513d606081101561069857600080fd5b5080516020820151604090920151909591945092509050565b600054604080516323c5b10760e21b815233600482015290516001600160a01b0390921691638f16c41c91602480820192602092909190829003018186803b1580156106fc57600080fd5b505afa158015610710573d6000803e3d6000fd5b505050506040513d602081101561072657600080fd5b505161072e57fe5b60026001541415610786576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001819055506108238282600360009054906101000a90046001600160a01b03166001600160a01b03166321df0da76040518163ffffffff1660e01b815260040160206040518083038186803b1580156107e157600080fd5b505afa1580156107f5573d6000803e3d6000fd5b505050506040513d602081101561080b57600080fd5b50516001600160a01b0316919063ffffffff610b8216565b505060018055565b60048054604080516370d3458760e01b81523393810193909352346024840152604483018590528315156064840152516001600160a01b03909116916370d3458791608480830192600092919082900301818387803b15801561088d57600080fd5b505af11580156108a1573d6000803e3d6000fd5b505050505050565b600054604080516323c5b10760e21b815233600482015290516001600160a01b0390921691638f16c41c91602480820192602092909190829003018186803b1580156108f457600080fd5b505afa158015610908573d6000803e3d6000fd5b505050506040513d602081101561091e57600080fd5b505161092657fe5b6002600154141561097e576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001556040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156109b9573d6000803e3d6000fd5b50506001805550565b600480546040805162a3d4fb60e71b81523393810193909352516001600160a01b03909116916351ea7d8091602480830192600092919082900301818387803b158015610a0e57600080fd5b505af1158015610a22573d6000803e3d6000fd5b50505050565b610a3181610bd9565b610a3757fe5b6000546001600160a01b03161580610a5957506000546001600160a01b031633145b610a5f57fe5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b610b18333083600360009054906101000a90046001600160a01b03166001600160a01b03166321df0da76040518163ffffffff1660e01b815260040160206040518083038186803b158015610ad557600080fd5b505afa158015610ae9573d6000803e3d6000fd5b505050506040513d6020811015610aff57600080fd5b50516001600160a01b031692919063ffffffff610c1516565b6004805460408051630efe6a8b60e01b815233938101939093526024830185905260448301849052516001600160a01b0390911691630efe6a8b91606480830192600092919082900301818387803b15801561088d57600080fd5b6000546001600160a01b031681565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610bd4908490610c6b565b505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610c0d57508115155b949350505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610a229085905b6060610cc0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610d1c9092919063ffffffff16565b805190915015610bd457808060200190516020811015610cdf57600080fd5b5051610bd45760405162461bcd60e51b815260040180806020018281038252602a815260200180610ed2602a913960400191505060405180910390fd5b6060610c0d84846000856060610d3185610bd9565b610d82576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610dc15780518252601f199092019160209182019101610da2565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610e23576040519150601f19603f3d011682016040523d82523d6000602084013e610e28565b606091505b50915091508115610e3c579150610c0d9050565b805115610e4c5780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e96578181015183820152602001610e7e565b50505050905090810190601f168015610ec35780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212206452066107485aeca61d1f0e7e032976c8488ca0e585decedea633ddf89f3a8864736f6c63430006020033
Deployed Bytecode Sourcemap
36004:2415:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36609:415;;8:9:-1;5:2;;;30:1;27;20:12;5:2;36609:415:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;36609:415:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;36609:415:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;36609:415:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;36609:415:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;36609:415:0;;;;;;;;-1:-1:-1;36609:415:0;;-1:-1:-1;;21:11;5:28;;2:2;;;46:1;43;36:12;2:2;36609:415:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;36609:415:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;36609:415:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;36609:415:0;;-1:-1:-1;36609:415:0;;-1:-1:-1;;;;;36609:415:0:i;:::-;;38232:184;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38232:184:0;;;:::i;37058:220::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37058:220:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;37828:190;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37828:190:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;37828:190:0;;;;;;;;:::i;37286:193::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37286:193:0;;;;;;;;;:::i;38026:168::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38026:168:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;38026:168:0;;;;;;;;:::i;37487:70::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37487:70:0;;;:::i;23981:215::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23981:215:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23981:215:0;-1:-1:-1;;;;;23981:215:0;;:::i;37565:255::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37565:255:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37565:255:0;;;;;;;:::i;23418:21::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23418:21:0;;;:::i;:::-;;;;-1:-1:-1;;;;;23418:21:0;;;;;;;;;;;;;;36609:415;36831:3;;;:185;;-1:-1:-1;;;36831:185:0;;36865:10;36831:185;;;;;;-1:-1:-1;;;;;36831:185:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:3;;;;;:19;;36865:10;;36890:8;;36913:4;;36932:2;;36949:6;;36970:8;;36993:12;;36831:185;;;;;;;;;;;;;;;;;;;:3;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;36831:185:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36831:185:0;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;36831:185:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;36831:185:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;36831:185:0;;;;36609:415;;;;;;:::o;38232:184::-;38320:6;;:29;;;-1:-1:-1;;;38320:29:0;;-1:-1:-1;;;38320:29:0;;;;;;-1:-1:-1;;;;;38320:6:0;;;;:23;;:29;;;;;;;;;;;;;;;:6;:29;;;5:2:-1;;;;30:1;27;20:12;5:2;38320:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38320:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38320:29:0;38301:3;:49;;-1:-1:-1;;;;;;38301:49:0;-1:-1:-1;;;;;38301:49:0;;;;;;-1:-1:-1;38378:6:0;:29;;;-1:-1:-1;;;38378:29:0;;-1:-1:-1;;;38378:29:0;;;;;;:6;;;;;:23;;:29;;;;;38320;;38378;;;;;;;:6;:29;;;5:2:-1;;;;30:1;27;20:12;5:2;38378:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38378:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38378:29:0;38361:3;:47;;-1:-1:-1;;;;;;38361:47:0;-1:-1:-1;;;;;38361:47:0;;;;;;;;;38232:184::o;37058:220::-;37155:7;37177;37199;37241:3;;;;;;;;;-1:-1:-1;;;;;37241:3:0;-1:-1:-1;;;;;37241:27:0;;:29;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37241:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37241:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37241:29:0;;;;;;;;;;;;;;;-1:-1:-1;37241:29:0;-1:-1:-1;37058:220:0;-1:-1:-1;37058:220:0:o;37828:190::-;23488:6;;:29;;;-1:-1:-1;;;23488:29:0;;23506:10;23488:29;;;;;;-1:-1:-1;;;;;23488:6:0;;;;:17;;:29;;;;;;;;;;;;;;;:6;:29;;;5:2:-1;;;;30:1;27;20:12;5:2;23488:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23488:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23488:29:0;23481:37;;;;35045:1:::1;35651:7;;:19;;35643:63;;;::::0;;-1:-1:-1;;;35643:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;35045:1;35784:7;:18;;;;37966:44:::2;38002:2;38006:3;37973;;;;;;;;;-1:-1:-1::0;;;;;37973:3:0::2;-1:-1:-1::0;;;;;37973:12:0::2;;:14;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27::::0;20:12:::2;5:2;37973:14:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;37973:14:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26::::0;19:12:::2;2:2;-1:-1:::0;37973:14:0;-1:-1:-1;;;;;37966:35:0::2;::::0;:44;::::2;:35;:44;:::i;:::-;-1:-1:-1::0;;35001:1:0::1;35963:22:::0;;37828:190::o;37286:193::-;37401:3;;;:70;;;-1:-1:-1;;;37401:70:0;;37414:10;37401:70;;;;;;;37426:9;37401:70;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;37401:3:0;;;;:12;;:70;;;;;:3;;:70;;;;;;;:3;;:70;;;5:2:-1;;;;30:1;27;20:12;5:2;37401:70:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37401:70:0;;;;37286:193;;:::o;38026:168::-;23488:6;;:29;;;-1:-1:-1;;;23488:29:0;;23506:10;23488:29;;;;;;-1:-1:-1;;;;;23488:6:0;;;;:17;;:29;;;;;;;;;;;;;;;:6;:29;;;5:2:-1;;;;30:1;27;20:12;5:2;23488:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23488:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23488:29:0;23481:37;;;;35045:1:::1;35651:7;;:19;;35643:63;;;::::0;;-1:-1:-1;;;35643:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;35045:1;35784:7;:18:::0;38170:16:::2;::::0;-1:-1:-1;;;;;38170:11:0;::::2;::::0;:16;::::2;;;::::0;38182:3;;38170:16:::2;::::0;;;38182:3;38170:11;:16;::::2;;;;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;-1:-1:::0;;35001:1:0::1;35963:22:::0;;-1:-1:-1;38026:168:0:o;37487:70::-;37525:3;;;:24;;;-1:-1:-1;;;37525:24:0;;37538:10;37525:24;;;;;;;;-1:-1:-1;;;;;37525:3:0;;;;:12;;:24;;;;;:3;;:24;;;;;;;:3;;:24;;;5:2:-1;;;;30:1;27;20:12;5:2;37525:24:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37525:24:0;;;;37487:70::o;23981:215::-;24049:24;24068:4;24049:18;:24::i;:::-;24042:32;;;;24119:1;24100:6;-1:-1:-1;;;;;24100:6:0;24092:29;;:62;;-1:-1:-1;24133:6:0;;-1:-1:-1;;;;;24133:6:0;24144:10;24125:29;24092:62;24085:70;;;;24166:6;:22;;-1:-1:-1;;;;;;24166:22:0;-1:-1:-1;;;;;24166:22:0;;;;;;;;;;23981:215::o;37565:255::-;37634:126;37688:10;37721:4;37741:8;37641:3;;;;;;;;;-1:-1:-1;;;;;37641:3:0;-1:-1:-1;;;;;37641:12:0;;:14;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37641:14:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37641:14:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37641:14:0;-1:-1:-1;;;;;37634:39:0;;:126;;;:39;:126;:::i;:::-;37771:3;;;:41;;;-1:-1:-1;;;37771:41:0;;37783:10;37771:41;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;37771:3:0;;;;:11;;:41;;;;;:3;;:41;;;;;;;:3;;:41;;;5:2:-1;;;;30:1;27;20:12;23418:21:0;;;-1:-1:-1;;;;;23418:21:0;;:::o;30291:177::-;30401:58;;;-1:-1:-1;;;;;30401:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;30401:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;30374:86:0;;30394:5;;30374:19;:86::i;:::-;30291:177;;;:::o;17901:619::-;17961:4;18429:20;;18272:66;18469:23;;;;;;:42;;-1:-1:-1;18496:15:0;;;18469:42;18461:51;17901:619;-1:-1:-1;;;;17901:619:0:o;30476:205::-;30604:68;;;-1:-1:-1;;;;;30604:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;30604:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;30577:96:0;;30597:5;;32596:761;33020:23;33046:69;33074:4;33046:69;;;;;;;;;;;;;;;;;33054:5;-1:-1:-1;;;;;33046:27:0;;;:69;;;;;:::i;:::-;33130:17;;33020:95;;-1:-1:-1;33130:21:0;33126:224;;33272:10;33261:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33261:30:0;33253:85;;;;-1:-1:-1;;;33253:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21016:196;21119:12;21151:53;21174:6;21182:4;21188:1;21191:12;22523;22556:18;22567:6;22556:10;:18::i;:::-;22548:60;;;;;-1:-1:-1;;;22548:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;22682:12;22696:23;22723:6;-1:-1:-1;;;;;22723:11:0;22743:8;22754:4;22723:36;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;22723:36:0;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;22681:78:0;;;;22774:7;22770:595;;;22805:10;-1:-1:-1;22798:17:0;;-1:-1:-1;22798:17:0;22770:595;22919:17;;:21;22915:439;;23182:10;23176:17;23243:15;23230:10;23226:2;23222:19;23215:44;23130:148;23325:12;23318:20;;-1:-1:-1;;;23318:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;23318:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://6452066107485aeca61d1f0e7e032976c8488ca0e585decedea633ddf89f3a88
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.