Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0xd32Ed17bC769c7A252A64bd915d6dB8F70Ca5113
Balance 0.105105 ETH
Nonce 1
Code Size 8110 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

8110 bytes
0x6080604052600436106101bb5760003560e01c806368092bd9116100ec578063a457c2d71161008a578063c4081a4c11610064578063c4081a4c14610641578063dd62ed3e1461066b578063ec28438a146106a6578063f2fde38b146106d0576101c2565b8063a457c2d7146105a3578063a9059cbb146105dc578063b7bfff6514610615576101c2565b8063715018a6116100c6578063715018a6146105385780638da5cb5b1461054d5780638f70ccf71461056257806395d89b411461058e576101c2565b806368092bd9146104b55780636bc87c3a146104f057806370a0823114610505576101c2565b8063357bf15c116101595780634549b039116101335780634549b039146103ec57806349bd5a5e1461041e578063595dec3c1461044f5780635d098b3814610482576101c2565b8063357bf15c14610372578063395093511461039e5780633b124fe7146103d7576101c2565b806322976e0d1161019557806322976e0d146102c557806323b872dd146102da5780632d8381191461031d578063313ce56714610347576101c2565b806306fdde03146101c7578063095ea7b31461025157806318160ddd1461029e576101c2565b366101c257005b600080fd5b3480156101d357600080fd5b506101dc610703565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102165781810151838201526020016101fe565b50505050905090810190601f1680156102435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561025d57600080fd5b5061028a6004803603604081101561027457600080fd5b506001600160a01b038135169060200135610799565b604080519115158252519081900360200190f35b3480156102aa57600080fd5b506102b36107b7565b60408051918252519081900360200190f35b3480156102d157600080fd5b506102b36107bd565b3480156102e657600080fd5b5061028a600480360360608110156102fd57600080fd5b506001600160a01b038135811691602081013590911690604001356107c3565b34801561032957600080fd5b506102b36004803603602081101561034057600080fd5b503561084a565b34801561035357600080fd5b5061035c6108ac565b6040805160ff9092168252519081900360200190f35b34801561037e57600080fd5b5061039c6004803603602081101561039557600080fd5b50356108b5565b005b3480156103aa57600080fd5b5061028a600480360360408110156103c157600080fd5b506001600160a01b038135169060200135610912565b3480156103e357600080fd5b506102b3610960565b3480156103f857600080fd5b506102b36004803603604081101561040f57600080fd5b50803590602001351515610966565b34801561042a57600080fd5b50610433610a1f565b604080516001600160a01b039092168252519081900360200190f35b34801561045b57600080fd5b5061028a6004803603602081101561047257600080fd5b50356001600160a01b0316610a2e565b34801561048e57600080fd5b5061039c600480360360208110156104a557600080fd5b50356001600160a01b0316610a43565b3480156104c157600080fd5b5061039c600480360360408110156104d857600080fd5b506001600160a01b0381351690602001351515610abd565b3480156104fc57600080fd5b506102b3610b40565b34801561051157600080fd5b506102b36004803603602081101561052857600080fd5b50356001600160a01b0316610b46565b34801561054457600080fd5b5061039c610ba8565b34801561055957600080fd5b50610433610c4a565b34801561056e57600080fd5b5061039c6004803603602081101561058557600080fd5b50351515610c59565b34801561059a57600080fd5b506101dc610ccb565b3480156105af57600080fd5b5061028a600480360360408110156105c657600080fd5b506001600160a01b038135169060200135610d29565b3480156105e857600080fd5b5061028a600480360360408110156105ff57600080fd5b506001600160a01b038135169060200135610d91565b34801561062157600080fd5b5061039c6004803603602081101561063857600080fd5b50351515610da5565b34801561064d57600080fd5b5061039c6004803603602081101561066457600080fd5b5035610e10565b34801561067757600080fd5b506102b36004803603604081101561068e57600080fd5b506001600160a01b0381358116916020013516610e6d565b3480156106b257600080fd5b5061039c600480360360208110156106c957600080fd5b5035610e98565b3480156106dc57600080fd5b5061039c600480360360208110156106f357600080fd5b50356001600160a01b0316610ef5565b60018054604080516020601f6002600019610100878916150201909516949094049384018190048102820181019092528281526060939092909183018282801561078e5780601f106107635761010080835404028352916020019161078e565b820191906000526020600020905b81548152906001019060200180831161077157829003601f168201915b505050505090505b90565b60006107ad6107a6610fed565b8484610ff1565b5060015b92915050565b60085490565b60115481565b60006107d08484846110dd565b610840846107dc610fed565b61083b85604051806060016040528060288152602001611e7a602891396001600160a01b038a1660009081526007602052604081209061081a610fed565b6001600160a01b031681526020810191909152604001600020549190611526565b610ff1565b5060019392505050565b600060095482111561088d5760405162461bcd60e51b815260040180806020018281038252602a815260200180611de7602a913960400191505060405180910390fd5b60006108976115bd565b90506108a38382611734565b9150505b919050565b60035460ff1690565b6108bd610fed565b6000546001600160a01b0390811691161461090d576040805162461bcd60e51b81526020600482018190526024820152600080516020611ea2833981519152604482015290519081900360640190fd5b600f55565b60006107ad61091f610fed565b8461083b8560076000610930610fed565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549061177d565b600e5481565b60006008548311156109bf576040805162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c7900604482015290519081900360640190fd5b816109dd576109d66109cf6115bd565b84906117d7565b90506107b1565b6109d66109e86115bd565b610a19610a12600d54600a0a600201610a0c600e54896117d790919063ffffffff16565b90611734565b8690611830565b906117d7565b601a546001600160a01b031681565b60056020526000908152604090205460ff1681565b610a4b610fed565b6000546001600160a01b03908116911614610a9b576040805162461bcd60e51b81526020600482018190526024820152600080516020611ea2833981519152604482015290519081900360640190fd5b601280546001600160a01b0319166001600160a01b0392909216919091179055565b610ac5610fed565b6000546001600160a01b03908116911614610b15576040805162461bcd60e51b81526020600482018190526024820152600080516020611ea2833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b600f5481565b6001600160a01b0381166000908152600b602052604081205460ff1615610b8657506001600160a01b0381166000908152600660205260409020546108a7565b6001600160a01b0382166000908152600460205260409020546107b19061084a565b610bb0610fed565b6000546001600160a01b03908116911614610c00576040805162461bcd60e51b81526020600482018190526024820152600080516020611ea2833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b610c61610fed565b6000546001600160a01b03908116911614610cb1576040805162461bcd60e51b81526020600482018190526024820152600080516020611ea2833981519152604482015290519081900360640190fd5b601680549115156101000261ff0019909216919091179055565b60028054604080516020601f600019610100600187161502019094168590049384018190048102820181019092528281526060939092909183018282801561078e5780601f106107635761010080835404028352916020019161078e565b60006107ad610d36610fed565b8461083b85604051806060016040528060258152602001611f546025913960076000610d60610fed565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611526565b60006107ad610d9e610fed565b84846110dd565b610dad610fed565b6000546001600160a01b03908116911614610dfd576040805162461bcd60e51b81526020600482018190526024820152600080516020611ea2833981519152604482015290519081900360640190fd5b6016805460ff1916911515919091179055565b610e18610fed565b6000546001600160a01b03908116911614610e68576040805162461bcd60e51b81526020600482018190526024820152600080516020611ea2833981519152604482015290519081900360640190fd5b600e55565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b610ea0610fed565b6000546001600160a01b03908116911614610ef0576040805162461bcd60e51b81526020600482018190526024820152600080516020611ea2833981519152604482015290519081900360640190fd5b601755565b610efd610fed565b6000546001600160a01b03908116911614610f4d576040805162461bcd60e51b81526020600482018190526024820152600080516020611ea2833981519152604482015290519081900360640190fd5b6001600160a01b038116610f925760405162461bcd60e51b8152600401808060200182810382526026815260200180611e116026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b6001600160a01b0383166110365760405162461bcd60e51b8152600401808060200182810382526024815260200180611f306024913960400191505060405180910390fd5b6001600160a01b03821661107b5760405162461bcd60e51b8152600401808060200182810382526022815260200180611e376022913960400191505060405180910390fd5b6001600160a01b03808416600081815260076020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166111225760405162461bcd60e51b8152600401808060200182810382526025815260200180611f0b6025913960400191505060405180910390fd5b600081116111615760405162461bcd60e51b8152600401808060200182810382526029815260200180611ec26029913960400191505060405180910390fd5b6017548111156111b1576040805162461bcd60e51b81526020600482015260166024820152755472616e73666572204c696d6974204578636565647360501b604482015290519081900360640190fd5b6001600160a01b03831660009081526005602052604090205460ff1615156001141561121d576040805162461bcd60e51b81526020600482015260166024820152751059191c995cdcc81a5cc8189b1858dad31a5cdd195960521b604482015290519081900360640190fd5b60165460ff610100909104161515600114611274576040805162461bcd60e51b815260206004820152601260248201527174726164696e672069732064697361626c6560701b604482015290519081900360640190fd5b600061127f30610b46565b6018546016549192508210159062010000900460ff1615801561129f5750805b80156112b95750601a546001600160a01b03868116911614155b80156112ce57506016546301000000900460ff165b156112dc576112dc82611872565b8260006112e76115bd565b60165490915060ff1680156113225750600a6000611303610fed565b6001600160a01b0316815260208101919091526040016000205460ff16155b801561134757506001600160a01b0386166000908152600a602052604090205460ff16155b801561135c575060165462010000900460ff16155b1561136f5761136c878683611924565b91505b61139b61137c86836117d7565b6001600160a01b03891660009081526004602052604090205490611830565b6001600160a01b0388166000908152600460205260409020556113e06113c183836117d7565b6001600160a01b0388166000908152600460205260409020549061177d565b6001600160a01b03808816600090815260046020908152604080832094909455918a168152600b909152205460ff1615611451576001600160a01b0387166000908152600660205260409020546114379086611830565b6001600160a01b0388166000908152600660205260409020555b6001600160a01b0386166000908152600b602052604090205460ff16156114e3576001600160a01b038616600090815260066020526040902054611495908361177d565b6001600160a01b0380881660008181526006602090815260409182902094909455805186815290519193928b1692600080516020611eeb83398151915292918290030190a350505050611521565b856001600160a01b0316876001600160a01b0316600080516020611eeb833981519152846040518082815260200191505060405180910390a3505050505b505050565b600081848411156115b55760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561157a578181015183820152602001611562565b50505050905090810190601f1680156115a75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60095460085460009190825b600c548110156116f4578260046000600c84815481106115e557fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054118061164a57508160066000600c848154811061162357fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b156116685760085460095461165e91611734565b9350505050610796565b6116a860046000600c848154811061167c57fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020548490611830565b92506116ea60066000600c84815481106116be57fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020548390611830565b91506001016115c9565b5060085460095461170491611734565b8210156117235760085460095461171a91611734565b92505050610796565b61172d8282611734565b9250505090565b600061177683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611b1b565b9392505050565b600082820183811015611776576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826117e6575060006107b1565b828202828482816117f357fe5b04146117765760405162461bcd60e51b8152600401808060200182810382526021815260200180611e596021913960400191505060405180910390fd5b600061177683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611526565b6016805462ff000019166201000017905560175481111561189257506017545b600061189f826002611734565b905060006118ad8383611830565b9050476118b983611b80565b60006118c54783611830565b90506118d18382611d2e565b604080518581526020810183905280820185905290517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a150506016805462ff000019169055505050565b600e5460009083901561198d576000611954600d54600201600a0a610a0c600e54886117d790919063ffffffff16565b90506119608282611830565b915061197861196f82866117d7565b60095490611830565b600955601354611988908261177d565b601355505b600f5415611a785760006119b8600d54600201600a0a610a0c600f54886117d790919063ffffffff16565b90506119c48282611830565b91506119e96119d382866117d7565b306000908152600460205260409020549061177d565b30600090815260046020908152604080832093909355600b9052205460ff1615611a385730600090815260066020526040902054611a27908261177d565b306000908152600660205260409020555b601554611a45908261177d565b60155560408051828152905130916001600160a01b03891691600080516020611eeb8339815191529181900360200190a3505b60105415611b13576000611aa3600d54600201600a0a610a0c601054886117d790919063ffffffff16565b9050611aaf8282611830565b600854909250611abf9082611830565b600855611acf61196f82866117d7565b600955601454611adf908261177d565b6014556040805182815290516000916001600160a01b03891691600080516020611eeb8339815191529181900360200190a3505b949350505050565b60008183611b6a5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561157a578181015183820152602001611562565b506000838581611b7657fe5b0495945050505050565b60408051600280825260608083018452926020830190803683370190505090503081600081518110611bae57fe5b6001600160a01b03928316602091820292909201810191909152601954604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b158015611c0257600080fd5b505afa158015611c16573d6000803e3d6000fd5b505050506040513d6020811015611c2c57600080fd5b5051815182906001908110611c3d57fe5b6001600160a01b039283166020918202929092010152601954611c639130911684610ff1565b60195460405163791ac94760e01b8152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a487015287516001600160a01b039097169663791ac947968a968a9594939092909160c40190602080880191028083838b5b83811015611ce9578181015183820152602001611cd1565b505050509050019650505050505050600060405180830381600087803b158015611d1257600080fd5b505af1158015611d26573d6000803e3d6000fd5b505050505050565b601954611d469030906001600160a01b031684610ff1565b6019546040805163f305d71960e01b8152306004820181905260248201869052600060448301819052606483015260848201524260a482015290516001600160a01b039092169163f305d71991849160c480830192606092919082900301818588803b158015611db557600080fd5b505af1158015611dc9573d6000803e3d6000fd5b50505050506040513d6060811015611de057600080fd5b5050505056fe416d6f756e74206d757374206265206c657373207468616e20746f74616c207265666c656374696f6e734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725472616e7366657220616d6f756e74206d7573742062652067726561746572207468616e207a65726fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220acd7f8568fcb721876c914fa0c3055014194c46d090f97e00a30b157282b2f8a64736f6c634300060c0033

