More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 104 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake Tokens | 19909102 | 216 days ago | IN | 0 ETH | 0.00026982 | ||||
Unstake Tokens | 19909095 | 216 days ago | IN | 0 ETH | 0.00026886 | ||||
Unstake Tokens | 19909095 | 216 days ago | IN | 0 ETH | 0.00026886 | ||||
Unstake Tokens | 19909092 | 216 days ago | IN | 0 ETH | 0.00025001 | ||||
Unstake Tokens | 19909089 | 216 days ago | IN | 0 ETH | 0.00025625 | ||||
Unstake Tokens | 19909087 | 216 days ago | IN | 0 ETH | 0.00026761 | ||||
Unstake Tokens | 19909086 | 216 days ago | IN | 0 ETH | 0.00027634 | ||||
Unstake Tokens | 19712838 | 244 days ago | IN | 0 ETH | 0.00104615 | ||||
Unstake Tokens | 19417179 | 285 days ago | IN | 0 ETH | 0.00531392 | ||||
Unstake Tokens | 19395880 | 288 days ago | IN | 0 ETH | 0.00330278 | ||||
Unstake Tokens | 19394803 | 288 days ago | IN | 0 ETH | 0.00852343 | ||||
Unstake Tokens | 19353240 | 294 days ago | IN | 0 ETH | 0.01060715 | ||||
Unstake Tokens | 19353200 | 294 days ago | IN | 0 ETH | 0.00592246 | ||||
Unstake Tokens | 19345410 | 295 days ago | IN | 0 ETH | 0.00437359 | ||||
Unstake Tokens | 19323071 | 298 days ago | IN | 0 ETH | 0.00281363 | ||||
Unstake Tokens | 19319671 | 299 days ago | IN | 0 ETH | 0.00457071 | ||||
Enter To Revenue... | 19305676 | 301 days ago | IN | 0 ETH | 0.00610956 | ||||
Enter To Revenue... | 19269955 | 306 days ago | IN | 0 ETH | 0.01311952 | ||||
Enter To Revenue... | 19264026 | 307 days ago | IN | 0 ETH | 0.00372327 | ||||
Unstake Tokens | 19219037 | 313 days ago | IN | 0 ETH | 0.00198604 | ||||
Unstake Tokens | 19217726 | 313 days ago | IN | 0 ETH | 0.00219043 | ||||
Enter To Revenue... | 19206832 | 315 days ago | IN | 0 ETH | 0.00450871 | ||||
Unstake Tokens | 19191774 | 317 days ago | IN | 0 ETH | 0.00773826 | ||||
Unstake Tokens | 19190584 | 317 days ago | IN | 0 ETH | 0.00719528 | ||||
Enter To Revenue... | 19164780 | 321 days ago | IN | 0 ETH | 0.00282984 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
RevenueDistributer
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./TransferHelper.sol"; import "./FullMath.sol"; contract RevenueDistributer is Context, ReentrancyGuard, Ownable { using SafeMath for uint256; event WithdrawalCmbot(address indexed user, uint256 amount); event ClaimedTreasury(uint256 amount); event enteredRevenueSharing(address indexed user, uint256 amount); event UnstakeTokens(address indexed user, uint256 amount); address public cmbotCa; uint256 public minForRevenue = 10_000 * 1e8; uint256 public minForGodTier = 30_000 * 1e8; uint256 public minTimeRequired = 1 days; uint256 public overallStakedCmbot; uint256 public constant divisor = 10_000; uint256 public penalty = 1_000; address private _penaltyReceiver; bool public isStopped = false; //Emergency stop of staking struct ChadData { uint256 stakeEntryTimestamp; uint256 minReleaseTimestamp; uint256 lockedBalance; uint256 ethClaimed; } mapping(address => uint256) private _userEthPerTokenPaid; mapping(address => uint256) private _pendingRewards; mapping(address => ChadData) public chadData; uint256 private _totalEthPerToken; uint256 public totalDistributted; receive() external payable { if (overallStakedCmbot > 0) { uint256 precisionMultiplier = 1e18; _totalEthPerToken += (msg.value.mul(precisionMultiplier) / overallStakedCmbot); } } constructor(address cmbot, address penaltyReceiver_) { cmbotCa = cmbot; _penaltyReceiver = penaltyReceiver_; } function setMinForRevenue(uint256 _minForRevenue) public onlyOwner { minForRevenue = _minForRevenue; } function setMinForGodTier(uint256 _minForGodTier) public onlyOwner { minForGodTier = _minForGodTier; } function setMinTimeRequired(uint256 _minTimeRequired) public onlyOwner { minTimeRequired = _minTimeRequired; // In seconds } function changePenalty(uint256 newPenalty) public onlyOwner { require(newPenalty <= 9_000, "Penatly is too high"); penalty = newPenalty; } //Used in emergencies only. Can be called only once function stopStaking() public onlyOwner { isStopped = true; } function isGodMode(address chad) public view returns (bool) { ChadData storage user = chadData[chad]; uint256 balance = user.lockedBalance; return balance >= minForGodTier; } function enterToRevenueSharing(uint256 cmbotAmount) public nonReentrant { require(cmbotAmount >= minForRevenue, "Amount is below requirement"); require( IERC20(cmbotCa).balanceOf(_msgSender()) >= cmbotAmount, "Insufficient token balance" ); updateRewards(_msgSender()); uint256 poolJoiningTs = chadData[_msgSender()].stakeEntryTimestamp != 0 ? chadData[_msgSender()].stakeEntryTimestamp : block.timestamp; uint256 stakedBalance = chadData[_msgSender()].lockedBalance; uint256 ethChadClaimed = chadData[_msgSender()].ethClaimed; chadData[_msgSender()] = ChadData({ stakeEntryTimestamp: poolJoiningTs, minReleaseTimestamp: poolJoiningTs + minTimeRequired, lockedBalance: stakedBalance += cmbotAmount, ethClaimed: ethChadClaimed }); TransferHelper._safeTransferFromEnsureExactAmount( cmbotCa, _msgSender(), address(this), cmbotAmount ); overallStakedCmbot += cmbotAmount; emit enteredRevenueSharing(_msgSender(), cmbotAmount); } function updateRewards(address chad) public { uint256 precisionMultiplier = 1e18; uint256 owedPerToken = _totalEthPerToken.sub( _userEthPerTokenPaid[chad] ); uint256 owed = chadData[chad].lockedBalance.mul(owedPerToken).div( precisionMultiplier ); _pendingRewards[chad] = _pendingRewards[chad].add(owed); _userEthPerTokenPaid[chad] = _totalEthPerToken; } function chadShare(address chad) public view returns (uint256) { uint256 chadBalance = chadData[chad].lockedBalance; return chadBalance > 0 ? FullMath.mulDiv(chadBalance, divisor, overallStakedCmbot) : 0; } function claimRewards() public nonReentrant returns (bool success) { uint256 minReleaseTs = chadData[_msgSender()].minReleaseTimestamp; require(block.timestamp > minReleaseTs, "Tokens are not mature"); updateRewards(_msgSender()); uint256 reward = _pendingRewards[_msgSender()]; require(reward > 0, "No rewards to claim"); _pendingRewards[_msgSender()] = 0; (success, ) = address(_msgSender()).call{value: reward}(""); require(success, "Transfer failed"); _userEthPerTokenPaid[_msgSender()] = _totalEthPerToken; chadData[_msgSender()].ethClaimed += reward; totalDistributted += reward; emit WithdrawalCmbot(_msgSender(), reward); } function pendingRewards(address user) public view returns (uint256) { uint256 userStaked = chadData[user].lockedBalance; uint256 accruedRewardPerToken = _totalEthPerToken - _userEthPerTokenPaid[user]; uint256 pendingReward = (userStaked.mul(accruedRewardPerToken) / 1e18); return pendingReward; } function unstakeTokens() public nonReentrant { ChadData storage user = chadData[_msgSender()]; uint256 balance = user.lockedBalance; require(balance >= 0, "Insufficient staked balance"); updateRewards(_msgSender()); uint256 penaltyAmount = 0; if (block.timestamp < user.minReleaseTimestamp) { penaltyAmount = balance.mul(penalty).div(divisor); } uint256 returnAmount = balance.sub(penaltyAmount); IERC20(cmbotCa).transfer(_msgSender(), returnAmount); if (penaltyAmount > 0) { IERC20(cmbotCa).transfer(_penaltyReceiver, penaltyAmount); } user.lockedBalance = 0; user.stakeEntryTimestamp = 0; user.minReleaseTimestamp = 0; overallStakedCmbot -= balance; emit UnstakeTokens(_msgSender(), balance); } /** * @dev Emergency function that allows to withdraw tokens and ETH without any penalties. * Can only be called when staking is stopped (isStopped = true). */ function emergencyWithdraw() public nonReentrant { require(isStopped, "Staking is active"); ChadData storage user = chadData[_msgSender()]; uint256 balance = user.lockedBalance; require(balance > 0, "Insufficient staked balance"); user.lockedBalance = 0; overallStakedCmbot -= balance; IERC20(cmbotCa).transfer(_msgSender(), balance); emit UnstakeTokens(_msgSender(), balance); } function emergencyWithdrawEth() public nonReentrant onlyOwner { require(isStopped, "Staking is active"); uint256 contractBalance = address(this).balance; require(contractBalance > 0, "No ETH to withdraw"); (bool success, ) = owner().call{value: contractBalance}(""); require(success, "Transfer failed"); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.4.0; /// @title Contains 512-bit math functions /// @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision /// @dev Handles "phantom overflow" i.e., allows multiplication and division where an intermediate value overflows 256 bits library FullMath { /// @notice Calculates floor(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 /// @param a The multiplicand /// @param b The multiplier /// @param denominator The divisor /// @return result The 256-bit result /// @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldiv function mulDiv( uint256 a, uint256 b, uint256 denominator ) internal pure returns (uint256 result) { // 512-bit multiply [prod1 prod0] = a * b // Compute the product mod 2**256 and mod 2**256 - 1 // then use the Chinese Remainder Theorem to reconstruct // the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2**256 + prod0 uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(a, b, not(0)) prod0 := mul(a, b) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division if (prod1 == 0) { require(denominator > 0); assembly { result := div(prod0, denominator) } return result; } // Make sure the result is less than 2**256. // Also prevents denominator == 0 require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0] // Compute remainder using mulmod uint256 remainder; assembly { remainder := mulmod(a, b, denominator) } // Subtract 256 bit number from 512 bit number assembly { prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator // Compute largest power of two divisor of denominator. // Always >= 1. unchecked { uint256 twos = (type(uint256).max - denominator + 1) & denominator; // Divide denominator by power of two assembly { denominator := div(denominator, twos) } // Divide [prod1 prod0] by the factors of two assembly { prod0 := div(prod0, twos) } // Shift in bits from prod1 into prod0. For this we need // to flip `twos` such that it is 2**256 / twos. // If twos is zero, then it becomes one assembly { twos := add(div(sub(0, twos), twos), 1) } prod0 |= prod1 * twos; // Invert denominator mod 2**256 // Now that denominator is an odd number, it has an inverse // modulo 2**256 such that denominator * inv = 1 mod 2**256. // Compute the inverse by starting with a seed that is correct // correct for four bits. That is, denominator * inv = 1 mod 2**4 uint256 inv = (3 * denominator) ^ 2; // Now use Newton-Raphson iteration to improve the precision. // Thanks to Hensel's lifting lemma, this also works in modular // arithmetic, doubling the correct bits in each step. inv *= 2 - denominator * inv; // inverse mod 2**8 inv *= 2 - denominator * inv; // inverse mod 2**16 inv *= 2 - denominator * inv; // inverse mod 2**32 inv *= 2 - denominator * inv; // inverse mod 2**64 inv *= 2 - denominator * inv; // inverse mod 2**128 inv *= 2 - denominator * inv; // inverse mod 2**256 // Because the division is now exact we can divide by multiplying // with the modular inverse of denominator. This will give us the // correct result modulo 2**256. Since the precoditions guarantee // that the outcome is less than 2**256, this is the final result. // We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inv; return result; } } }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity >=0.5.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; library TransferHelper { using SafeERC20 for IERC20; function _safeTransferFromEnsureExactAmount( address token, address sender, address recipient, uint256 amount ) internal { uint256 oldRecipientBalance = IERC20(token).balanceOf(recipient); IERC20(token).safeTransferFrom(sender, recipient, amount); uint256 newRecipientBalance = IERC20(token).balanceOf(recipient); require( newRecipientBalance - oldRecipientBalance == amount, "Not enough token was transfered" ); } function safeTransfer( address token, address recipient, uint256 amount ) internal { IERC20(token).safeTransfer(recipient, amount); } function safeTransferFrom( address token, address sender, address recipient, uint256 amount ) internal { IERC20(token).safeTransferFrom(sender, recipient, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @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]. */ abstract 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() { _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 making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // 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 (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @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) { return a + b; } /** * @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 a - b; } /** * @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) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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 a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting 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) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * 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) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @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 Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ 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' 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)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @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"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @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). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // 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 cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @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://consensys.net/diligence/blog/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.8.0/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"); (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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"cmbot","type":"address"},{"internalType":"address","name":"penaltyReceiver_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimedTreasury","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UnstakeTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawalCmbot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"enteredRevenueSharing","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"chadData","outputs":[{"internalType":"uint256","name":"stakeEntryTimestamp","type":"uint256"},{"internalType":"uint256","name":"minReleaseTimestamp","type":"uint256"},{"internalType":"uint256","name":"lockedBalance","type":"uint256"},{"internalType":"uint256","name":"ethClaimed","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"chad","type":"address"}],"name":"chadShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPenalty","type":"uint256"}],"name":"changePenalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cmbotCa","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"divisor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cmbotAmount","type":"uint256"}],"name":"enterToRevenueSharing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"chad","type":"address"}],"name":"isGodMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isStopped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minForGodTier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minForRevenue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minTimeRequired","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"overallStakedCmbot","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"penalty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"pendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minForGodTier","type":"uint256"}],"name":"setMinForGodTier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minForRevenue","type":"uint256"}],"name":"setMinForRevenue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minTimeRequired","type":"uint256"}],"name":"setMinTimeRequired","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalDistributted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstakeTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"chad","type":"address"}],"name":"updateRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405264e8d4a510006003556502ba7def3000600455620151806005556103e86007556008805460ff60a01b191690553480156200003e57600080fd5b5060405162001a0638038062001a06833981016040819052620000619162000112565b60016000556200007133620000a3565b600280546001600160a01b039384166001600160a01b031991821617909155600880549290931691161790556200014a565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b03811681146200010d57600080fd5b919050565b600080604083850312156200012657600080fd5b6200013183620000f5565b91506200014160208401620000f5565b90509250929050565b6118ac806200015a6000396000f3fe6080604052600436106101a05760003560e01c80636777790e116100ec578063a5ce413b1161008a578063f1f28b1611610064578063f1f28b16146104d5578063f2fde38b146104eb578063f4d1aff31461050b578063f6219cd51461052157600080fd5b8063a5ce413b1461048b578063d0c7954f146104a0578063db2e21bc146104c057600080fd5b8063727b0c6b116100c6578063727b0c6b1461040d57806387b524111461042d5780638da5cb5b1461044d578063943373e71461046b57600080fd5b80636777790e1461035e5780636f8e7a9e14610396578063715018a6146103f857600080fd5b806331d7a2621161015957806347a9ff821161013357806347a9ff82146102e857806348d6a00a146102fe5780634a22a1251461031e5780635fd619651461033e57600080fd5b806331d7a26214610282578063372500ab146102a25780633f683b6a146102c757600080fd5b80630550b266146101ed5780630edd2ffc14610202578063134dd1911461022b5780631f2dc5ef1461024157806322019a1c1461025757806330b2b9ff1461026c57600080fd5b366101e857600654156101e657600654670de0b6b3a7640000906101c4348361055f565b6101ce9190611727565b600c60008282546101df9190611749565b9091555050505b005b600080fd5b3480156101f957600080fd5b506101e6610574565b34801561020e57600080fd5b5061021860075481565b6040519081526020015b60405180910390f35b34801561023757600080fd5b5061021860035481565b34801561024d57600080fd5b5061021861271081565b34801561026357600080fd5b506101e6610591565b34801561027857600080fd5b5061021860055481565b34801561028e57600080fd5b5061021861029d36600461175c565b6106ea565b3480156102ae57600080fd5b506102b7610749565b6040519015158152602001610222565b3480156102d357600080fd5b506008546102b790600160a01b900460ff1681565b3480156102f457600080fd5b5061021860065481565b34801561030a57600080fd5b506101e6610319366004611785565b610935565b34801561032a57600080fd5b506101e6610339366004611785565b610942565b34801561034a57600080fd5b506101e661035936600461175c565b610997565b34801561036a57600080fd5b5060025461037e906001600160a01b031681565b6040516001600160a01b039091168152602001610222565b3480156103a257600080fd5b506103d86103b136600461175c565b600b6020526000908152604090208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610222565b34801561040457600080fd5b506101e6610a58565b34801561041957600080fd5b506101e6610428366004611785565b610a6a565b34801561043957600080fd5b5061021861044836600461175c565b610a77565b34801561045957600080fd5b506001546001600160a01b031661037e565b34801561047757600080fd5b506101e6610486366004611785565b610ab5565b34801561049757600080fd5b506101e6610d29565b3480156104ac57600080fd5b506101e66104bb366004611785565b610efd565b3480156104cc57600080fd5b506101e6610f0a565b3480156104e157600080fd5b5061021860045481565b3480156104f757600080fd5b506101e661050636600461175c565b6110a6565b34801561051757600080fd5b50610218600d5481565b34801561052d57600080fd5b506102b761053c36600461175c565b6001600160a01b03166000908152600b6020526040902060020154600454111590565b600061056b828461179e565b90505b92915050565b61057c61111c565b6008805460ff60a01b1916600160a01b179055565b610599611176565b6105a161111c565b600854600160a01b900460ff166105f35760405162461bcd60e51b81526020600482015260116024820152705374616b696e672069732061637469766560781b60448201526064015b60405180910390fd5b47806106365760405162461bcd60e51b81526020600482015260126024820152714e6f2045544820746f20776974686472617760701b60448201526064016105ea565b600061064a6001546001600160a01b031690565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114610694576040519150601f19603f3d011682016040523d82523d6000602084013e610699565b606091505b50509050806106dc5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b60448201526064016105ea565b50506106e86001600055565b565b6001600160a01b0381166000908152600b60209081526040808320600201546009909252822054600c54839161071f916117b5565b90506000670de0b6b3a7640000610736848461055f565b6107409190611727565b95945050505050565b6000610753611176565b336000908152600b60205260409020600101544281106107ad5760405162461bcd60e51b8152602060048201526015602482015274546f6b656e7320617265206e6f74206d617475726560581b60448201526064016105ea565b6107b633610997565b336000908152600a6020526040902054806108095760405162461bcd60e51b81526020600482015260136024820152724e6f207265776172647320746f20636c61696d60681b60448201526064016105ea565b336000818152600a602052604080822082905551839181818185875af1925050503d8060008114610856576040519150601f19603f3d011682016040523d82523d6000602084013e61085b565b606091505b505080935050826108a05760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b60448201526064016105ea565b600c5433600090815260096020908152604080832093909355600b905290812060030180548392906108d3908490611749565b9250508190555080600d60008282546108ec9190611749565b909155505060405181815233907fba65b0b3ee8126546d5e6bda127d060a5585196b13ae330c45302dbb7f3f89d29060200160405180910390a250506109326001600055565b90565b61093d61111c565b600455565b61094a61111c565b6123288111156109925760405162461bcd60e51b81526020600482015260136024820152720a0cadcc2e8d8f240d2e640e8dede40d0d2ced606b1b60448201526064016105ea565b600755565b6001600160a01b038116600090815260096020526040812054600c54670de0b6b3a764000092916109c891906111cf565b6001600160a01b0384166000908152600b6020526040812060020154919250906109fe9084906109f8908561055f565b906111db565b6001600160a01b0385166000908152600a6020526040902054909150610a2490826111e7565b6001600160a01b039094166000908152600a6020908152604080832096909655600c54600990915294902093909355505050565b610a6061111c565b6106e860006111f3565b610a7261111c565b600355565b6001600160a01b0381166000908152600b602052604081206002015480610a9f576000610aae565b610aae81612710600654611245565b9392505050565b610abd611176565b600354811015610b0f5760405162461bcd60e51b815260206004820152601b60248201527f416d6f756e742069732062656c6f7720726571756972656d656e74000000000060448201526064016105ea565b60025481906001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610b67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8b91906117c8565b1015610bd95760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e7420746f6b656e2062616c616e636500000000000060448201526064016105ea565b610be233610997565b336000908152600b60205260408120548103610bfe5742610c0f565b336000908152600b60205260409020545b336000908152600b602090815260409182902060028101546003909101548351608081019094528484526005549495509093909291820190610c519086611749565b8152602001610c608685611749565b935083815260200182815250600b6000610c773390565b6001600160a01b039081168252602080830193909352604091820160002084518155928401516001840155908301516002808401919091556060909301516003909201919091559054610ccd91163330876112f2565b8360066000828254610cdf9190611749565b909155505060405184815233907fb0b2684883f15b5bf0034068d1e208a84670159daf732e0fd0fb93bc4aabbd239060200160405180910390a2505050610d266001600055565b50565b610d31611176565b336000818152600b6020526040902060028101549091610d5090610997565b60008260010154421015610d7c57610d796127106109f86007548561055f90919063ffffffff16565b90505b6000610d8883836111cf565b6002549091506001600160a01b031663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015610dea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0e91906117e1565b508115610e905760025460085460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810185905291169063a9059cbb906044016020604051808303816000875af1158015610e6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8e91906117e1565b505b6000600285018190558085556001850181905560068054859290610eb59084906117b5565b909155505060405183815233907ff74a79d13d6fdbdf26b2c779e6a24490a43e65d60cc7e064740f8d40b2b5ea2c9060200160405180910390a2505050506106e86001600055565b610f0561111c565b600555565b610f12611176565b600854600160a01b900460ff16610f5f5760405162461bcd60e51b81526020600482015260116024820152705374616b696e672069732061637469766560781b60448201526064016105ea565b336000908152600b60205260409020600281015480610fc05760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e74207374616b65642062616c616e6365000000000060448201526064016105ea565b600082600201819055508060066000828254610fdc91906117b5565b90915550506002546001600160a01b031663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015611040573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061106491906117e1565b5060405181815233907ff74a79d13d6fdbdf26b2c779e6a24490a43e65d60cc7e064740f8d40b2b5ea2c9060200160405180910390a250506106e86001600055565b6110ae61111c565b6001600160a01b0381166111135760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105ea565b610d26816111f3565b6001546001600160a01b031633146106e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ea565b6002600054036111c85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105ea565b6002600055565b600061056b82846117b5565b600061056b8284611727565b600061056b8284611749565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080806000198587098587029250828110838203039150508060000361127e576000841161127357600080fd5b508290049050610aae565b80841161128a57600080fd5b600084868809600260036001881981018916988990049182028318808302840302808302840302808302840302808302840302808302840302918202909203026000889003889004909101858311909403939093029303949094049190911702949350505050565b6040516370a0823160e01b81526001600160a01b038381166004830152600091908616906370a0823190602401602060405180830381865afa15801561133c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136091906117c8565b90506113776001600160a01b038616858585611447565b6040516370a0823160e01b81526001600160a01b038481166004830152600091908716906370a0823190602401602060405180830381865afa1580156113c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e591906117c8565b9050826113f283836117b5565b1461143f5760405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f75676820746f6b656e20776173207472616e7366657265640060448201526064016105ea565b505050505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526114a19085906114a7565b50505050565b60006114fc826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115819092919063ffffffff16565b905080516000148061151d57508080602001905181019061151d91906117e1565b61157c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105ea565b505050565b60606115908484600085611598565b949350505050565b6060824710156115f95760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105ea565b600080866001600160a01b031685876040516116159190611827565b60006040518083038185875af1925050503d8060008114611652576040519150601f19603f3d011682016040523d82523d6000602084013e611657565b606091505b509150915061166887838387611673565b979650505050505050565b606083156116e25782516000036116db576001600160a01b0385163b6116db5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105ea565b5081611590565b61159083838151156116f75781518083602001fd5b8060405162461bcd60e51b81526004016105ea9190611843565b634e487b7160e01b600052601160045260246000fd5b60008261174457634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561056e5761056e611711565b60006020828403121561176e57600080fd5b81356001600160a01b0381168114610aae57600080fd5b60006020828403121561179757600080fd5b5035919050565b808202811582820484141761056e5761056e611711565b8181038181111561056e5761056e611711565b6000602082840312156117da57600080fd5b5051919050565b6000602082840312156117f357600080fd5b81518015158114610aae57600080fd5b60005b8381101561181e578181015183820152602001611806565b50506000910152565b60008251611839818460208701611803565b9190910192915050565b6020815260008251806020840152611862816040850160208701611803565b601f01601f1916919091016040019291505056fea2646970667358221220b355b7704bbfead7b637209e6f008235cfb7e51373ec5f00bee55d8b45f4a8cd64736f6c63430008110033000000000000000000000000e02f72be83855c9e400fd9cd9f83158abfc8705300000000000000000000000047bb4af749a40bf38f56cb1c13049b760fbfbb0a
Deployed Bytecode
0x6080604052600436106101a05760003560e01c80636777790e116100ec578063a5ce413b1161008a578063f1f28b1611610064578063f1f28b16146104d5578063f2fde38b146104eb578063f4d1aff31461050b578063f6219cd51461052157600080fd5b8063a5ce413b1461048b578063d0c7954f146104a0578063db2e21bc146104c057600080fd5b8063727b0c6b116100c6578063727b0c6b1461040d57806387b524111461042d5780638da5cb5b1461044d578063943373e71461046b57600080fd5b80636777790e1461035e5780636f8e7a9e14610396578063715018a6146103f857600080fd5b806331d7a2621161015957806347a9ff821161013357806347a9ff82146102e857806348d6a00a146102fe5780634a22a1251461031e5780635fd619651461033e57600080fd5b806331d7a26214610282578063372500ab146102a25780633f683b6a146102c757600080fd5b80630550b266146101ed5780630edd2ffc14610202578063134dd1911461022b5780631f2dc5ef1461024157806322019a1c1461025757806330b2b9ff1461026c57600080fd5b366101e857600654156101e657600654670de0b6b3a7640000906101c4348361055f565b6101ce9190611727565b600c60008282546101df9190611749565b9091555050505b005b600080fd5b3480156101f957600080fd5b506101e6610574565b34801561020e57600080fd5b5061021860075481565b6040519081526020015b60405180910390f35b34801561023757600080fd5b5061021860035481565b34801561024d57600080fd5b5061021861271081565b34801561026357600080fd5b506101e6610591565b34801561027857600080fd5b5061021860055481565b34801561028e57600080fd5b5061021861029d36600461175c565b6106ea565b3480156102ae57600080fd5b506102b7610749565b6040519015158152602001610222565b3480156102d357600080fd5b506008546102b790600160a01b900460ff1681565b3480156102f457600080fd5b5061021860065481565b34801561030a57600080fd5b506101e6610319366004611785565b610935565b34801561032a57600080fd5b506101e6610339366004611785565b610942565b34801561034a57600080fd5b506101e661035936600461175c565b610997565b34801561036a57600080fd5b5060025461037e906001600160a01b031681565b6040516001600160a01b039091168152602001610222565b3480156103a257600080fd5b506103d86103b136600461175c565b600b6020526000908152604090208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610222565b34801561040457600080fd5b506101e6610a58565b34801561041957600080fd5b506101e6610428366004611785565b610a6a565b34801561043957600080fd5b5061021861044836600461175c565b610a77565b34801561045957600080fd5b506001546001600160a01b031661037e565b34801561047757600080fd5b506101e6610486366004611785565b610ab5565b34801561049757600080fd5b506101e6610d29565b3480156104ac57600080fd5b506101e66104bb366004611785565b610efd565b3480156104cc57600080fd5b506101e6610f0a565b3480156104e157600080fd5b5061021860045481565b3480156104f757600080fd5b506101e661050636600461175c565b6110a6565b34801561051757600080fd5b50610218600d5481565b34801561052d57600080fd5b506102b761053c36600461175c565b6001600160a01b03166000908152600b6020526040902060020154600454111590565b600061056b828461179e565b90505b92915050565b61057c61111c565b6008805460ff60a01b1916600160a01b179055565b610599611176565b6105a161111c565b600854600160a01b900460ff166105f35760405162461bcd60e51b81526020600482015260116024820152705374616b696e672069732061637469766560781b60448201526064015b60405180910390fd5b47806106365760405162461bcd60e51b81526020600482015260126024820152714e6f2045544820746f20776974686472617760701b60448201526064016105ea565b600061064a6001546001600160a01b031690565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114610694576040519150601f19603f3d011682016040523d82523d6000602084013e610699565b606091505b50509050806106dc5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b60448201526064016105ea565b50506106e86001600055565b565b6001600160a01b0381166000908152600b60209081526040808320600201546009909252822054600c54839161071f916117b5565b90506000670de0b6b3a7640000610736848461055f565b6107409190611727565b95945050505050565b6000610753611176565b336000908152600b60205260409020600101544281106107ad5760405162461bcd60e51b8152602060048201526015602482015274546f6b656e7320617265206e6f74206d617475726560581b60448201526064016105ea565b6107b633610997565b336000908152600a6020526040902054806108095760405162461bcd60e51b81526020600482015260136024820152724e6f207265776172647320746f20636c61696d60681b60448201526064016105ea565b336000818152600a602052604080822082905551839181818185875af1925050503d8060008114610856576040519150601f19603f3d011682016040523d82523d6000602084013e61085b565b606091505b505080935050826108a05760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b60448201526064016105ea565b600c5433600090815260096020908152604080832093909355600b905290812060030180548392906108d3908490611749565b9250508190555080600d60008282546108ec9190611749565b909155505060405181815233907fba65b0b3ee8126546d5e6bda127d060a5585196b13ae330c45302dbb7f3f89d29060200160405180910390a250506109326001600055565b90565b61093d61111c565b600455565b61094a61111c565b6123288111156109925760405162461bcd60e51b81526020600482015260136024820152720a0cadcc2e8d8f240d2e640e8dede40d0d2ced606b1b60448201526064016105ea565b600755565b6001600160a01b038116600090815260096020526040812054600c54670de0b6b3a764000092916109c891906111cf565b6001600160a01b0384166000908152600b6020526040812060020154919250906109fe9084906109f8908561055f565b906111db565b6001600160a01b0385166000908152600a6020526040902054909150610a2490826111e7565b6001600160a01b039094166000908152600a6020908152604080832096909655600c54600990915294902093909355505050565b610a6061111c565b6106e860006111f3565b610a7261111c565b600355565b6001600160a01b0381166000908152600b602052604081206002015480610a9f576000610aae565b610aae81612710600654611245565b9392505050565b610abd611176565b600354811015610b0f5760405162461bcd60e51b815260206004820152601b60248201527f416d6f756e742069732062656c6f7720726571756972656d656e74000000000060448201526064016105ea565b60025481906001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610b67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8b91906117c8565b1015610bd95760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e7420746f6b656e2062616c616e636500000000000060448201526064016105ea565b610be233610997565b336000908152600b60205260408120548103610bfe5742610c0f565b336000908152600b60205260409020545b336000908152600b602090815260409182902060028101546003909101548351608081019094528484526005549495509093909291820190610c519086611749565b8152602001610c608685611749565b935083815260200182815250600b6000610c773390565b6001600160a01b039081168252602080830193909352604091820160002084518155928401516001840155908301516002808401919091556060909301516003909201919091559054610ccd91163330876112f2565b8360066000828254610cdf9190611749565b909155505060405184815233907fb0b2684883f15b5bf0034068d1e208a84670159daf732e0fd0fb93bc4aabbd239060200160405180910390a2505050610d266001600055565b50565b610d31611176565b336000818152600b6020526040902060028101549091610d5090610997565b60008260010154421015610d7c57610d796127106109f86007548561055f90919063ffffffff16565b90505b6000610d8883836111cf565b6002549091506001600160a01b031663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015610dea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0e91906117e1565b508115610e905760025460085460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810185905291169063a9059cbb906044016020604051808303816000875af1158015610e6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8e91906117e1565b505b6000600285018190558085556001850181905560068054859290610eb59084906117b5565b909155505060405183815233907ff74a79d13d6fdbdf26b2c779e6a24490a43e65d60cc7e064740f8d40b2b5ea2c9060200160405180910390a2505050506106e86001600055565b610f0561111c565b600555565b610f12611176565b600854600160a01b900460ff16610f5f5760405162461bcd60e51b81526020600482015260116024820152705374616b696e672069732061637469766560781b60448201526064016105ea565b336000908152600b60205260409020600281015480610fc05760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e74207374616b65642062616c616e6365000000000060448201526064016105ea565b600082600201819055508060066000828254610fdc91906117b5565b90915550506002546001600160a01b031663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015611040573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061106491906117e1565b5060405181815233907ff74a79d13d6fdbdf26b2c779e6a24490a43e65d60cc7e064740f8d40b2b5ea2c9060200160405180910390a250506106e86001600055565b6110ae61111c565b6001600160a01b0381166111135760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105ea565b610d26816111f3565b6001546001600160a01b031633146106e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ea565b6002600054036111c85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105ea565b6002600055565b600061056b82846117b5565b600061056b8284611727565b600061056b8284611749565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080806000198587098587029250828110838203039150508060000361127e576000841161127357600080fd5b508290049050610aae565b80841161128a57600080fd5b600084868809600260036001881981018916988990049182028318808302840302808302840302808302840302808302840302808302840302918202909203026000889003889004909101858311909403939093029303949094049190911702949350505050565b6040516370a0823160e01b81526001600160a01b038381166004830152600091908616906370a0823190602401602060405180830381865afa15801561133c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136091906117c8565b90506113776001600160a01b038616858585611447565b6040516370a0823160e01b81526001600160a01b038481166004830152600091908716906370a0823190602401602060405180830381865afa1580156113c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e591906117c8565b9050826113f283836117b5565b1461143f5760405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f75676820746f6b656e20776173207472616e7366657265640060448201526064016105ea565b505050505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526114a19085906114a7565b50505050565b60006114fc826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115819092919063ffffffff16565b905080516000148061151d57508080602001905181019061151d91906117e1565b61157c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105ea565b505050565b60606115908484600085611598565b949350505050565b6060824710156115f95760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105ea565b600080866001600160a01b031685876040516116159190611827565b60006040518083038185875af1925050503d8060008114611652576040519150601f19603f3d011682016040523d82523d6000602084013e611657565b606091505b509150915061166887838387611673565b979650505050505050565b606083156116e25782516000036116db576001600160a01b0385163b6116db5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105ea565b5081611590565b61159083838151156116f75781518083602001fd5b8060405162461bcd60e51b81526004016105ea9190611843565b634e487b7160e01b600052601160045260246000fd5b60008261174457634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561056e5761056e611711565b60006020828403121561176e57600080fd5b81356001600160a01b0381168114610aae57600080fd5b60006020828403121561179757600080fd5b5035919050565b808202811582820484141761056e5761056e611711565b8181038181111561056e5761056e611711565b6000602082840312156117da57600080fd5b5051919050565b6000602082840312156117f357600080fd5b81518015158114610aae57600080fd5b60005b8381101561181e578181015183820152602001611806565b50506000910152565b60008251611839818460208701611803565b9190910192915050565b6020815260008251806020840152611862816040850160208701611803565b601f01601f1916919091016040019291505056fea2646970667358221220b355b7704bbfead7b637209e6f008235cfb7e51373ec5f00bee55d8b45f4a8cd64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000e02f72be83855c9e400fd9cd9f83158abfc8705300000000000000000000000047bb4af749a40bf38f56cb1c13049b760fbfbb0a
-----Decoded View---------------
Arg [0] : cmbot (address): 0xE02F72be83855C9E400Fd9Cd9F83158aBfC87053
Arg [1] : penaltyReceiver_ (address): 0x47bb4Af749A40Bf38f56cb1C13049B760fbFBB0A
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000e02f72be83855c9e400fd9cd9f83158abfc87053
Arg [1] : 00000000000000000000000047bb4af749a40bf38f56cb1c13049b760fbfbb0a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.