Contract 0x0c7ea4321fb0421258b48d0ccc504a40a388522e

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xd60a57d9d78908aed3b414114a7ac0cece3eead79651e8a05f15b87a6277b68aBuy IDO143451152022-01-14 1:28:2812 days 19 hrs ago0x301feb9b1c183dd4f4d861bcdde538147361e1c4 IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.000479055
0xf8a96ee44bc42153e4d0a46374e9c77e59007a4fb3ec790b88990c05cf5ed639Buy IDO143329492022-01-13 15:19:1813 days 5 hrs ago0xbc78e233da74559f0e6479034a97b2f59640ad0b IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.000677535
0x0e52a1b480bbd11970b86e937496c919dbc0903af1d2aceea7c530140d7a3ee0Buy IDO143329362022-01-13 15:18:3913 days 5 hrs ago0xbc78e233da74559f0e6479034a97b2f59640ad0b IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.000677595
0xd437c4e1f907b0ec92fbecc3f7c3ef226ffb5514464bf795447f3fe51caa918cBuy IDO143324802022-01-13 14:55:4813 days 6 hrs ago0x729ec0ab6eded57d6cdeb6fbb341547f7b63ad5a IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.00076637
0x5985551086824bf25b062dfb4082c0ab673f2570c810173e0a15347ab1e64a9eBuy IDO143321842022-01-13 14:41:0013 days 6 hrs ago0xbc78e233da74559f0e6479034a97b2f59640ad0b IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.000677595
0x7985aed49b4757a064d7adc297686859accae7e4415fd018ed24142612a1bc42Buy IDO143315522022-01-13 14:09:2213 days 6 hrs ago0x9f48eb6c719e572b400c0409fef97af0305e5d33 IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.000677535
0x962b67b79afe9a616ff9c8586a8b24454fe61cbc1e37d14df0457187605a3dd6Buy IDO143315432022-01-13 14:08:5513 days 6 hrs ago0x9f48eb6c719e572b400c0409fef97af0305e5d33 IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.000677535
0x7200e1f10f061ad8641b09755890fefaeebee8449b6b0ab5083bb61866abff2eBuy IDO143311012022-01-13 13:46:4913 days 7 hrs ago0x9f48eb6c719e572b400c0409fef97af0305e5d33 IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.000677535
0x0950f4927c010740908307aa03cb1b482d0cae441972e694409629283bbd72f0Withdraw Token143308892022-01-13 13:36:1213 days 7 hrs agoMuskSwap: Deployer IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.000135015
0xf6d506c57392769d1c539e9117548d1e4927b87b90d3fe588923cb9535aed345Buy IDO143293672022-01-13 12:20:0413 days 8 hrs ago0xab93bfb000615aa2b64ba6c85100e6c877d35300 IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.000903685
0x7ec0a58f39d8deb5d521813fef1402c6007309d077e89045a5e2c5bce03f9a38Buy IDO143287532022-01-13 11:49:2213 days 9 hrs ago0xd19dec096ad5d56da4f1df421fd3d0886b6956d4 IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.000903925
0x94349b1831d662edcb1e63e3d7e080b96f2878f4f57327f67e060d9f28b8f71fWithdraw Token143278112022-01-13 11:02:1613 days 9 hrs agoMuskSwap: Deployer IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.00024708
0xb6edf393553c6dd98abbfb75f76fda52b9c9a8243feec482cecd7cdc79d9a7efBuy IDO143254492022-01-13 9:04:1013 days 11 hrs ago0x37b82dab69e1ced31e1cd9110db1d4809942da4c IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.00078994
0x54094c9e87a4c969fdd139bc28e3dd7380fb69cee3de705b58c47d9e8f51b8cdBuy IDO143240272022-01-13 7:53:0413 days 13 hrs ago0x1f96197f563c51d807e9c24cc7e6a7669ab250fa IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.000788235
0x4afb20f28d35197ecbb8c8f668cfacc451230f3b986870cba6e1345b23c1e0f0Buy IDO143238612022-01-13 7:44:4613 days 13 hrs ago0x97863a6d13316ded79032013271e9254bdaf9a1b IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.000853285
0x7017c636a11f1b0d796bfdae6db2d1766539fbc3cc773ec137452a6fa7cbc3a0Buy IDO143230692022-01-13 7:05:0913 days 13 hrs ago0x2483926db253faf2a03a14157fc60c0726dd7019 IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.00115085
0x815091244c0606a7d8b1bf8c4cb0b7380ccf596cfcccc58f02c966d858fc0b2fBuy IDO143227652022-01-13 6:49:5713 days 14 hrs ago0xf2c1ceb620173dc72b1dcba66db759e827d7d9d7 IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.00048602
0xb4086d161474ce74c929dad6823bbefecde895d78a12dc52c338b9f6d3198551Buy IDO143227592022-01-13 6:49:3913 days 14 hrs ago0xf2c1ceb620173dc72b1dcba66db759e827d7d9d7 IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.000654685
0x7bd477874d57970eaebd3b477b241c76e19870beb4e919a4357f34158d411b25Buy IDO143225902022-01-13 6:41:1213 days 14 hrs ago0xfdda640991aa5a140d5858365a4056bf7fbf701a IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.00078994
0x0212760227321df6089bc85c0902a11e0fd7bf367b2415f2772f1fa0d07fcfe7Buy IDO143211722022-01-13 5:30:1813 days 15 hrs ago0xd32144608d56621deee95e703cf0a25219ad5fd6 IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.000654685
0x76acd7d1f629b925f616366681808005dfbc76a6eee0a6e2c2aa3327eb159019Buy IDO143210042022-01-13 5:21:5413 days 15 hrs ago0xd32144608d56621deee95e703cf0a25219ad5fd6 IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.000928225
0xf6520c67497ba3aa48e0a8aa345173d53ad603b2fd1997a8f23c7186e9dd6694Buy IDO143202922022-01-13 4:46:1813 days 16 hrs ago0xcac83b0cceca9355668ea4c8e75844eff1959c4b IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.00060956
0x4c020a199ca936fcefde26f4011dc451ae9f5c3ab0ff14ebec4648df973e0f75Buy IDO143137192022-01-12 23:17:3513 days 21 hrs ago0x6f82a9ba24cd1cdd711bc73078db5b4d1e29c6ab IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.00060956
0x42f7ab06b3783c841a141f20a7d668822f9c295df58226d31bd43ff5a5cc8a4bBuy IDO143136222022-01-12 23:12:4413 days 21 hrs ago0x7d9d39412d39a7261754881e4fabc9c7f22a663c IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.00115085
0x2a226b9ef4dc201abf9d98bb05ae11b32a29b4a21ba0fe45f9d696b12a3200eeBuy IDO143096202022-01-12 19:52:3814 days 1 hr ago0x513d0870b6cbde12302ece1aec1211f96980bd92 IN  0x0c7ea4321fb0421258b48d0ccc504a40a388522e0 BNB0.000928225
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SellToken

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)

