Skip to content
Verified contractPartialMIT

Aetheris

Address0xd1da2bafe0376c8bad5c1f90bb565468dfab8e2c
Balance

0 ETH

 

Transactions

3

 

Compiler

solc 0.8.34

 

Same code

1 more contract

 

Details

Compiler
solc 0.8.34+commit.80d5c536
Language
solidity
Optimization
No
License
MIT
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
24,917,663
Creation transaction
0x9eea9436dc…920eea6ed5

AetherisSimple.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.34;

contract Aetheris {
    string public constant name = "Aetheris";
    string public constant symbol = "AETH";
    uint8 public constant decimals = 18;
    uint256 public totalSupply = 10000000000 * 10**18;

    mapping(address => uint256) public balanceOf;
    mapping(address => mapping(address => uint256)) public allowance;

    address public constant DEAD = 0x000000000000000000000000000000000000dEaD;

    uint256 public maxWallet = totalSupply * 2 / 100; // 2%

    uint256 public sellBurnFee = 2;
    uint256 public sellLiquidityFee = 2;

    bool public tradingOpen = false;

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed from, address indexed spender, uint256 value);

    constructor() {
        balanceOf[msg.sender] = totalSupply;
        emit Transfer(address(0), msg.sender, totalSupply);
    }

    function enableTrading() external {
        require(!tradingOpen, "Trading already open");
        tradingOpen = true;
    }

    function _transfer(address from, address to, uint256 amount) internal {
        require(from != address(0) && to != address(0), "Zero address");
        require(amount > 0, "Zero amount");

        if (!tradingOpen) {
            revert("Trading not open");
        }

        if (to != DEAD) {
            require(balanceOf[to] + amount <= maxWallet, "Exceeds max wallet");
        }

        uint256 tax = 0;
        if (from != msg.sender && to != msg.sender) {
            tax = (amount * (sellBurnFee + sellLiquidityFee)) / 100;
        }

        uint256 amountAfterTax = amount - tax;
        balanceOf[from] -= amount;

        if (tax > 0) {
            uint256 burnAmount = (tax * sellBurnFee) / (sellBurnFee + sellLiquidityFee);
            balanceOf[DEAD] += burnAmount;
            emit Transfer(from, DEAD, burnAmount);
        }

        balanceOf[to] += amountAfterTax;
        emit Transfer(from, to, amountAfterTax);
    }

    function transfer(address to, uint256 amount) external returns (bool) {
        _transfer(msg.sender, to, amount);
        return true;
    }

    function approve(address spender, uint256 amount) external returns (bool) {
        allowance[msg.sender][spender] = amount;
        emit Approval(msg.sender, spender, amount);
        return true;
    }
}
Compiler settingsShow
{
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.