Verified Source Code Full Match

Compiler: v0.6.12+commit.27d51765 EVM: istanbul Optimization: Yes (200 runs)
SasukeInu.sol 998 lines
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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 GSN 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 virtual view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal virtual view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;


            bytes32 accountHash
         = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            codehash := extcodehash(account)
        }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(
            address(this).balance >= amount,
            "Address: insufficient balance"
        );

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{value: amount}("");
        require(
            success,
            "Address: unable to send value, recipient may have reverted"
        );
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data)
        internal
        returns (bytes memory)
    {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return
            functionCallWithValue(
                target,
                data,
                value,
                "Address: low-level call with value failed"
            );
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(
            address(this).balance >= value,
            "Address: insufficient balance for call"
        );
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(
        address target,
        bytes memory data,
        uint256 weiValue,
        string memory errorMessage
    ) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value: weiValue}(
            data
        );
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

/**
 * @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.
 */
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() internal {
        _owner = 0xc60277ee067B2dC45ad37c011bD6b7D688D7Db23;
        emit OwnershipTransferred(address(0), _owner);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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"
        );
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


interface IUniswapV2Factory {
    function createPair(address tokenA, address tokenB) external returns (address pair);
}

interface IUniswapV2Pair {
    function sync() external;
}

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);
    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
}

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
      address token,
      uint liquidity,
      uint amountTokenMin,
      uint amountETHMin,
      address to,
      uint deadline
    ) external returns (uint amountETH);
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
}