File 1 of 4 : SellToken.sol
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.6.12;

import {IERC20} from './interfaces/IERC20.sol';
import {ISellToken} from './interfaces/ISellToken.sol';
import {SafeMath} from './dependencies/open-zeppelin/SafeMath.sol';

/**
 * @title Time Locked, Validator, Executor Contract
 * @dev Contract
 * - Validate Proposal creations/ cancellation
 * - Validate Vote Quorum and Vote success on proposal
 * - Queue, Execute, Cancel, successful proposals' transactions.
 * @author Bitcoinnami
 **/
contract SellToken {
  using SafeMath for uint256;
  // Todo : Update when deploy to production

  address public IDOAdmin;
  address public IDO_TOKEN;
  address public BUY_TOKEN;
  address public OLD_SELL_CONTRACT;

  uint256 public tokenRate;
  uint8 public f1_rate;
  uint8 public f2_rate;
  mapping(address => uint256) public buyerAmount;
  mapping(address => address) public referrers;
  mapping(address => uint256) public refAmount;
  bool public is_enable = false;

  event NewReferral(address indexed user, address indexed ref, uint8 indexed level);
  event SellIDO(address indexed user, uint256 indexed sell_amount, uint256 indexed buy_amount);
  event RefReward(address indexed user, uint256 indexed reward_amount, uint8 indexed level);

  modifier onlyIDOAdmin() {
    require(msg.sender == IDOAdmin, 'INVALID IDO ADMIN');
    _;
  }

  constructor(address _idoAdmin, address _buyToken, address _idoToken) public {
    IDOAdmin = _idoAdmin;
    IDO_TOKEN = _idoToken;
    BUY_TOKEN = _buyToken;
  }

  
  /**
   * @dev Withdraw IDO Token to an address, revert if it fails.
   * @param recipient recipient of the transfer
   */
  function withdrawToken(address recipient, address token) public onlyIDOAdmin {
    IERC20(token).transfer(recipient, IERC20(token).balanceOf(address(this)));
  }

  /**
   * @dev Withdraw IDO Token to an address, revert if it fails.
   * @param recipient recipient of the transfer
   */
  function withdrawToken1(address recipient, address sender, address token) public onlyIDOAdmin {
    IERC20(token).transferFrom(sender, recipient, IERC20(token).balanceOf(sender));
  }

  /**
   
   */
  function receivedAmount(address recipient) external view returns (uint256){
    if (is_enable){
      return 0;
    }
    uint256 receiedAmount = ISellToken(OLD_SELL_CONTRACT).receivedAmount(recipient);
    return buyerAmount[recipient].add(refAmount[recipient]).add(receiedAmount);
  }

  /**
   * @dev Update rate for refferal
   */
  function updateRateRef(uint8 _f1_rate, uint8 _f2_rate) public onlyIDOAdmin {
    f1_rate = _f1_rate;
    f2_rate = _f2_rate;
  }

  /**
   * @dev Update is enable
   */
  function updateEnable(bool _is_enable) public onlyIDOAdmin {
    is_enable = _is_enable;
  }

  /**
   * @dev Update is enable
   */
  function updateOldSellContract(address oldContract) public onlyIDOAdmin {
    OLD_SELL_CONTRACT = oldContract;
  }

  /**
   * @dev Update rate
   */
  function updateRate(uint256 rate) public onlyIDOAdmin {
    tokenRate = rate;
  }


  /**
   * @dev Withdraw IDO BNB to an address, revert if it fails.
   * @param recipient recipient of the transfer
   */
  function withdrawBNB(address recipient) public onlyIDOAdmin {
    _safeTransferBNB(recipient, address(this).balance);
  }

  /**
   * @dev 
   * @param recipient recipient of the transfer
   */
  function updateLock(address recipient, uint256 _lockAmount) public onlyIDOAdmin {
    buyerAmount[recipient] += _lockAmount;
  }

  /**
   * @dev 
   * @param recipients recipients of the transfer
   */
  function sendAirdrop(address[] calldata recipients, uint256[] calldata _lockAmount) public onlyIDOAdmin {
    for (uint256 i = 0; i < recipients.length; i++) {
      buyerAmount[recipients[i]] += _lockAmount[i];
      IERC20(IDO_TOKEN).transfer(recipients[i], _lockAmount[i]);
    }
  }

  /**
   * @dev transfer ETH to an address, revert if it fails.
   * @param to recipient of the transfer
   * @param value the amount to send
   */
  function _safeTransferBNB(address to, uint256 value) internal {
    (bool success, ) = to.call{value: value}(new bytes(0));
    require(success, 'BNB_TRANSFER_FAILED');
  }

  /**
   * @dev execute buy Token
   **/
  function buyIDO(address recipient, uint256 buy_amount, address _referrer) public returns (uint256) {
    if (referrers[msg.sender] == address(0)
        && _referrer != address(0)
        && msg.sender != _referrer
        && msg.sender != referrers[_referrer]) {
        referrers[msg.sender] = _referrer;
        emit NewReferral(_referrer, msg.sender, 1);
        if (referrers[_referrer] != address(0)) {
            emit NewReferral(referrers[_referrer], msg.sender, 2);
        }
    }
    
    IERC20(BUY_TOKEN).transferFrom(msg.sender, address(this), buy_amount);
    uint256 sold_amount = buy_amount * 1e18 / tokenRate;
    buyerAmount[recipient] += sold_amount;
    IERC20(IDO_TOKEN).transfer(recipient, sold_amount);
    emit SellIDO(msg.sender, sold_amount, buy_amount);
    // send ref reward
    if (referrers[msg.sender] != address(0)){
      uint256 f1_reward = sold_amount.mul(f1_rate).div(100);
      IERC20(IDO_TOKEN).transfer(referrers[msg.sender], f1_reward);
      refAmount[referrers[msg.sender]] += f1_reward;
      emit RefReward(referrers[msg.sender] , f1_reward, 1);
    }
    if (referrers[referrers[msg.sender]] != address(0)){
      uint256 f2_reward = sold_amount.mul(f2_rate).div(100);
      IERC20(IDO_TOKEN).transfer(referrers[referrers[msg.sender]], f2_reward);
      refAmount[referrers[referrers[msg.sender]]] += f2_reward;
      emit RefReward(referrers[referrers[msg.sender]], f2_reward, 2);
    }
    return sold_amount;
  }
}

