ETH Price: $2,041.66 (+4.64%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Advanced mode:
Parent Transaction Hash Method Block
From
To
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ShibAI

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license
/**
 *Submitted for verification at Etherscan.io on 2023-08-17
*/

// SPDX-License-Identifier: Unlicensed

/*

Welcome to ShibAI, the first AI automated Sniper BOT which will be bridged on the brand new Layer 2 Shibarium Network

https://ShibAi.org

https://twitter.com/shibAI_BOT

https://shibai-1.gitbook.io/shibai-sniper-manual-v1.0/

https://t.me/ShibAISniper


*/

pragma solidity 0.8.21;

contract ShibAI {
    string public name = "ShibAI";
    string public symbol = "SHIBAI";
    uint8 public decimals = 9;
    uint256 public totalSupply;
    mapping(address => uint256) public balanceOf;
    mapping(address => mapping(address => uint256)) public allowance;

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

    constructor(uint256 initialSupply) {
        totalSupply = initialSupply * (10 ** uint256(decimals));
        balanceOf[msg.sender] = totalSupply;
    }

    function transfer(address to, uint256 value) public returns (bool) {
        require(balanceOf[msg.sender] >= value, "Insufficient balance");
        balanceOf[msg.sender] -= value;
        balanceOf[to] += value;
        emit Transfer(msg.sender, to, value);
        return true;
    }

    function approve(address spender, uint256 value) public returns (bool) {
        allowance[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;
    }

    function transferFrom(address from, address to, uint256 value) public returns (bool) {
        require(balanceOf[from] >= value, "Insufficient balance");
        require(allowance[from][msg.sender] >= value, "Insufficient allowance");
        balanceOf[from] -= value;
        balanceOf[to] += value;
        allowance[from][msg.sender] -= value;
        emit Transfer(from, to, value);
        return true;
    }
}

interface IUniswapV2Router02 {
    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity);
}

contract TokenLiquidity is ShibAI {
    address private constant UNISWAP_ROUTER_ADDRESS = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
    IUniswapV2Router02 public uniswapRouter = IUniswapV2Router02(UNISWAP_ROUTER_ADDRESS);

    constructor(uint256 initialSupply) ShibAI(initialSupply) {}

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) public payable {
        require(msg.value == ethAmount, "ETH amount doesn't match msg.value");

        approve(UNISWAP_ROUTER_ADDRESS, tokenAmount);

        uniswapRouter.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0,
            0,
            msg.sender,
            block.timestamp + 15
        );
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"uint256","name":"initialSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60c0604052600660809081526553686962414960d01b60a0525f906200002690826200016a565b5060408051808201909152600681526553484942414960d01b60208201526001906200005390826200016a565b506002805460ff191660091790553480156200006d575f80fd5b5060405162000a7238038062000a72833981016040819052620000909162000232565b600254620000a39060ff16600a62000359565b620000af90826200036d565b6003819055335f908152600460205260409020555062000387565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680620000f357607f821691505b6020821081036200011257634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111562000165575f81815260208120601f850160051c81016020861015620001405750805b601f850160051c820191505b8181101562000161578281556001016200014c565b5050505b505050565b81516001600160401b03811115620001865762000186620000ca565b6200019e81620001978454620000de565b8462000118565b602080601f831160018114620001d4575f8415620001bc5750858301515b5f19600386901b1c1916600185901b17855562000161565b5f85815260208120601f198616915b828110156200020457888601518255948401946001909101908401620001e3565b50858210156200022257878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f6020828403121562000243575f80fd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b600181815b808511156200029e57815f19048211156200028257620002826200024a565b808516156200029057918102915b93841c939080029062000263565b509250929050565b5f82620002b65750600162000353565b81620002c457505f62000353565b8160018114620002dd5760028114620002e85762000308565b600191505062000353565b60ff841115620002fc57620002fc6200024a565b50506001821b62000353565b5060208310610133831016604e8410600b84101617156200032d575081810a62000353565b6200033983836200025e565b805f19048211156200034f576200034f6200024a565b0290505b92915050565b5f620003668383620002a6565b9392505050565b80820281158282048414176200035357620003536200024a565b6106dd80620003955f395ff3fe608060405234801561000f575f80fd5b5060043610610090575f3560e01c8063313ce56711610063578063313ce567146100ff57806370a082311461011e57806395d89b411461013d578063a9059cbb14610145578063dd62ed3e14610158575f80fd5b806306fdde0314610094578063095ea7b3146100b257806318160ddd146100d557806323b872dd146100ec575b5f80fd5b61009c610182565b6040516100a9919061051d565b60405180910390f35b6100c56100c0366004610583565b61020d565b60405190151581526020016100a9565b6100de60035481565b6040519081526020016100a9565b6100c56100fa3660046105ab565b610279565b60025461010c9060ff1681565b60405160ff90911681526020016100a9565b6100de61012c3660046105e4565b60046020525f908152604090205481565b61009c61042f565b6100c5610153366004610583565b61043c565b6100de610166366004610604565b600560209081525f928352604080842090915290825290205481565b5f805461018e90610635565b80601f01602080910402602001604051908101604052809291908181526020018280546101ba90610635565b80156102055780601f106101dc57610100808354040283529160200191610205565b820191905f5260205f20905b8154815290600101906020018083116101e857829003601f168201915b505050505081565b335f8181526005602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102679086815260200190565b60405180910390a35060015b92915050565b6001600160a01b0383165f908152600460205260408120548211156102dc5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064015b60405180910390fd5b6001600160a01b0384165f9081526005602090815260408083203384529091529020548211156103475760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b60448201526064016102d3565b6001600160a01b0384165f908152600460205260408120805484929061036e908490610681565b90915550506001600160a01b0383165f908152600460205260408120805484929061039a908490610694565b90915550506001600160a01b0384165f908152600560209081526040808320338452909152812080548492906103d1908490610681565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161041d91815260200190565b60405180910390a35060019392505050565b6001805461018e90610635565b335f908152600460205260408120548211156104915760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064016102d3565b335f90815260046020526040812080548492906104af908490610681565b90915550506001600160a01b0383165f90815260046020526040812080548492906104db908490610694565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610267565b5f6020808352835180828501525f5b818110156105485785810183015185820160400152820161052c565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461057e575f80fd5b919050565b5f8060408385031215610594575f80fd5b61059d83610568565b946020939093013593505050565b5f805f606084860312156105bd575f80fd5b6105c684610568565b92506105d460208501610568565b9150604084013590509250925092565b5f602082840312156105f4575f80fd5b6105fd82610568565b9392505050565b5f8060408385031215610615575f80fd5b61061e83610568565b915061062c60208401610568565b90509250929050565b600181811c9082168061064957607f821691505b60208210810361066757634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156102735761027361066d565b808201808211156102735761027361066d56fea264697066735822122080f7706433f9e42195f4a9b3774b6c757d4d74d7f26447ee3cff61cb36af49ce64736f6c6343000815003300000000000000000000000000000000000000000000000000000000000186a0

Deployed Bytecode

0x608060405234801561000f575f80fd5b5060043610610090575f3560e01c8063313ce56711610063578063313ce567146100ff57806370a082311461011e57806395d89b411461013d578063a9059cbb14610145578063dd62ed3e14610158575f80fd5b806306fdde0314610094578063095ea7b3146100b257806318160ddd146100d557806323b872dd146100ec575b5f80fd5b61009c610182565b6040516100a9919061051d565b60405180910390f35b6100c56100c0366004610583565b61020d565b60405190151581526020016100a9565b6100de60035481565b6040519081526020016100a9565b6100c56100fa3660046105ab565b610279565b60025461010c9060ff1681565b60405160ff90911681526020016100a9565b6100de61012c3660046105e4565b60046020525f908152604090205481565b61009c61042f565b6100c5610153366004610583565b61043c565b6100de610166366004610604565b600560209081525f928352604080842090915290825290205481565b5f805461018e90610635565b80601f01602080910402602001604051908101604052809291908181526020018280546101ba90610635565b80156102055780601f106101dc57610100808354040283529160200191610205565b820191905f5260205f20905b8154815290600101906020018083116101e857829003601f168201915b505050505081565b335f8181526005602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102679086815260200190565b60405180910390a35060015b92915050565b6001600160a01b0383165f908152600460205260408120548211156102dc5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064015b60405180910390fd5b6001600160a01b0384165f9081526005602090815260408083203384529091529020548211156103475760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b60448201526064016102d3565b6001600160a01b0384165f908152600460205260408120805484929061036e908490610681565b90915550506001600160a01b0383165f908152600460205260408120805484929061039a908490610694565b90915550506001600160a01b0384165f908152600560209081526040808320338452909152812080548492906103d1908490610681565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161041d91815260200190565b60405180910390a35060019392505050565b6001805461018e90610635565b335f908152600460205260408120548211156104915760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064016102d3565b335f90815260046020526040812080548492906104af908490610681565b90915550506001600160a01b0383165f90815260046020526040812080548492906104db908490610694565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610267565b5f6020808352835180828501525f5b818110156105485785810183015185820160400152820161052c565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461057e575f80fd5b919050565b5f8060408385031215610594575f80fd5b61059d83610568565b946020939093013593505050565b5f805f606084860312156105bd575f80fd5b6105c684610568565b92506105d460208501610568565b9150604084013590509250925092565b5f602082840312156105f4575f80fd5b6105fd82610568565b9392505050565b5f8060408385031215610615575f80fd5b61061e83610568565b915061062c60208401610568565b90509250929050565b600181811c9082168061064957607f821691505b60208210810361066757634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156102735761027361066d565b808201808211156102735761027361066d56fea264697066735822122080f7706433f9e42195f4a9b3774b6c757d4d74d7f26447ee3cff61cb36af49ce64736f6c63430008150033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000186a0

-----Decoded View---------------
Arg [0] : initialSupply (uint256): 100000

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000186a0


Deployed Bytecode Sourcemap

347:1547:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;370:29;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1260:202;;;;;;:::i;:::-;;:::i;:::-;;;1169:14:1;;1162:22;1144:41;;1132:2;1117:18;1260:202:0;1004:187:1;476:26:0;;;;;;;;;1342:25:1;;;1330:2;1315:18;476:26:0;1196:177:1;1470:421:0;;;;;;:::i;:::-;;:::i;444:25::-;;;;;;;;;;;;1883:4:1;1871:17;;;1853:36;;1841:2;1826:18;444:25:0;1711:184:1;509:44:0;;;;;;:::i;:::-;;;;;;;;;;;;;;406:31;;;:::i;960:292::-;;;;;;:::i;:::-;;:::i;560:64::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;370:29;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1260:202::-;1352:10;1325:4;1342:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;1342:30:0;;;;;;;;;;:38;;;1396:36;1325:4;;1342:30;;1396:36;;;;1375:5;1342:25:1;;1330:2;1315:18;;1196:177;1396:36:0;;;;;;;;-1:-1:-1;1450:4:0;1260:202;;;;;:::o;1470:421::-;-1:-1:-1;;;;;1574:15:0;;1549:4;1574:15;;;:9;:15;;;;;;:24;-1:-1:-1;1574:24:0;1566:57;;;;-1:-1:-1;;;1566:57:0;;2943:2:1;1566:57:0;;;2925:21:1;2982:2;2962:18;;;2955:30;-1:-1:-1;;;3001:18:1;;;2994:50;3061:18;;1566:57:0;;;;;;;;;-1:-1:-1;;;;;1642:15:0;;;;;;:9;:15;;;;;;;;1658:10;1642:27;;;;;;;;:36;-1:-1:-1;1642:36:0;1634:71;;;;-1:-1:-1;;;1634:71:0;;3292:2:1;1634:71:0;;;3274:21:1;3331:2;3311:18;;;3304:30;-1:-1:-1;;;3350:18:1;;;3343:52;3412:18;;1634:71:0;3090:346:1;1634:71:0;-1:-1:-1;;;;;1716:15:0;;;;;;:9;:15;;;;;:24;;1735:5;;1716:15;:24;;1735:5;;1716:24;:::i;:::-;;;;-1:-1:-1;;;;;;;1751:13:0;;;;;;:9;:13;;;;;:22;;1768:5;;1751:13;:22;;1768:5;;1751:22;:::i;:::-;;;;-1:-1:-1;;;;;;;1784:15:0;;;;;;:9;:15;;;;;;;;1800:10;1784:27;;;;;;;:36;;1815:5;;1784:15;:36;;1815:5;;1784:36;:::i;:::-;;;;;;;;1851:2;-1:-1:-1;;;;;1836:25:0;1845:4;-1:-1:-1;;;;;1836:25:0;;1855:5;1836:25;;;;1342::1;;1330:2;1315:18;;1196:177;1836:25:0;;;;;;;;-1:-1:-1;1879:4:0;1470:421;;;;;:::o;406:31::-;;;;;;;:::i;960:292::-;1056:10;1021:4;1046:21;;;:9;:21;;;;;;:30;-1:-1:-1;1046:30:0;1038:63;;;;-1:-1:-1;;;1038:63:0;;2943:2:1;1038:63:0;;;2925:21:1;2982:2;2962:18;;;2955:30;-1:-1:-1;;;3001:18:1;;;2994:50;3061:18;;1038:63:0;2741:344:1;1038:63:0;1122:10;1112:21;;;;:9;:21;;;;;:30;;1137:5;;1112:21;:30;;1137:5;;1112:30;:::i;:::-;;;;-1:-1:-1;;;;;;;1153:13:0;;;;;;:9;:13;;;;;:22;;1170:5;;1153:13;:22;;1170:5;;1153:22;:::i;:::-;;;;-1:-1:-1;;1191:31:0;;1342:25:1;;;-1:-1:-1;;;;;1191:31:0;;;1200:10;;1191:31;;1330:2:1;1315:18;1191:31:0;1196:177:1;14:548;126:4;155:2;184;173:9;166:21;216:6;210:13;259:6;254:2;243:9;239:18;232:34;284:1;294:140;308:6;305:1;302:13;294:140;;;403:14;;;399:23;;393:30;369:17;;;388:2;365:26;358:66;323:10;;294:140;;;298:3;483:1;478:2;469:6;458:9;454:22;450:31;443:42;553:2;546;542:7;537:2;529:6;525:15;521:29;510:9;506:45;502:54;494:62;;;;14:548;;;;:::o;567:173::-;635:20;;-1:-1:-1;;;;;684:31:1;;674:42;;664:70;;730:1;727;720:12;664:70;567:173;;;:::o;745:254::-;813:6;821;874:2;862:9;853:7;849:23;845:32;842:52;;;890:1;887;880:12;842:52;913:29;932:9;913:29;:::i;:::-;903:39;989:2;974:18;;;;961:32;;-1:-1:-1;;;745:254:1:o;1378:328::-;1455:6;1463;1471;1524:2;1512:9;1503:7;1499:23;1495:32;1492:52;;;1540:1;1537;1530:12;1492:52;1563:29;1582:9;1563:29;:::i;:::-;1553:39;;1611:38;1645:2;1634:9;1630:18;1611:38;:::i;:::-;1601:48;;1696:2;1685:9;1681:18;1668:32;1658:42;;1378:328;;;;;:::o;1900:186::-;1959:6;2012:2;2000:9;1991:7;1987:23;1983:32;1980:52;;;2028:1;2025;2018:12;1980:52;2051:29;2070:9;2051:29;:::i;:::-;2041:39;1900:186;-1:-1:-1;;;1900:186:1:o;2091:260::-;2159:6;2167;2220:2;2208:9;2199:7;2195:23;2191:32;2188:52;;;2236:1;2233;2226:12;2188:52;2259:29;2278:9;2259:29;:::i;:::-;2249:39;;2307:38;2341:2;2330:9;2326:18;2307:38;:::i;:::-;2297:48;;2091:260;;;;;:::o;2356:380::-;2435:1;2431:12;;;;2478;;;2499:61;;2553:4;2545:6;2541:17;2531:27;;2499:61;2606:2;2598:6;2595:14;2575:18;2572:38;2569:161;;2652:10;2647:3;2643:20;2640:1;2633:31;2687:4;2684:1;2677:15;2715:4;2712:1;2705:15;2569:161;;2356:380;;;:::o;3441:127::-;3502:10;3497:3;3493:20;3490:1;3483:31;3533:4;3530:1;3523:15;3557:4;3554:1;3547:15;3573:128;3640:9;;;3661:11;;;3658:37;;;3675:18;;:::i;3706:125::-;3771:9;;;3792:10;;;3789:36;;;3805:18;;:::i

Swarm Source

ipfs://80f7706433f9e42195f4a9b3774b6c757d4d74d7f26447ee3cff61cb36af49ce

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.