Contract Overview
My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Contract Name:
CougarMigration
Compiler Version
v0.6.12+commit.27d51765
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.6.12; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "./libs/IBEP20.sol"; import "./libs/SafeBEP20.sol"; import "./libs/ICougarReferral.sol"; contract CougarMigration is ReentrancyGuard { using SafeMath for uint256; using SafeBEP20 for IBEP20; // The number of unclaimed COUGAR tokens the user has mapping(address => uint256) public cougarUnclaimed; // Last time user claimed COUGAR mapping(address => uint256) public lastCougarClaimed; event ReferralCommissionPaid(address indexed user, address indexed referrer, uint256 commissionAmount); ICougarReferral public cougarReferral; uint16 public referralCommissionRate = 300; // Max referral commission rate: 3%. uint16 public constant MAXIMUM_REFERRAL_COMMISSION_RATE = 300; // COUGAR token IBEP20 public COUGAR; // Buy token IBEP20 public BuyToken; // Sale active bool public isSaleActive; // Claim active bool public isClaimActive; // Starting timestamp uint256 public startingTimeStamp; // Max Min timestamp 10 days uint256 public constant MaxMinstartingTimeStamp = 864000; // Total COUGAR sold uint256 public totalCougarSold = 0; // Price of presale COUGAR: 1 BuyToken uint256 private constant BuyTokenPerCGS = 100; // Time per percent uint256 public timePerPercent = 1; // 10 minutes // Max Time per percent uint256 public constant maxTimePerPercent = 1800; // 30 minutes // Max Buy Per User uint256 public maxBuyPerUser = 200000000*(1e18); // decimal 18 uint256 public firstHarvestTimestamp; address payable owner; uint256 public constant COUGAR_HARDCAP = 200000000*(1e18); modifier onlyOwner() { require(msg.sender == owner, "You're not the owner"); _; } event TokenBuy(address user, uint256 tokens); event TokenClaim(address user, uint256 tokens); event MaxBuyPerUserUpdated(address user, uint256 previousRate, uint256 newRate); constructor( address _COUGAR, uint256 _startingTimestamp, address _BuyTokenAddress ) public { COUGAR = IBEP20(_COUGAR); BuyToken = IBEP20(_BuyTokenAddress); isSaleActive = true; isClaimActive = false; owner = msg.sender; startingTimeStamp = _startingTimestamp; } function setSaleActive(bool _isSaleActive) external onlyOwner { isSaleActive = _isSaleActive; } function setClaimActive(bool _isClaimActive) external onlyOwner { isClaimActive = _isClaimActive; if (firstHarvestTimestamp == 0 && _isClaimActive) { firstHarvestTimestamp = block.timestamp; } } function buy(uint256 _amount, address _buyer, address _referrer) public nonReentrant { require(isSaleActive, "Presale has not started"); require( block.timestamp >= startingTimeStamp, "Presale has not started" ); address buyer = _buyer; uint256 tokens = _amount.div(BuyTokenPerCGS).mul(100); require( totalCougarSold + tokens <= COUGAR_HARDCAP, "Cougar presale hardcap reached" ); require( cougarUnclaimed[buyer] + tokens <= maxBuyPerUser, "Your amount exceeds the max buy number" ); BuyToken.safeTransferFrom(buyer, address(this), _amount); cougarUnclaimed[buyer] = cougarUnclaimed[buyer].add(tokens); totalCougarSold = totalCougarSold.add(tokens); if (_amount > 0 && address(cougarReferral) != address(0) && _referrer != address(0) && _referrer != msg.sender) { cougarReferral.recordReferral(msg.sender, _referrer); } emit TokenBuy(buyer, tokens); } function claim() external { require(isClaimActive, "Claim is not allowed yet"); require( cougarUnclaimed[msg.sender] > 0, "User should have unclaimed COUGAR tokens" ); require( COUGAR.balanceOf(address(this)) >= cougarUnclaimed[msg.sender], "There are not enough COUGAR tokens to transfer." ); if (lastCougarClaimed[msg.sender] == 0) { lastCougarClaimed[msg.sender] = firstHarvestTimestamp; } uint256 allowedPercentToClaim = block .timestamp .sub(lastCougarClaimed[msg.sender]) .div(timePerPercent); require( allowedPercentToClaim > 0, "User cannot claim COUGAR tokens when Percent is 0%" ); if (allowedPercentToClaim > 100) { allowedPercentToClaim = 100; // ensure they cannot claim more than they have. } lastCougarClaimed[msg.sender] = block.timestamp; uint256 cougarToClaim = cougarUnclaimed[msg.sender] .mul(allowedPercentToClaim) .div(100); cougarUnclaimed[msg.sender] = cougarUnclaimed[msg.sender].sub(cougarToClaim); COUGAR.safeTransfer(msg.sender, cougarToClaim); payReferralCommission(msg.sender, cougarToClaim); emit TokenClaim(msg.sender, cougarToClaim); } function withdrawFunds() external onlyOwner { BuyToken.safeTransfer(msg.sender, BuyToken.balanceOf(address(this))); } function withdrawUnsoldCOUGAR() external onlyOwner { uint256 amount = COUGAR.balanceOf(address(this)) - totalCougarSold; COUGAR.safeTransfer(msg.sender, amount); } function emergencyWithdraw() external onlyOwner { COUGAR.safeTransfer(msg.sender, COUGAR.balanceOf(address(this))); } function updateMaxBuyPerUser(uint256 _maxBuyPerUser) external onlyOwner { require(_maxBuyPerUser <= COUGAR_HARDCAP, "COUGAR::updateMaxBuyPerUser: maxBuyPerUser must not exceed the hardcap."); emit MaxBuyPerUserUpdated(msg.sender, maxBuyPerUser, _maxBuyPerUser); maxBuyPerUser = _maxBuyPerUser; } function updateTimePerPercent(uint256 _timePerPercent) external onlyOwner { require(_timePerPercent <= maxTimePerPercent, "COUGAR::updateTimePerPercent: updateTimePerPercent must not exceed the maxTimePerPercent."); timePerPercent = _timePerPercent; } function updateStartingTimeStamp(uint256 _startingTimeStamp) external onlyOwner { require(_startingTimeStamp <= (startingTimeStamp+MaxMinstartingTimeStamp), "COUGAR::updateTimePerPercent: updateTimePerPercent must not exceed the MaxstartingTimeStamp."); require(_startingTimeStamp >= (startingTimeStamp-MaxMinstartingTimeStamp), "COUGAR::updateTimePerPercent: updateTimePerPercent must not exceed the MinstartingTimeStamp."); startingTimeStamp = _startingTimeStamp; } // Update referral commission rate by the owner function setReferralCommissionRate(uint16 _referralCommissionRate) public onlyOwner { require(_referralCommissionRate <= MAXIMUM_REFERRAL_COMMISSION_RATE, "setReferralCommissionRate: invalid referral commission rate basis points"); referralCommissionRate = _referralCommissionRate; } // Update the referral contract address by the owner function setCougarReferral(ICougarReferral _cougarReferral) public onlyOwner { cougarReferral = _cougarReferral; } // Pay referral commission to the referrer who referred this user. function payReferralCommission(address _user, uint256 _pending) internal { if (address(cougarReferral) != address(0) && referralCommissionRate > 0) { address referrer = cougarReferral.getReferrer(_user); uint256 commissionAmount = _pending.mul(referralCommissionRate).div(1e4); if (referrer != address(0) && commissionAmount > 0) { COUGAR.safeTransfer(referrer, commissionAmount); cougarReferral.recordReferralCommission(referrer, commissionAmount); emit ReferralCommissionPaid(_user, referrer, commissionAmount); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import "./IBEP20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; /** * @title SafeBEP20 * @dev Wrappers around BEP20 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 SafeBEP20 for IBEP20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeBEP20 { using SafeMath for uint256; using Address for address; function safeTransfer( IBEP20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IBEP20 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 * {IBEP20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IBEP20 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), "SafeBEP20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IBEP20 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( IBEP20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).sub( value, "SafeBEP20: 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(IBEP20 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, "SafeBEP20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeBEP20: BEP20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; interface ICougarReferral { /** * @dev Record referral. */ function recordReferral(address user, address referrer) external; /** * @dev Record referral commission. */ function recordReferralCommission(address referrer, uint256 commission) external; /** * @dev Get the referrer address that referred the user. */ function getReferrer(address user) external view returns (address); }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity >=0.4.0; interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the token name. */ function name() external view returns (string memory); /** * @dev Returns the bep token owner. */ function getOwner() external view returns (address); /** * @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 pragma solidity >=0.6.0 <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 () 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; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @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) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 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://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"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(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) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(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) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { 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); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @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, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { 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) { // 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) { 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) { 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) { 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) { require(b <= a, "SafeMath: subtraction overflow"); 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) { 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, reverting 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) { require(b > 0, "SafeMath: division by zero"); 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) { require(b > 0, "SafeMath: modulo by zero"); 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) { 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. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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); 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) { require(b > 0, errorMessage); return a % b; } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
[{"inputs":[{"internalType":"address","name":"_COUGAR","type":"address"},{"internalType":"uint256","name":"_startingTimestamp","type":"uint256"},{"internalType":"address","name":"_BuyTokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newRate","type":"uint256"}],"name":"MaxBuyPerUserUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"referrer","type":"address"},{"indexed":false,"internalType":"uint256","name":"commissionAmount","type":"uint256"}],"name":"ReferralCommissionPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"TokenBuy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"TokenClaim","type":"event"},{"inputs":[],"name":"BuyToken","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COUGAR","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COUGAR_HARDCAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_REFERRAL_COMMISSION_RATE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MaxMinstartingTimeStamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_buyer","type":"address"},{"internalType":"address","name":"_referrer","type":"address"}],"name":"buy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cougarReferral","outputs":[{"internalType":"contract ICougarReferral","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"cougarUnclaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"firstHarvestTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isClaimActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastCougarClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBuyPerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTimePerPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"referralCommissionRate","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_isClaimActive","type":"bool"}],"name":"setClaimActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ICougarReferral","name":"_cougarReferral","type":"address"}],"name":"setCougarReferral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_referralCommissionRate","type":"uint16"}],"name":"setReferralCommissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isSaleActive","type":"bool"}],"name":"setSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startingTimeStamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timePerPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalCougarSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxBuyPerUser","type":"uint256"}],"name":"updateMaxBuyPerUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startingTimeStamp","type":"uint256"}],"name":"updateStartingTimeStamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timePerPercent","type":"uint256"}],"name":"updateTimePerPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawUnsoldCOUGAR","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526003805461ffff60a01b1916604b60a21b179055600060075560016008556aa56fa5b99019a5c800000060095534801561003d57600080fd5b50604051611ca5380380611ca58339818101604052606081101561006057600080fd5b50805160208201516040909201516001600055600480546001600160a01b039384166001600160a01b0319918216179091556005805460ff60a81b1960ff60a01b19959094169083161793909316600160a01b1791909116909155600b805490911633179055600655611bcd806100d86000396000f3fe608060405234801561001057600080fd5b50600436106101ce5760003560e01c806373417b0911610104578063bfa56a1c116100a2578063db2e21bc11610071578063db2e21bc146103c1578063de284b3a146103c9578063e753858a146103d1578063f505d3f014610405576101ce565b8063bfa56a1c1461038c578063bff39a3d146103a9578063c489b795146103b1578063d30ef61b146103b9576101ce565b8063841718a6116100de578063841718a614610337578063a02c291314610356578063aac2c50d1461035e578063b340389214610366576101ce565b806373417b09146103085780637870908d146103275780637fc278031461032f576101ce565b806348b22bfb11610171578063549573b41161014b578063549573b41461029d57806355dbc826146102a5578063564566a8146102c65780636b195d20146102e2576101ce565b806348b22bfb1461026e5780634bb1b53e1461028d5780634e71d92d14610295576101ce565b80632777a66f116101ad5780632777a66f146101ff578063409889841461021c57806341852eb21461022457806341e0075f14610248576101ce565b80624d4d2c146101d3578063240d9a0d146101ed57806324600fc3146101f7575b600080fd5b6101db610422565b60408051918252519081900360200190f35b6101f5610428565b005b6101f5610513565b6101f56004803603602081101561021557600080fd5b50356105f2565b6101db6106d0565b61022c6106d7565b604080516001600160a01b039092168252519081900360200190f35b6101db6004803603602081101561025e57600080fd5b50356001600160a01b03166106e6565b6102766106f8565b6040805161ffff9092168252519081900360200190f35b6101db6106fe565b6101f561070d565b6101db6109d9565b6101f5600480360360208110156102bb57600080fd5b503561ffff166109df565b6102ce610a93565b604080519115158252519081900360200190f35b6101db600480360360208110156102f857600080fd5b50356001600160a01b0316610aa3565b6101f56004803603602081101561031e57600080fd5b50351515610ab5565b61022c610b32565b6102ce610b41565b6101f56004803603602081101561034d57600080fd5b50351515610b51565b6101db610bbc565b61022c610bc2565b6101f56004803603602081101561037c57600080fd5b50356001600160a01b0316610bd1565b6101f5600480360360208110156103a257600080fd5b5035610c40565b6101db610cd3565b6101db610cd9565b610276610cdf565b6101f5610cf0565b6101db610dcd565b6101f5600480360360608110156103e757600080fd5b508035906001600160a01b0360208201358116916040013516610dd3565b6101f56004803603602081101561041b57600080fd5b503561111a565b60065481565b600b546001600160a01b03163314610475576040805162461bcd60e51b81526020600482015260146024820152600080516020611b31833981519152604482015290519081900360640190fd5b60075460048054604080516370a0823160e01b8152309381019390935251600093926001600160a01b03909216916370a08231916024808301926020929190829003018186803b1580156104c857600080fd5b505afa1580156104dc573d6000803e3d6000fd5b505050506040513d60208110156104f257600080fd5b50516004549190039150610510906001600160a01b031633836111f9565b50565b600b546001600160a01b03163314610560576040805162461bcd60e51b81526020600482015260146024820152600080516020611b31833981519152604482015290519081900360640190fd5b600554604080516370a0823160e01b815230600482015290516105f09233926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b1580156105b157600080fd5b505afa1580156105c5573d6000803e3d6000fd5b505050506040513d60208110156105db57600080fd5b50516005546001600160a01b031691906111f9565b565b600b546001600160a01b0316331461063f576040805162461bcd60e51b81526020600482015260146024820152600080516020611b31833981519152604482015290519081900360640190fd5b620d2f00600654018111156106855760405162461bcd60e51b815260040180806020018281038252605c815260200180611a66605c913960600191505060405180910390fd5b620d2f00600654038110156106cb5760405162461bcd60e51b815260040180806020018281038252605c815260200180611900605c913960600191505060405180910390fd5b600655565b620d2f0081565b6005546001600160a01b031681565b60016020526000908152604090205481565b61012c81565b6aa56fa5b99019a5c800000081565b600554600160a81b900460ff1661076b576040805162461bcd60e51b815260206004820152601860248201527f436c61696d206973206e6f7420616c6c6f776564207965740000000000000000604482015290519081900360640190fd5b336000908152600160205260409020546107b65760405162461bcd60e51b8152600401808060200182810382526028815260200180611ac26028913960400191505060405180910390fd5b33600090815260016020908152604091829020546004805484516370a0823160e01b81523092810192909252935191936001600160a01b0316926370a0823192602480840193829003018186803b15801561081057600080fd5b505afa158015610824573d6000803e3d6000fd5b505050506040513d602081101561083a57600080fd5b505110156108795760405162461bcd60e51b815260040180806020018281038252602f815260200180611986602f913960400191505060405180910390fd5b336000908152600260205260409020546108a157600a54336000908152600260205260409020555b6008543360009081526002602052604081205490916108cb916108c5904290611250565b906112b2565b90506000811161090c5760405162461bcd60e51b81526004018080602001828103825260328152602001806119db6032913960400191505060405180910390fd5b6064811115610919575060645b3360009081526002602090815260408083204290556001909152812054610947906064906108c59085611319565b336000908152600160205260409020549091506109649082611250565b33600081815260016020526040902091909155600454610990916001600160a01b0390911690836111f9565b61099a3382611379565b604080513381526020810183905281517ffcd6a0cf5a625280133c034863698c011fa0aefbee7f3be397f86fabd9891852929181900390910190a15050565b600a5481565b600b546001600160a01b03163314610a2c576040805162461bcd60e51b81526020600482015260146024820152600080516020611b31833981519152604482015290519081900360640190fd5b61012c61ffff82161115610a715760405162461bcd60e51b81526004018080602001828103825260488152602001806118b86048913960600191505060405180910390fd5b6003805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b600554600160a01b900460ff1681565b60026020526000908152604090205481565b600b546001600160a01b03163314610b02576040805162461bcd60e51b81526020600482015260146024820152600080516020611b31833981519152604482015290519081900360640190fd5b6005805460ff60a81b1916600160a81b83151502179055600a54158015610b265750805b156105105742600a5550565b6003546001600160a01b031681565b600554600160a81b900460ff1681565b600b546001600160a01b03163314610b9e576040805162461bcd60e51b81526020600482015260146024820152600080516020611b31833981519152604482015290519081900360640190fd5b60058054911515600160a01b0260ff60a01b19909216919091179055565b60085481565b6004546001600160a01b031681565b600b546001600160a01b03163314610c1e576040805162461bcd60e51b81526020600482015260146024820152600080516020611b31833981519152604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b600b546001600160a01b03163314610c8d576040805162461bcd60e51b81526020600482015260146024820152600080516020611b31833981519152604482015290519081900360640190fd5b610708811115610cce5760405162461bcd60e51b8152600401808060200182810382526059815260200180611a0d6059913960600191505060405180910390fd5b600855565b61070881565b60075481565b600354600160a01b900461ffff1681565b600b546001600160a01b03163314610d3d576040805162461bcd60e51b81526020600482015260146024820152600080516020611b31833981519152604482015290519081900360640190fd5b60048054604080516370a0823160e01b81523093810193909352516105f09233926001600160a01b0316916370a0823191602480820192602092909190829003018186803b158015610d8e57600080fd5b505afa158015610da2573d6000803e3d6000fd5b505050506040513d6020811015610db857600080fd5b50516004546001600160a01b031691906111f9565b60095481565b60026000541415610e2b576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600055600554600160a01b900460ff16610e88576040805162461bcd60e51b8152602060048201526017602482015276141c995cd85b19481a185cc81b9bdd081cdd185c9d1959604a1b604482015290519081900360640190fd5b600654421015610ed9576040805162461bcd60e51b8152602060048201526017602482015276141c995cd85b19481a185cc81b9bdd081cdd185c9d1959604a1b604482015290519081900360640190fd5b816000610ef16064610eeb87826112b2565b90611319565b90506aa56fa5b99019a5c800000081600754011115610f57576040805162461bcd60e51b815260206004820152601e60248201527f436f756761722070726573616c65206861726463617020726561636865640000604482015290519081900360640190fd5b6009546001600160a01b03831660009081526001602052604090205482011115610fb25760405162461bcd60e51b8152600401808060200182810382526026815260200180611b0b6026913960400191505060405180910390fd5b600554610fca906001600160a01b0316833088611535565b6001600160a01b038216600090815260016020526040902054610fed908261158f565b6001600160a01b038316600090815260016020526040902055600754611013908261158f565b600755841580159061102f57506003546001600160a01b031615155b801561104357506001600160a01b03831615155b801561105857506001600160a01b0383163314155b156110ca5760035460408051630c7f7b6b60e01b81523360048201526001600160a01b03868116602483015291519190921691630c7f7b6b91604480830192600092919082900301818387803b1580156110b157600080fd5b505af11580156110c5573d6000803e3d6000fd5b505050505b604080516001600160a01b03841681526020810183905281517f0c031f45b18305561115944c48c15b7aef3fdfe9182afbf6b01c249542ec6a11929181900390910190a150506001600055505050565b600b546001600160a01b03163314611167576040805162461bcd60e51b81526020600482015260146024820152600080516020611b31833981519152604482015290519081900360640190fd5b6aa56fa5b99019a5c80000008111156111b15760405162461bcd60e51b8152600401808060200182810382526047815260200180611b516047913960600191505060405180910390fd5b600954604080513381526020810192909252818101839052517fd44f1e9dbc14228339fe110044fa8c10206523cb73e1d968cc83dbbc02e7c6b79181900360600190a1600955565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261124b9084906115e9565b505050565b6000828211156112a7576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b6000808211611308576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161131157fe5b049392505050565b600082611328575060006112ac565b8282028284828161133557fe5b04146113725760405162461bcd60e51b8152600401808060200182810382526021815260200180611aea6021913960400191505060405180910390fd5b9392505050565b6003546001600160a01b03161580159061139f5750600354600160a01b900461ffff1615155b156115315760035460408051634a9fefc760e01b81526001600160a01b03858116600483015291516000939290921691634a9fefc791602480820192602092909190829003018186803b1580156113f557600080fd5b505afa158015611409573d6000803e3d6000fd5b505050506040513d602081101561141f57600080fd5b505160035490915060009061144890612710906108c5908690600160a01b900461ffff16611319565b90506001600160a01b038216158015906114625750600081115b1561152e5760045461147e906001600160a01b031683836111f9565b60035460408051631b82d29760e31b81526001600160a01b038581166004830152602482018590529151919092169163dc1694b891604480830192600092919082900301818387803b1580156114d357600080fd5b505af11580156114e7573d6000803e3d6000fd5b50506040805184815290516001600160a01b038087169450881692507f86ddab457291316e0f5496737e5ca67c4037234c32c3be04c48ae96186893a7b9181900360200190a35b50505b5050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261152e9085906115e9565b600082820183811015611372576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b606061163e826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661169a9092919063ffffffff16565b80519091501561124b5780806020019051602081101561165d57600080fd5b505161124b5760405162461bcd60e51b815260040180806020018281038252602a81526020018061195c602a913960400191505060405180910390fd5b60606116a984846000856116b1565b949350505050565b6060824710156116f25760405162461bcd60e51b81526004018080602001828103825260268152602001806119b56026913960400191505060405180910390fd5b6116fb8561180d565b61174c576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061178b5780518252601f19909201916020918201910161176c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146117ed576040519150601f19603f3d011682016040523d82523d6000602084013e6117f2565b606091505b5091509150611802828286611813565b979650505050505050565b3b151590565b60608315611822575081611372565b8251156118325782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561187c578181015183820152602001611864565b50505050905090810190601f1680156118a95780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe736574526566657272616c436f6d6d697373696f6e526174653a20696e76616c696420726566657272616c20636f6d6d697373696f6e207261746520626173697320706f696e7473434f554741523a3a75706461746554696d6550657250657263656e743a2075706461746554696d6550657250657263656e74206d757374206e6f742065786365656420746865204d696e7374617274696e6754696d655374616d702e5361666542455032303a204245503230206f7065726174696f6e20646964206e6f742073756363656564546865726520617265206e6f7420656e6f75676820434f5547415220746f6b656e7320746f207472616e736665722e416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c557365722063616e6e6f7420636c61696d20434f5547415220746f6b656e73207768656e2050657263656e74206973203025434f554741523a3a75706461746554696d6550657250657263656e743a2075706461746554696d6550657250657263656e74206d757374206e6f742065786365656420746865206d617854696d6550657250657263656e742e434f554741523a3a75706461746554696d6550657250657263656e743a2075706461746554696d6550657250657263656e74206d757374206e6f742065786365656420746865204d61787374617274696e6754696d655374616d702e557365722073686f756c64206861766520756e636c61696d656420434f5547415220746f6b656e73536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77596f757220616d6f756e74206578636565647320746865206d617820627579206e756d626572596f75277265206e6f7420746865206f776e6572000000000000000000000000434f554741523a3a7570646174654d6178427579506572557365723a206d617842757950657255736572206d757374206e6f74206578636565642074686520686172646361702ea2646970667358221220a8966b99d22be25645cf4135137ce0b108a4acc3ebc6f272a5ac4a3694794b3764736f6c634300060c0033000000000000000000000000eb50c308177df06685112b3f56e66761578ea9bd00000000000000000000000000000000000000000000000000000000636d03e00000000000000000000000002dfc76901bb2ac2a5fa5fc479590a490bbb10a5f
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000eb50c308177df06685112b3f56e66761578ea9bd00000000000000000000000000000000000000000000000000000000636d03e00000000000000000000000002dfc76901bb2ac2a5fa5fc479590a490bbb10a5f
-----Decoded View---------------
Arg [0] : _COUGAR (address): 0xeb50c308177df06685112b3f56e66761578ea9bd
Arg [1] : _startingTimestamp (uint256): 1668088800
Arg [2] : _BuyTokenAddress (address): 0x2dfc76901bb2ac2a5fa5fc479590a490bbb10a5f
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000eb50c308177df06685112b3f56e66761578ea9bd
Arg [1] : 00000000000000000000000000000000000000000000000000000000636d03e0
Arg [2] : 0000000000000000000000002dfc76901bb2ac2a5fa5fc479590a490bbb10a5f
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.