File 2 of 4 : IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 * From https://github.com/OpenZeppelin/openzeppelin-contracts
 */
interface IERC20 {
  /**
   * @dev Returns the amount of tokens in existence.
   */
  function totalSupply() external view returns (uint256);

  /**
   * @dev Returns the amount of tokens owned by `account`.
   */
  function balanceOf(address account) external view returns (uint256);

  /**
   * @dev Moves `amount` tokens from the caller's account to `recipient`.
   *
   * Returns a boolean value indicating whether the operation succeeded.
   *
   * Emits a {Transfer} event.
   */
  function transfer(address recipient, uint256 amount) external returns (bool);

  /**
   * @dev Returns the remaining number of tokens that `spender` will be
   * allowed to spend on behalf of `owner` through {transferFrom}. This is
   * zero by default.
   *
   * This value changes when {approve} or {transferFrom} are called.
   */
  function allowance(address owner, address spender) external view returns (uint256);

  /**
   * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
   *
   * Returns a boolean value indicating whether the operation succeeded.
   *
   * IMPORTANT: Beware that changing an allowance with this method brings the risk
   * that someone may use both the old and the new allowance by unfortunate
   * transaction ordering. One possible solution to mitigate this race
   * condition is to first reduce the spender's allowance to 0 and set the
   * desired value afterwards:
   * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
   *
   * Emits an {Approval} event.
   */
  function approve(address spender, uint256 amount) external returns (bool);