contract RewardWallet {
    constructor() public {
    }
}

contract Balancer {
    constructor() public {
    }
}

contract SasukeInu is Context, IERC20, Ownable {
    using SafeMath for uint256;
    using Address for address;

    string private _name = "Sasuke Inu";
    string private _symbol = "SINU";
    uint8 private _decimals = 18;

    mapping(address => uint256) internal _reflectionBalance;
    mapping (address => bool) public _blackList;
    mapping(address => uint256) internal _tokenBalance;
    mapping(address => mapping(address => uint256)) internal _allowances;

    uint256 private constant MAX = ~uint256(0);
    uint256 internal _tokenTotal = 100_000_000_000e18;
    uint256 internal _reflectionTotal = (MAX - (MAX % _tokenTotal));

    mapping(address => bool) isTaxless;
    mapping(address => bool) internal _isExcluded;
    address[] internal _excluded;
    
    
    uint256 private _feeDecimal = 2; // do not change this value...
    uint256 public _taxFee = 200;  // means 5% which distribute to all holders
    uint256 public _liquidityFee = 500; // means 5% add liquidity on each buy and sell
    uint256 private _burnFee = 0;  // means 0% it menas on burn 
    uint256 public _marketingFee=500; // means 2% marketing wallet
    
    address marketingWallet=0xc60277ee067B2dC45ad37c011bD6b7D688D7Db23;
    
    uint256 private _taxFeeTotal;
    uint256 private _burnFeeTotal;
    uint256 private _liquidityFeeTotal;

    bool private isFeeActive = true; // should be true
    bool private tradingEnable = true;
    bool private inSwapAndLiquify;
    bool private swapAndLiquifyEnabled = true;
    
    uint256 private maxTxAmount = _tokenTotal; // no limit
    uint256 private minTokensBeforeSwap = 1_000_000e18;
  
    IUniswapV2Router02 private  uniswapV2Router;
    address public  uniswapV2Pair;

    event SwapAndLiquifyEnabledUpdated(bool enabled);
    event SwapAndLiquify(uint256 tokensSwapped,uint256 ethReceived, uint256 tokensIntoLiqudity);

    modifier lockTheSwap {
        inSwapAndLiquify = true;
        _;
        inSwapAndLiquify = false;
    }

    constructor() public {
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); // for  uniswap v2
        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());
        uniswapV2Router = _uniswapV2Router;
      
        isTaxless[owner()] = true;
        isTaxless[address(this)] = true;

        // exlcude pair address from tax rewards
        _isExcluded[address(uniswapV2Pair)] = true;
        _excluded.push(address(uniswapV2Pair));

        _reflectionBalance[owner()] = _reflectionTotal;
        emit Transfer(address(0),owner(), _tokenTotal);
    }

    function name() public view returns (string memory) {
        return _name;
    }

    function symbol() public view returns (string memory) {
        return _symbol;
    }

    function decimals() public view returns (uint8) {
        return _decimals;
    }

    function totalSupply() public override view returns (uint256) {
        return _tokenTotal;
    }
    
  
    function balanceOf(address account) public override view returns (uint256) {
        if (_isExcluded[account]) return _tokenBalance[account];
        return tokenFromReflection(_reflectionBalance[account]);
    }

    function transfer(address recipient, uint256 amount)
        public
        override
        virtual
        returns (bool)
    {
       _transfer(_msgSender(),recipient,amount);
        return true;
    }

    function allowance(address owner, address spender)
        public
        override
        view
        returns (uint256)
    {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount)
        public
        override
        returns (bool)
    {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public override virtual returns (bool) {
        _transfer(sender,recipient,amount);
               
        _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub( amount,"ERC20: transfer amount exceeds allowance"));
        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue)
        public
        virtual
        returns (bool)
    {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].add(addedValue)
        );
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue)
        public
        virtual
        returns (bool)
    {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].sub(
                subtractedValue,
                "ERC20: decreased allowance below zero"
            )
        );
        return true;
    }

    function reflectionFromToken(uint256 tokenAmount, bool deductTransferFee)
        public
        view
        returns (uint256)
    {
        require(tokenAmount <= _tokenTotal, "Amount must be less than supply");
        if (!deductTransferFee) {
            return tokenAmount.mul(_getReflectionRate());
        } else {
            return
                tokenAmount.sub(tokenAmount.mul(_taxFee).div(10** _feeDecimal + 2)).mul(
                    _getReflectionRate()
                );
        }
    }

    function tokenFromReflection(uint256 reflectionAmount)
        public
        view
        returns (uint256)
    {
        require(
            reflectionAmount <= _reflectionTotal,
            "Amount must be less than total reflections"
        );
        uint256 currentRate = _getReflectionRate();
        return reflectionAmount.div(currentRate);
    }

   function _approve(
        address owner,
        address spender,
        uint256 amount
    ) private {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) private {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(amount > 0, "Transfer amount must be greater than zero");
        require(amount <= maxTxAmount, "Transfer Limit Exceeds");
        require(_blackList[sender] != true,"Address is blackListed");
        require(tradingEnable == true,"trading is disable");
        
        uint256 contractTokenBalance = balanceOf(address(this));
        bool overMinTokenBalance = contractTokenBalance >= minTokensBeforeSwap;
        if (!inSwapAndLiquify && overMinTokenBalance && sender != uniswapV2Pair && swapAndLiquifyEnabled) {
            swapAndLiquify(contractTokenBalance);
        }

        uint256 transferAmount = amount;
        uint256 rate = _getReflectionRate();

        if(isFeeActive && !isTaxless[_msgSender()] && !isTaxless[recipient] && !inSwapAndLiquify){
            transferAmount = collectFee(sender,amount,rate);
        }
    
        //transfer reflection
        _reflectionBalance[sender] = _reflectionBalance[sender].sub(amount.mul(rate));
        
        _reflectionBalance[recipient] = _reflectionBalance[recipient].add(transferAmount.mul(rate));

        //if any account belongs to the excludedAccount transfer token
        if (_isExcluded[sender]) {
            _tokenBalance[sender] = _tokenBalance[sender].sub(amount);
        }
        if (_isExcluded[recipient]) {
            _tokenBalance[recipient] = _tokenBalance[recipient].add(transferAmount);
            
          emit Transfer(sender, recipient, transferAmount);
        
        return;
        }

        emit Transfer(sender, recipient, transferAmount);
        
       }
    
    function collectFee(address account, uint256 amount, uint256 rate) private returns (uint256) {
        uint256 transferAmount = amount;
        
        //@dev tax fee
        if(_taxFee != 0){
            uint256 taxFee = amount.mul(_taxFee).div(10**(_feeDecimal + 2));
            transferAmount = transferAmount.sub(taxFee);
            _reflectionTotal = _reflectionTotal.sub(taxFee.mul(rate));
            _taxFeeTotal = _taxFeeTotal.add(taxFee);
        }

        //@dev liquidity fee
        if(_liquidityFee != 0){
            uint256 liquidityFee = amount.mul(_liquidityFee).div(10**(_feeDecimal + 2));
            transferAmount = transferAmount.sub(liquidityFee);
            _reflectionBalance[address(this)] = _reflectionBalance[address(this)].add(liquidityFee.mul(rate));
            if(_isExcluded[address(this)]){
                _tokenBalance[address(this)] = _tokenBalance[address(this)].add(liquidityFee);
            }
            _liquidityFeeTotal = _liquidityFeeTotal.add(liquidityFee);
            emit Transfer(account,address(this),liquidityFee);
        }
      
        //@dev burn fee
        if(_burnFee != 0){
            uint256 burnFee = amount.mul(_burnFee).div(10**(_feeDecimal + 2));
            transferAmount = transferAmount.sub(burnFee);
            _tokenTotal = _tokenTotal.sub(burnFee);
            _reflectionTotal = _reflectionTotal.sub(burnFee.mul(rate));
            _burnFeeTotal = _burnFeeTotal.add(burnFee);
            emit Transfer(account,address(0),burnFee);
        }
        
        return transferAmount;
    }

    function _getReflectionRate() private view returns (uint256) {
        uint256 reflectionSupply = _reflectionTotal;
        uint256 tokenSupply = _tokenTotal;
        for (uint256 i = 0; i < _excluded.length; i++) {
            if (
                _reflectionBalance[_excluded[i]] > reflectionSupply ||
                _tokenBalance[_excluded[i]] > tokenSupply
            ) return _reflectionTotal.div(_tokenTotal);
            reflectionSupply = reflectionSupply.sub(
                _reflectionBalance[_excluded[i]]
            );
            tokenSupply = tokenSupply.sub(_tokenBalance[_excluded[i]]);
        }
        if (reflectionSupply < _reflectionTotal.div(_tokenTotal))
            return _reflectionTotal.div(_tokenTotal);
        return reflectionSupply.div(tokenSupply);
    }
    
     function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
         if(contractTokenBalance > maxTxAmount){
             contractTokenBalance = maxTxAmount;
         }
        // split the contract balance into halves
        uint256 half = contractTokenBalance.div(2);
        uint256 otherHalf = contractTokenBalance.sub(half);

        // capture the contract's current ETH balance.
        // this is so that we can capture exactly the amount of ETH that the
        // swap creates, and not make the liquidity event include any ETH that
        // has been manually sent to the contract
        uint256 initialBalance = address(this).balance;

        // swap tokens for ETH
        swapTokensForEth(half); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered

        // how much ETH did we just swap into?
        uint256 newBalance = address(this).balance.sub(initialBalance);

        // add liquidity to uniswap
        addLiquidity(otherHalf, newBalance);
        
        emit SwapAndLiquify(half, newBalance, otherHalf);
    }

    function swapTokensForEth(uint256 tokenAmount) private {
        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

        _approve(address(this), address(uniswapV2Router), tokenAmount);

        // make the swap
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
    }

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(uniswapV2Router), tokenAmount);

        // add the liquidity
        uniswapV2Router.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            address(this),
            block.timestamp
        );
    }
    
   
    function setTaxFee(uint256 fee) external onlyOwner {
        _taxFee = fee;
    }
    
    function setMarketingWallet(address _marketingWallet) external onlyOwner {
        marketingWallet=_marketingWallet;
    }
    
     function setFeeActive(bool value) external onlyOwner {
        isFeeActive = value;
    }
    function setBlackList (address add,bool value) external onlyOwner {
        _blackList[add]=value;
    }
    function setLiquidityFee(uint256 fee) external onlyOwner {
        _liquidityFee = fee;
    }
    
    function setTrading(bool value) external onlyOwner {
        tradingEnable= value;
    }
    
     function setMaxTxAmount(uint256 amount) external onlyOwner {
        maxTxAmount = amount;
    }
    
    receive() external payable {}
}

Read Contract

_blackList 0x595dec3c → bool
_liquidityFee 0x6bc87c3a → uint256
_marketingFee 0x22976e0d → uint256
_taxFee 0x3b124fe7 → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
owner 0x8da5cb5b → address
reflectionFromToken 0x4549b039 → uint256
symbol 0x95d89b41 → string
tokenFromReflection 0x2d838119 → uint256
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address

Write Contract 14 functions

These functions modify contract state and require a wallet transaction to execute.

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
setBlackList 0x68092bd9
address add
bool value
setFeeActive 0xb7bfff65
bool value
setLiquidityFee 0x357bf15c
uint256 fee
setMarketingWallet 0x5d098b38
address _marketingWallet
setMaxTxAmount 0xec28438a
uint256 amount
setTaxFee 0xc4081a4c
uint256 fee
setTrading 0x8f70ccf7
bool value
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address