// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract SheepleToken {
    string public constant name = "Sheeple Token";
    string public constant symbol = "SHEEPLE";
    uint256 public constant decimals = 18;
    uint256 public constant totalSupply = 80_000_000_000 * 10**decimals;
    uint256 public constant founderTokens = 10_700_000_000 * 10**decimals;
    uint256 public constant liquidityPoolTokens = 64_000_000_000 * 10**decimals; // Added liquidity pool tokens
    uint256 public constant maxTransferAmount = 50_000_000 * 10**decimals;

    mapping(address => uint256) private balances;
    mapping(address => mapping(address => uint256)) private allowances;

    address public immutable founder;
    address public immutable founder2;
    address public immutable liquidityPool; // Added liquidity pool address
    address public immutable burnAddress = 0xb0B0C7123e5B59B1a0e62d0e5A87A6DF40f88B97;

    modifier onlyOwner() {
        require(msg.sender == founder, "Caller is not the owner");
        _;
    }

    constructor() {
        founder = 0xA919706fbA1695197B2cd1B397C41CE9Bc7C1369;
        founder2 = 0x066C4e2403899EcF899Dd90805019dC00eA4F5eA;
        liquidityPool = 0x5C5a26b09248bB22F51e395D96ABAa565b3663AA; // Added liquidity pool address

        balances[founder] = founderTokens;
        balances[founder2] = 6_000_000_000 * 10**decimals;
        balances[liquidityPool] = liquidityPoolTokens; // Added liquidity pool tokens

        emit Transfer(address(0), founder, founderTokens);
        emit Transfer(address(0), founder2, 6_000_000_000 * 10**decimals);
        emit Transfer(address(0), liquidityPool, liquidityPoolTokens); // Emit transfer event for liquidity pool tokens
    }

    function balanceOf(address account) public view returns (uint256) {
        return balances[account];
    }

    function transfer(address recipient, uint256 amount) public returns (bool) {
        require(amount <= maxTransferAmount, "Exceeds maximum transfer amount");
        require(amount <= balances[msg.sender], "Insufficient balance");
        require(recipient != address(0), "Invalid recipient");

        balances[msg.sender] -= amount;
        balances[recipient] += amount;

        emit Transfer(msg.sender, recipient, amount);
        return true;
    }

    function allowance(address owner, address spender) public view returns (uint256) {
        return allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) public returns (bool) {
        require(spender != address(0), "Invalid spender");

        allowances[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
        require(amount <= maxTransferAmount, "Exceeds maximum transfer amount");
        require(amount <= balances[sender], "Insufficient balance");
        require(amount <= allowances[sender][msg.sender], "Insufficient allowance");
        require(recipient != address(0), "Invalid recipient");

        balances[sender] -= amount;
        balances[recipient] += amount;
        allowances[sender][msg.sender] -= amount;

        emit Transfer(sender, recipient, amount);
        return true;
    }

    function burn(uint256 amount) public {
        require(amount <= balances[msg.sender], "Insufficient balance");

        balances[msg.sender] -= amount;
        balances[burnAddress] += amount;

        emit Transfer(msg.sender, burnAddress, amount);
    }

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}