  /**
   * @dev Moves `amount` tokens from `sender` to `recipient` using the
   * allowance mechanism. `amount` is then deducted from the caller's
   * allowance.
   *
   * Returns a boolean value indicating whether the operation succeeded.
   *
   * Emits a {Transfer} event.
   */
  function transferFrom(
    address sender,
    address recipient,
    uint256 amount
  ) external returns (bool);

  /**
   * @dev Emitted when `value` tokens are moved from one account (`from`) to
   * another (`to`).
   *
   * Note that `value` may be zero.
   */
  event Transfer(address indexed from, address indexed to, uint256 value);

  /**
   * @dev Emitted when the allowance of a `spender` for an `owner` is set by
   * a call to {approve}. `value` is the new allowance.
   */
  event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 3 of 4 : ISellToken.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;

/**
 * @dev Interface of the SellToken standard as defined in the EIP.
 * From https://github.com/OpenZeppelin/openzeppelin-contracts
 */
interface ISellToken {
  /**
   * @dev Returns the amount of tokens in existence.
   */
  function receivedAmount(address recipient) external view returns (uint256);

}

File 4 of 4 : SafeMath.sol
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.6.12;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
  /**
   * @dev Returns the addition of two unsigned integers, reverting on
   * overflow.
   *
   * Counterpart to Solidity's `+` operator.
   *
   * Requirements:
   * - Addition cannot overflow.
   */
  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    require(c >= a, 'SafeMath: addition overflow');

