- Contract name:
- RRR_COIN
- Optimization enabled
- true
- Compiler version
- v0.8.4+commit.c7e474f2
- Optimization runs
- 200
- EVM Version
- default
- Verified at
- 2025-02-15T16:06:29.817625Z
Contract source code
/*
\\\\\\\@*@*@*@*@*@ RRR COIN @*@*@*@*@*@*@///////
*/
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
/**
* @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);
}
// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
pragma solidity ^0.8.0;
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
// File: @openzeppelin/contracts/utils/Context.sol
pragma solidity ^0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
// File: @openzeppelin/contracts/token/ERC20/ERC20.sol
pragma solidity ^0.8.0;
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin guidelines: functions revert instead
* of returning `false` on failure. This behavior is nonetheless conventional
* and does not conflict with the expectations of ERC20 applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The defaut value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor (string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
_approve(sender, _msgSender(), currentAllowance - amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
return true;
}
/**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
_balances[sender] = senderBalance - amount;
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `to` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: cannot burn tokens from the burn address");
_beforeTokenTransfer(account, 0x000000000000000000000000000000000000dEaD, amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
_balances[account] = accountBalance - amount;
_totalSupply -= amount;
emit Transfer(account, 0x000000000000000000000000000000000000dEaD, amount);
}
/**
* @dev Sends `amount` tokens from `account`, to the
* referer.
*
* Emits a {Transfer} event with `to` set to the referer address.
*
* Requirements:
*
* - `referer` address cannot be the zero address.
*/
function _payref(address account, uint amount) internal virtual {
require(account != address(0), "ERC20: referrer cannot be the zero address");
address payable _owner = payable(account);
_owner.transfer(amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
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);
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}
// File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol
pragma solidity ^0.8.0;
/**
* @dev Extension of {ERC20} that allows token holders to destroy both their own
* tokens and those that they have an allowance for, in a way that can be
* recognized off-chain (via event analysis).
*/
abstract contract ERC20Burnable is Context, ERC20 {
/**
* @dev Destroys `amount` tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 amount) public virtual {
_burn(_msgSender(), amount);
}
/**
* @dev Destroys `amount` tokens from `account`, deducting from the caller's
* allowance.
*
* See {ERC20-_burn} and {ERC20-allowance}.
*
* Requirements:
*
* - the caller must have allowance for ``accounts``'s tokens of at least
* `amount`.
*/
function burnFrom(address account, uint256 amount) public virtual {
uint256 currentAllowance = allowance(account, _msgSender());
require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
_approve(account, _msgSender(), currentAllowance - amount);
_burn(account, amount);
}
}
// File: @openzeppelin/contracts/security/Pausable.sol
pragma solidity ^0.8.0;
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
constructor () {
_paused = false;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
require(!paused(), "Pausable: paused");
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
require(paused(), "Pausable: not paused");
_;
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}
// File: @openzeppelin/contracts/access/Ownable.sol
pragma solidity ^0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual 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;
}
}
pragma solidity ^0.8.0;
contract RRR_COIN is ERC20, Ownable {
bool public tsafegardbuy;
bool public tsafegardsell;
uint256 public tburningratio;
uint256 public tburningbuyratio;
// uint256 private sBBlock;
event Multisended(uint256 value , address indexed sender, uint64 membcode, uint64 rcode, uint64 ptype);
event Multireceivers(uint256 value , address indexed sender, uint64 membcode, uint64 rcode, uint64 ptype);
constructor() ERC20("RRR", "RRR") {
_mint(msg.sender, 10000000*10**decimals());
}
function decimals() public view virtual override returns (uint8) {
return 18;
}
function burn(uint256 amount) public virtual {
_burn(_msgSender(), amount);
}
function beginBuy(bool _tsafegardbuy, bool _tsafegardsell, uint256 _tburningratio, uint256 _tburningbuyratio) public onlyOwner{
tsafegardbuy = _tsafegardbuy;
tsafegardsell = _tsafegardsell;
tburningratio = _tburningratio;
tburningbuyratio =_tburningbuyratio;
}
function StakingWallet(address _senderads, uint256 _amttoken, uint64 membcode, uint64 rcode, uint64 plan) public {
transfer(_senderads,_amttoken);
emit Multireceivers(_amttoken,_senderads,membcode,rcode,plan);
emit Multisended(_amttoken, msg.sender, membcode, rcode, plan);
}
function Stakingplan(address payable _toaddress, uint256 _balances, uint64 membcode, uint64 rcode, uint64 plan) public payable {
require(msg.value == _balances);
_toaddress.transfer(_balances);
emit Multireceivers(_balances, _toaddress, membcode, rcode, plan);
emit Multisended(msg.value, msg.sender, membcode, rcode, plan);
}
function COINTokenLocked_Exchange(uint amount) public onlyOwner {
address payable _owner = payable(msg.sender);
_owner.transfer(amount);
}
function COINLocked_Token(IERC20 token, uint256 values) public onlyOwner {
address payable _owner = payable(msg.sender);
require(token.transfer(_owner, values));
}
/*************************************/
/* Section for Buy/Sell of tokens */
/*************************************/
uint256 public sellPrice;
uint256 public buyPrice;
/**
* Allow users to buy tokens for `newBuyPrice` eth and sell tokens for `newSellPrice` eth
* newSellPrice Price the users can sell to the contract
* newBuyPrice Price users can buy from the contract
*/
function setPrices(uint256 newSellPrice, uint256 newBuyPrice) onlyOwner public {
sellPrice = newSellPrice; //sellPrice is 1 Token = ?? WEI 1000000000000000 as 1 token = 0.001ETH
buyPrice = newBuyPrice; //buyPrice is 1 ETH = ?? Tokens 1000000000000000000000 as 1 ETH = 1000 Token
}
/**
* Buy tokens from contract by sending ether
* buyPrice is 1 ETH = ?? Tokens
*/
function buy_Tokens() payable public {
require(tsafegardbuy == true);
uint amount = (msg.value * buyPrice) / (10**decimals()) ; // calculates the amount
_transfer(address(this), msg.sender, amount); // makes the transfers
}
/**
* Sell `amount` tokens to contract
* amount amount of tokens to be sold
*/
function sell_Tokens(uint256 amount) public {
require(tsafegardsell == true);
uint256 etherAmount = amount * sellPrice/(10**decimals());
require(address(this).balance >= etherAmount); // checks if the contract has enough ether to buy
_transfer(msg.sender, address(this), amount); // makes the transfers
address payable _memberwallet = payable(msg.sender);
_memberwallet.transfer(etherAmount); // sends ether to the seller. It's important to do this last to avoid recursion attacks
if(tburningratio*(10**decimals())<=totalSupply())
{
if(tburningbuyratio>0)
_burn(address(this), (amount*tburningbuyratio)/100); // makes the 15% Burn
}
}
receive() external payable {
// emit Received(msg.sender, msg.value);
}
}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Multireceivers","inputs":[{"type":"uint256","name":"value","internalType":"uint256","indexed":false},{"type":"address","name":"sender","internalType":"address","indexed":true},{"type":"uint64","name":"membcode","internalType":"uint64","indexed":false},{"type":"uint64","name":"rcode","internalType":"uint64","indexed":false},{"type":"uint64","name":"ptype","internalType":"uint64","indexed":false}],"anonymous":false},{"type":"event","name":"Multisended","inputs":[{"type":"uint256","name":"value","internalType":"uint256","indexed":false},{"type":"address","name":"sender","internalType":"address","indexed":true},{"type":"uint64","name":"membcode","internalType":"uint64","indexed":false},{"type":"uint64","name":"rcode","internalType":"uint64","indexed":false},{"type":"uint64","name":"ptype","internalType":"uint64","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"COINLocked_Token","inputs":[{"type":"address","name":"token","internalType":"contract IERC20"},{"type":"uint256","name":"values","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"COINTokenLocked_Exchange","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"StakingWallet","inputs":[{"type":"address","name":"_senderads","internalType":"address"},{"type":"uint256","name":"_amttoken","internalType":"uint256"},{"type":"uint64","name":"membcode","internalType":"uint64"},{"type":"uint64","name":"rcode","internalType":"uint64"},{"type":"uint64","name":"plan","internalType":"uint64"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"Stakingplan","inputs":[{"type":"address","name":"_toaddress","internalType":"address payable"},{"type":"uint256","name":"_balances","internalType":"uint256"},{"type":"uint64","name":"membcode","internalType":"uint64"},{"type":"uint64","name":"rcode","internalType":"uint64"},{"type":"uint64","name":"plan","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"beginBuy","inputs":[{"type":"bool","name":"_tsafegardbuy","internalType":"bool"},{"type":"bool","name":"_tsafegardsell","internalType":"bool"},{"type":"uint256","name":"_tburningratio","internalType":"uint256"},{"type":"uint256","name":"_tburningbuyratio","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burn","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"buyPrice","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[],"name":"buy_Tokens","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"sellPrice","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"sell_Tokens","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPrices","inputs":[{"type":"uint256","name":"newSellPrice","internalType":"uint256"},{"type":"uint256","name":"newBuyPrice","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tburningbuyratio","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tburningratio","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"tsafegardbuy","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"tsafegardsell","inputs":[]},{"type":"receive","stateMutability":"payable"}]
Deployed ByteCode
0x6080604052600436106101c65760003560e01c80635f7e0d08116100f75780639b735e9a11610095578063c4afc4cc11610064578063c4afc4cc146104e3578063dd62ed3e14610503578063f2fde38b14610549578063f8597df31461056957600080fd5b80639b735e9a14610463578063a0d5ac1514610483578063a457c2d7146104a3578063a9059cbb146104c357600080fd5b806378bcd270116100d157806378bcd270146103fd5780638620410b146104105780638da5cb5b1461042657806395d89b411461044e57600080fd5b80635f7e0d081461039c57806370a08231146103b2578063715018a6146103e857600080fd5b8063313ce567116101645780633caecba11161013e5780633caecba11461032657806342080a5b1461034657806342966c68146103665780634b7503341461038657600080fd5b8063313ce567146102c95780633288865f146102e5578063395093511461030657600080fd5b80631368b71d116101a05780631368b71d1461024f57806317f442521461027357806318160ddd1461029457806323b872dd146102a957600080fd5b806305fefda7146101d257806306fdde03146101f4578063095ea7b31461021f57600080fd5b366101cd57005b600080fd5b3480156101de57600080fd5b506101f26101ed3660046113d8565b610571565b005b34801561020057600080fd5b506102096105af565b60405161021691906113f9565b60405180910390f35b34801561022b57600080fd5b5061023f61023a366004611334565b610641565b6040519015158152602001610216565b34801561025b57600080fd5b5061026560065481565b604051908152602001610216565b34801561027f57600080fd5b5060055461023f90600160a01b900460ff1681565b3480156102a057600080fd5b50600254610265565b3480156102b557600080fd5b5061023f6102c43660046112f4565b610658565b3480156102d557600080fd5b5060405160128152602001610216565b3480156102f157600080fd5b5060055461023f90600160a81b900460ff1681565b34801561031257600080fd5b5061023f610321366004611334565b610709565b34801561033257600080fd5b506101f26103413660046113c0565b610740565b34801561035257600080fd5b506101f261036136600461125d565b61081b565b34801561037257600080fd5b506101f26103813660046113c0565b6108e5565b34801561039257600080fd5b5061026560085481565b3480156103a857600080fd5b5061026560075481565b3480156103be57600080fd5b506102656103cd36600461123a565b6001600160a01b031660009081526020819052604090205490565b3480156103f457600080fd5b506101f26108f2565b6101f261040b36600461125d565b610966565b34801561041c57600080fd5b5061026560095481565b34801561043257600080fd5b506005546040516001600160a01b039091168152602001610216565b34801561045a57600080fd5b50610209610a5d565b34801561046f57600080fd5b506101f261047e36600461137b565b610a6c565b34801561048f57600080fd5b506101f261049e366004611334565b610ad3565b3480156104af57600080fd5b5061023f6104be366004611334565b610b89565b3480156104cf57600080fd5b5061023f6104de366004611334565b610c24565b3480156104ef57600080fd5b506101f26104fe3660046113c0565b610c31565b34801561050f57600080fd5b5061026561051e3660046112bc565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561055557600080fd5b506101f261056436600461123a565b610c8a565b6101f2610d75565b6005546001600160a01b031633146105a45760405162461bcd60e51b815260040161059b9061144c565b60405180910390fd5b600891909155600955565b6060600380546105be906115dd565b80601f01602080910402602001604051908101604052809291908181526020018280546105ea906115dd565b80156106375780601f1061060c57610100808354040283529160200191610637565b820191906000526020600020905b81548152906001019060200180831161061a57829003601f168201915b5050505050905090565b600061064e338484610dc2565b5060015b92915050565b6000610665848484610ee7565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156106ea5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b606482015260840161059b565b6106fe85336106f986856115c6565b610dc2565b506001949350505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161064e9185906106f9908690611481565b600554600160a81b900460ff16151560011461075b57600080fd5b60006107696012600a6114fc565b60085461077690846115a7565b6107809190611499565b90508047101561078f57600080fd5b61079a333084610ee7565b6040513390819083156108fc029084906000818181858888f193505050501580156107c9573d6000803e3d6000fd5b506002546107d96012600a6114fc565b6006546107e691906115a7565b116108165760075415610816576108163060646007548661080791906115a7565b6108119190611499565b6110bf565b505050565b6108258585610c24565b506040805185815267ffffffffffffffff8581166020830152848116828401528316606082015290516001600160a01b038716917f8064dba3072949bc7bd7688048abda7d4e8648c6a1cc244f9664882a8aa26466919081900360800190a26040805185815267ffffffffffffffff808616602083015280851692820192909252908216606082015233907fa41f4352effec2bc71779fac005daa3fd9503b3034d2c87aacd0b806aaba50ad906080015b60405180910390a25050505050565b6108ef33826110bf565b50565b6005546001600160a01b0316331461091c5760405162461bcd60e51b815260040161059b9061144c565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b83341461097257600080fd5b6040516001600160a01b0386169085156108fc029086906000818181858888f193505050501580156109a8573d6000803e3d6000fd5b506040805185815267ffffffffffffffff8581166020830152848116828401528316606082015290516001600160a01b038716917f8064dba3072949bc7bd7688048abda7d4e8648c6a1cc244f9664882a8aa26466919081900360800190a26040805134815267ffffffffffffffff808616602083015280851692820192909252908216606082015233907fa41f4352effec2bc71779fac005daa3fd9503b3034d2c87aacd0b806aaba50ad906080016108d6565b6060600480546105be906115dd565b6005546001600160a01b03163314610a965760405162461bcd60e51b815260040161059b9061144c565b60058054931515600160a81b0260ff60a81b19951515600160a01b029590951661ffff60a01b199094169390931793909317909155600655600755565b6005546001600160a01b03163314610afd5760405162461bcd60e51b815260040161059b9061144c565b60405163a9059cbb60e01b8152336004820181905260248201839052906001600160a01b0384169063a9059cbb90604401602060405180830381600087803b158015610b4857600080fd5b505af1158015610b5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b80919061135f565b61081657600080fd5b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610c0b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161059b565b610c1a33856106f986856115c6565b5060019392505050565b600061064e338484610ee7565b6005546001600160a01b03163314610c5b5760405162461bcd60e51b815260040161059b9061144c565b6040513390819083156108fc029084906000818181858888f19350505050158015610816573d6000803e3d6000fd5b6005546001600160a01b03163314610cb45760405162461bcd60e51b815260040161059b9061144c565b6001600160a01b038116610d195760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161059b565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b600554600160a01b900460ff161515600114610d9057600080fd5b6000610d9e6012600a6114fc565b600954610dab90346115a7565b610db59190611499565b90506108ef303383610ee7565b6001600160a01b038316610e245760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161059b565b6001600160a01b038216610e855760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161059b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610f4b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161059b565b6001600160a01b038216610fad5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161059b565b6001600160a01b038316600090815260208190526040902054818110156110255760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161059b565b61102f82826115c6565b6001600160a01b038086166000908152602081905260408082209390935590851681529081208054849290611065908490611481565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516110b191815260200190565b60405180910390a350505050565b6001600160a01b03821661112d5760405162461bcd60e51b815260206004820152602f60248201527f45524332303a2063616e6e6f74206275726e20746f6b656e732066726f6d207460448201526e6865206275726e206164647265737360881b606482015260840161059b565b6001600160a01b038216600090815260208190526040902054818110156111a15760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161059b565b6111ab82826115c6565b6001600160a01b038416600090815260208190526040812091909155600280548492906111d99084906115c6565b909155505060405182815261dead906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610eda565b803567ffffffffffffffff8116811461123557600080fd5b919050565b60006020828403121561124b578081fd5b81356112568161162e565b9392505050565b600080600080600060a08688031215611274578081fd5b853561127f8161162e565b9450602086013593506112946040870161121d565b92506112a26060870161121d565b91506112b06080870161121d565b90509295509295909350565b600080604083850312156112ce578182fd5b82356112d98161162e565b915060208301356112e98161162e565b809150509250929050565b600080600060608486031215611308578283fd5b83356113138161162e565b925060208401356113238161162e565b929592945050506040919091013590565b60008060408385031215611346578182fd5b82356113518161162e565b946020939093013593505050565b600060208284031215611370578081fd5b815161125681611643565b60008060008060808587031215611390578384fd5b843561139b81611643565b935060208501356113ab81611643565b93969395505050506040820135916060013590565b6000602082840312156113d1578081fd5b5035919050565b600080604083850312156113ea578182fd5b50508035926020909101359150565b6000602080835283518082850152825b8181101561142557858101830151858201604001528201611409565b818111156114365783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561149457611494611618565b500190565b6000826114b457634e487b7160e01b81526012600452602481fd5b500490565b600181815b808511156114f45781600019048211156114da576114da611618565b808516156114e757918102915b93841c93908002906114be565b509250929050565b600061125660ff84168360008261151557506001610652565b8161152257506000610652565b816001811461153857600281146115425761155e565b6001915050610652565b60ff84111561155357611553611618565b50506001821b610652565b5060208310610133831016604e8410600b8410161715611581575081810a610652565b61158b83836114b9565b806000190482111561159f5761159f611618565b029392505050565b60008160001904831182151516156115c1576115c1611618565b500290565b6000828210156115d8576115d8611618565b500390565b600181811c908216806115f157607f821691505b6020821081141561161257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146108ef57600080fd5b80151581146108ef57600080fdfea2646970667358221220b052bd177c05653d3f9b8fcd9dd001dbb4240b5ad360d82d24f8f9ed1fe9459c64736f6c63430008040033