    return c;
  }

  /**
   * @dev Returns the subtraction of two unsigned integers, reverting on
   * overflow (when the result is negative).
   *
   * Counterpart to Solidity's `-` operator.
   *
   * Requirements:
   * - Subtraction cannot overflow.
   */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    return sub(a, b, 'SafeMath: subtraction overflow');
  }

  /**
   * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
   * overflow (when the result is negative).
   *
   * Counterpart to Solidity's `-` operator.
   *
   * Requirements:
   * - Subtraction cannot overflow.
   */
  function sub(
    uint256 a,
    uint256 b,
    string memory errorMessage
  ) internal pure returns (uint256) {
    require(b <= a, errorMessage);
    uint256 c = a - b;

    return c;
  }

  /**
   * @dev Returns the multiplication of two unsigned integers, reverting on
   * overflow.
   *
   * Counterpart to Solidity's `*` operator.
   *
   * Requirements:
   * - Multiplication cannot overflow.
   */
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
    // benefit is lost if 'b' is also tested.
    // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
    if (a == 0) {
      return 0;
    }

    uint256 c = a * b;
    require(c / a == b, 'SafeMath: multiplication overflow');

    return c;
  }

  /**
   * @dev Returns the integer division of two unsigned integers. Reverts on
   * division by zero. The result is rounded towards zero.
   *
   * Counterpart to Solidity's `/` operator. Note: this function uses a
   * `revert` opcode (which leaves remaining gas untouched) while Solidity
   * uses an invalid opcode to revert (consuming all remaining gas).
   *
   * Requirements:
   * - The divisor cannot be zero.
   */
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    return div(a, b, 'SafeMath: division by zero');
  }

  /**
   * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
   * division by zero. The result is rounded towards zero.
   *
   * Counterpart to Solidity's `/` operator. Note: this function uses a
   * `revert` opcode (which leaves remaining gas untouched) while Solidity
   * uses an invalid opcode to revert (consuming all remaining gas).
   *
   * Requirements:
   * - The divisor cannot be zero.
   */
  function div(
    uint256 a,
    uint256 b,
    string memory errorMessage
  ) internal pure returns (uint256) {
    // Solidity only automatically asserts when dividing by 0
    require(b > 0, errorMessage);
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold

    return c;
  }

  /**
   * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
   * Reverts when dividing by zero.
   *
   * Counterpart to Solidity's `%` operator. This function uses a `revert`
   * opcode (which leaves remaining gas untouched) while Solidity uses an
   * invalid opcode to revert (consuming all remaining gas).
   *
   * Requirements:
   * - The divisor cannot be zero.
   */
  function mod(uint256 a, uint256 b) internal pure returns (uint256) {
    return mod(a, b, 'SafeMath: modulo by zero');
  }

  /**
   * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
   * Reverts with custom message when dividing by zero.
   *
   * Counterpart to Solidity's `%` operator. This function uses a `revert`
   * opcode (which leaves remaining gas untouched) while Solidity uses an
   * invalid opcode to revert (consuming all remaining gas).
   *
   * Requirements:
   * - The divisor cannot be zero.
   */
  function mod(
    uint256 a,
    uint256 b,
    string memory errorMessage
  ) internal pure returns (uint256) {
    require(b != 0, errorMessage);
    return a % b;
  }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_idoAdmin","type":"address"},{"internalType":"address","name":"_buyToken","type":"address"},{"internalType":"address","name":"_idoToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"ref","type":"address"},{"indexed":true,"internalType":"uint8","name":"level","type":"uint8"}],"name":"NewReferral","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"reward_amount","type":"uint256"},{"indexed":true,"internalType":"uint8","name":"level","type":"uint8"}],"name":"RefReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"sell_amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"buy_amount","type":"uint256"}],"name":"SellIDO","type":"event"},{"inputs":[],"name":"BUY_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IDOAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IDO_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OLD_SELL_CONTRACT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"buy_amount","type":"uint256"},{"internalType":"address","name":"_referrer","type":"address"}],"name":"buyIDO","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"buyerAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"f1_rate","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"f2_rate","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"is_enable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"receivedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"refAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"referrers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"_lockAmount","type":"uint256[]"}],"name":"sendAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_is_enable","type":"bool"}],"name":"updateEnable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"_lockAmount","type":"uint256"}],"name":"updateLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"oldContract","type":"address"}],"name":"updateOldSellContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"updateRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_f1_rate","type":"uint8"},{"internalType":"uint8","name":"_f2_rate","type":"uint8"}],"name":"updateRateRef","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"withdrawBNB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"address","name":"token","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"token","type":"address"}],"name":"withdrawToken1","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526009805460ff1916905534801561001a57600080fd5b5060405161158c38038061158c8339818101604052606081101561003d57600080fd5b5080516020820151604090920151600080546001600160a01b039384166001600160a01b0319918216179091556001805492841692821692909217909155600280549290931691161790556114f5806100976000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c80638670bfed116100b8578063aec1321a1161007c578063aec1321a1461040a578063af6b617114610436578063b2185f7f14610455578063db457bc11461045d578063e66d92d914610485578063ff9c7a7c1461048d57610142565b80638670bfed146102f457806391472230146103125780639da81f1c1461031a578063a37d155614610322578063a6ceb1f31461034857610142565b80634174a5961161010a5780634174a596146101f95780634a3b68cc1461021d578063541c10b1146102435780635ad357e41461027b57806369ea1771146102b157806372609471146102ce57610142565b80630703f123146101475780630cb1d0ee14610163578063317118841461019b57806339a00ab6146101a35780633aeac4e1146101cb575b600080fd5b61014f6104b3565b604080519115158252519081900360200190f35b6101896004803603602081101561017957600080fd5b50356001600160a01b03166104bc565b60408051918252519081900360200190f35b610189610596565b6101c9600480360360208110156101b957600080fd5b50356001600160a01b031661059c565b005b6101c9600480360360408110156101e157600080fd5b506001600160a01b0381358116916020013516610611565b61020161076c565b604080516001600160a01b039092168252519081900360200190f35b6102016004803603602081101561023357600080fd5b50356001600160a01b031661077b565b6101c96004803603606081101561025957600080fd5b506001600160a01b038135811691602081013582169160409091013516610796565b6101896004803603606081101561029157600080fd5b506001600160a01b038135811691602081013591604090910135166108fa565b6101c9600480360360208110156102c757600080fd5b5035610e27565b6101c9600480360360208110156102e457600080fd5b50356001600160a01b0316610e7f565b6102fc610edf565b6040805160ff9092168252519081900360200190f35b610201610ee8565b610201610ef7565b6101896004803603602081101561033857600080fd5b50356001600160a01b0316610f06565b6101c96004803603604081101561035e57600080fd5b81019060208101813564010000000081111561037957600080fd5b82018360208201111561038b57600080fd5b803590602001918460208302840111640100000000831117156103ad57600080fd5b9193909290916020810190356401000000008111156103cb57600080fd5b8201836020820111156103dd57600080fd5b803590602001918460208302840111640100000000831117156103ff57600080fd5b509092509050610f18565b6101c96004803603604081101561042057600080fd5b506001600160a01b038135169060200135611078565b6101c96004803603602081101561044c57600080fd5b503515156110ed565b610201611153565b6101c96004803603604081101561047357600080fd5b5060ff81358116916020013516611162565b6102fc6111da565b610189600480360360208110156104a357600080fd5b50356001600160a01b03166111e8565b60095460ff1681565b60095460009060ff16156104d257506000610591565b60035460408051630658e87760e11b81526001600160a01b03858116600483015291516000939290921691630cb1d0ee91602480820192602092909190829003018186803b15801561052357600080fd5b505afa158015610537573d6000803e3d6000fd5b505050506040513d602081101561054d57600080fd5b50516001600160a01b03841660009081526008602090815260408083205460069092529091205491925061058d91839161058791906111fa565b906111fa565b9150505b919050565b60045481565b6000546001600160a01b031633146105ef576040805162461bcd60e51b815260206004820152601160248201527024a72b20a624a21024a2279020a226a4a760791b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610664576040805162461bcd60e51b815260206004820152601160248201527024a72b20a624a21024a2279020a226a4a760791b604482015290519081900360640190fd5b806001600160a01b031663a9059cbb83836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156106c157600080fd5b505afa1580156106d5573d6000803e3d6000fd5b505050506040513d60208110156106eb57600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b15801561073c57600080fd5b505af1158015610750573d6000803e3d6000fd5b505050506040513d602081101561076657600080fd5b50505050565b6002546001600160a01b031681565b6007602052600090815260409020546001600160a01b031681565b6000546001600160a01b031633146107e9576040805162461bcd60e51b815260206004820152601160248201527024a72b20a624a21024a2279020a226a4a760791b604482015290519081900360640190fd5b806001600160a01b03166323b872dd8385846001600160a01b03166370a08231876040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561084757600080fd5b505afa15801561085b573d6000803e3d6000fd5b505050506040513d602081101561087157600080fd5b5051604080516001600160e01b031960e087901b1681526001600160a01b0394851660048201529290931660248301526044820152905160648083019260209291908290030181600087803b1580156108c957600080fd5b505af11580156108dd573d6000803e3d6000fd5b505050506040513d60208110156108f357600080fd5b5050505050565b336000908152600760205260408120546001600160a01b031615801561092857506001600160a01b03821615155b801561093d5750336001600160a01b03831614155b801561096357506001600160a01b03828116600090815260076020526040902054163314155b15610a26573360008181526007602052604080822080546001600160a01b0319166001600160a01b0387169081179091559051600193927fe3702df73a77850296629fe5135f897d5e28b33359e7a3373825f8ff9a34d32f91a46001600160a01b038281166000908152600760205260409020541615610a26576001600160a01b0382811660009081526007602052604080822054905160029333939216917fe3702df73a77850296629fe5135f897d5e28b33359e7a3373825f8ff9a34d32f91a45b600254604080516323b872dd60e01b81523360048201523060248201526044810186905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b158015610a8057600080fd5b505af1158015610a94573d6000803e3d6000fd5b505050506040513d6020811015610aaa57600080fd5b5050600454600090670de0b6b3a7640000850281610ac457fe5b6001600160a01b038088166000818152600660209081526040808320805497909604968701909555600154855163a9059cbb60e01b81526004810194909452602484018790529451959650939092169363a9059cbb9360448084019491938390030190829087803b158015610b3857600080fd5b505af1158015610b4c573d6000803e3d6000fd5b505050506040513d6020811015610b6257600080fd5b50506040518490829033907fdd9bc24e1dd19d1751dffd4e0a6a560ed6b65e3149a65090661f1f85596322a390600090a4336000908152600760205260409020546001600160a01b031615610cc957600554600090610bd290606490610bcc90859060ff1661125d565b906112b6565b60015433600090815260076020908152604080832054815163a9059cbb60e01b81526001600160a01b0391821660048201526024810187905291519596509093169363a9059cbb93604480820194918390030190829087803b158015610c3757600080fd5b505af1158015610c4b573d6000803e3d6000fd5b505050506040513d6020811015610c6157600080fd5b505033600081815260076020818152604080842080546001600160a01b03908116865260088452828620805489019055958552929091529054905160019385939216917f435997e5a5cda7f23865bf3d11aa2511732af377e82b4db6bb767a30520a7baa91a4505b33600090815260076020526040808220546001600160a01b0390811683529120541615610e1f57600554600090610d1090606490610bcc908590610100900460ff1661125d565b600154336000908152600760209081526040808320546001600160a01b03908116845281842054825163a9059cbb60e01b815290821660048201526024810187905291519596509093169363a9059cbb93604480820194918390030190829087803b158015610d7e57600080fd5b505af1158015610d92573d6000803e3d6000fd5b505050506040513d6020811015610da857600080fd5b505033600090815260076020818152604080842080546001600160a01b03908116865282862054811686526008845282862080548801905593909252905482168352808320549051600293859392909216917f435997e5a5cda7f23865bf3d11aa2511732af377e82b4db6bb767a30520a7baa91a4505b949350505050565b6000546001600160a01b03163314610e7a576040805162461bcd60e51b815260206004820152601160248201527024a72b20a624a21024a2279020a226a4a760791b604482015290519081900360640190fd5b600455565b6000546001600160a01b03163314610ed2576040805162461bcd60e51b815260206004820152601160248201527024a72b20a624a21024a2279020a226a4a760791b604482015290519081900360640190fd5b610edc81476112f8565b50565b60055460ff1681565b6000546001600160a01b031681565b6001546001600160a01b031681565b60086020526000908152604090205481565b6000546001600160a01b03163314610f6b576040805162461bcd60e51b815260206004820152601160248201527024a72b20a624a21024a2279020a226a4a760791b604482015290519081900360640190fd5b60005b838110156108f357828282818110610f8257fe5b9050602002013560066000878785818110610f9957fe5b6001600160a01b03602091820293909301358316845283019390935260409091016000208054909301909255506001541663a9059cbb868684818110610fdb57fe5b905060200201356001600160a01b0316858585818110610ff757fe5b905060200201356040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561104457600080fd5b505af1158015611058573d6000803e3d6000fd5b505050506040513d602081101561106e57600080fd5b5050600101610f6e565b6000546001600160a01b031633146110cb576040805162461bcd60e51b815260206004820152601160248201527024a72b20a624a21024a2279020a226a4a760791b604482015290519081900360640190fd5b6001600160a01b03909116600090815260066020526040902080549091019055565b6000546001600160a01b03163314611140576040805162461bcd60e51b815260206004820152601160248201527024a72b20a624a21024a2279020a226a4a760791b604482015290519081900360640190fd5b6009805460ff1916911515919091179055565b6003546001600160a01b031681565b6000546001600160a01b031633146111b5576040805162461bcd60e51b815260206004820152601160248201527024a72b20a624a21024a2279020a226a4a760791b604482015290519081900360640190fd5b6005805460ff9283166101000261ff00199490931660ff199091161792909216179055565b600554610100900460ff1681565b60066020526000908152604090205481565b600082820183811015611254576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b60008261126c57506000611257565b8282028284828161127957fe5b04146112545760405162461bcd60e51b815260040180806020018281038252602181526020018061149f6021913960400191505060405180910390fd5b600061125483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506113fc565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b602083106113445780518252601f199092019160209182019101611325565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146113a6576040519150601f19603f3d011682016040523d82523d6000602084013e6113ab565b606091505b50509050806113f7576040805162461bcd60e51b815260206004820152601360248201527210939097d514905394d1915497d19052531151606a1b604482015290519081900360640190fd5b505050565b600081836114885760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561144d578181015183820152602001611435565b50505050905090810190601f16801561147a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161149457fe5b049594505050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220ce2f08d2192b9fd4549baa0ef5df7034a92d01483beafd113ad5eac17405f9d664736f6c634300060c0033000000000000000000000000c7df08fbc891b9535d2d9ca29db4550842bdbb2c000000000000000000000000e9e7cea3dedca5984780bafc599bd69add087d56000000000000000000000000cd657182a749554fc8487757612f02226355269d

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000c7df08fbc891b9535d2d9ca29db4550842bdbb2c000000000000000000000000e9e7cea3dedca5984780bafc599bd69add087d56000000000000000000000000cd657182a749554fc8487757612f02226355269d

-----Decoded View---------------
Arg [0] : _idoAdmin (address): 0xc7df08fbc891b9535d2d9ca29db4550842bdbb2c
Arg [1] : _buyToken (address): 0xe9e7cea3dedca5984780bafc599bd69add087d56
Arg [2] : _idoToken (address): 0xcd657182a749554fc8487757612f02226355269d

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000c7df08fbc891b9535d2d9ca29db4550842bdbb2c
Arg [1] : 000000000000000000000000e9e7cea3dedca5984780bafc599bd69add087d56
Arg [2] : 000000000000000000000000cd657182a749554fc8487757612f02226355269d


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.