Contract 0x8C9CD5efD4bE4be79D554b47F5Db19fd3a1C2C3b

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x883a8ec285145fbb8d9b9a114eadd1110f33c8bc09022d1ca128cdc801b4a171Approve129432802021-11-25 11:22:364 days 15 hrs ago0x70dae4d230bc385f8e297bd39b3ef123b7e4ab90 IN  0x8c9cd5efd4be4be79d554b47f5db19fd3a1c2c3b0 BNB0.00012583
0xfcdb77a2a6635241f47fe93e0930545266268ffa9273c2296e533c4a7fad020eApprove129432562021-11-25 11:21:204 days 15 hrs ago0x70dae4d230bc385f8e297bd39b3ef123b7e4ab90 IN  0x8c9cd5efd4be4be79d554b47f5db19fd3a1c2c3b0 BNB0.00022183
0xa5a5a9bb499e106dbfd057f5f1a941baebc3c1f25ab78aeb8ef3a55dc9004a5aApprove129432302021-11-25 11:19:464 days 15 hrs ago0x91ac06927601d1476765b97f4543969cf7980a5c IN  0x8c9cd5efd4be4be79d554b47f5db19fd3a1c2c3b0 BNB0.00022183
0xa0df0a64cc6ec9b0b2824f66823c8fc769f80e144e6afff0dce1598ac7548314Approve129431062021-11-25 11:13:214 days 15 hrs ago0xf3b056d5543135631506105f3ad83580a00fcbba IN  0x8c9cd5efd4be4be79d554b47f5db19fd3a1c2c3b0 BNB0.00022183
0xb77965a11af698e918d0ed2960ef157b59e563adcf388f0d823fc894ef110cf40x60c06040129430742021-11-25 11:11:444 days 15 hrs ago0xf3b056d5543135631506105f3ad83580a00fcbba IN  Contract Creation0 BNB0.00256449
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SampleBEP20Token

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at BscScan.com on 2021-11-25
*/

// SPDX-License-Identifier: UNLISCENSED

pragma solidity 0.8.4;


/*
 * https://t.me/squidchanger
 * 
 * @title SampleBEP20Token
 * @dev Very simple BEP20 Token example, where all tokens are pre-assigned to the creator.
 * Note they can later distribute these tokens as they wish using `transfer` and other
 * `BEP20` functions.
 * USE IT ONLY FOR LEARNING PURPOSES. SHOULD BE MODIFIED FOR PRODUCTION
 */
 
contract SampleBEP20Token {
    string public name = "Squid Floki INU";
    string public symbol = "SQFL";
    uint256 public totalSupply = 100000000000000000000000000; // 1 million tokens
    uint8 public decimals = 7;
    
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed _from, address indexed _to, uint256 _value);

     /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(
        address indexed _owner,
        address indexed _spender,
        uint256 _value
    );

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

    /**
     * @dev Constructor that gives msg.sender all of existing tokens.
     */
    constructor() {
        balanceOf[msg.sender] = totalSupply;
    }

     /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address _to, uint256 _value)
        public
        returns (bool success)
    {
        require(balanceOf[msg.sender] >= _value);
        balanceOf[msg.sender] -= _value;
        balanceOf[_to] += _value;
        emit Transfer(msg.sender, _to, _value);
        return true;
    }
    
     /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */

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

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address _from,
        address _to,
        uint256 _value
    ) public returns (bool success) {
        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;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"success","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":"success","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":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60c0604052600f60808190526e537175696420466c6f6b6920494e5560881b60a0908152610030916000919061009e565b506040805180820190915260048082526314d4519360e21b602090920191825261005c9160019161009e565b506a52b7d2dcc80cd2e40000006002556003805460ff1916600717905534801561008557600080fd5b5060025433600090815260046020526040902055610172565b8280546100aa90610137565b90600052602060002090601f0160209004810192826100cc5760008555610112565b82601f106100e557805160ff1916838001178555610112565b82800160010185558215610112579182015b828111156101125782518255916020019190600101906100f7565b5061011e929150610122565b5090565b5b8082111561011e5760008155600101610123565b600181811c9082168061014b57607f821691505b6020821081141561016c57634e487b7160e01b600052602260045260246000fd5b50919050565b610655806101816000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063313ce56711610066578063313ce5671461010357806370a082311461012257806395d89b4114610142578063a9059cbb1461014a578063dd62ed3e1461015d57600080fd5b806306fdde0314610098578063095ea7b3146100b657806318160ddd146100d957806323b872dd146100f0575b600080fd5b6100a0610188565b6040516100ad919061054c565b60405180910390f35b6100c96100c4366004610523565b610216565b60405190151581526020016100ad565b6100e260025481565b6040519081526020016100ad565b6100c96100fe3660046104e8565b610282565b6003546101109060ff1681565b60405160ff90911681526020016100ad565b6100e2610130366004610495565b60046020526000908152604090205481565b6100a06103c2565b6100c9610158366004610523565b6103cf565b6100e261016b3660046104b6565b600560209081526000928352604080842090915290825290205481565b60008054610195906105ce565b80601f01602080910402602001604051908101604052809291908181526020018280546101c1906105ce565b801561020e5780601f106101e35761010080835404028352916020019161020e565b820191906000526020600020905b8154815290600101906020018083116101f157829003601f168201915b505050505081565b3360008181526005602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102719086815260200190565b60405180910390a350600192915050565b6001600160a01b0383166000908152600460205260408120548211156102a757600080fd5b6001600160a01b03841660009081526005602090815260408083203384529091529020548211156102d757600080fd5b6001600160a01b038416600090815260046020526040812080548492906102ff9084906105b7565b90915550506001600160a01b0383166000908152600460205260408120805484929061032c90849061059f565b90915550506001600160a01b0384166000908152600560209081526040808320338452909152812080548492906103649084906105b7565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516103b091815260200190565b60405180910390a35060019392505050565b60018054610195906105ce565b336000908152600460205260408120548211156103eb57600080fd5b336000908152600460205260408120805484929061040a9084906105b7565b90915550506001600160a01b0383166000908152600460205260408120805484929061043790849061059f565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610271565b80356001600160a01b038116811461049057600080fd5b919050565b6000602082840312156104a6578081fd5b6104af82610479565b9392505050565b600080604083850312156104c8578081fd5b6104d183610479565b91506104df60208401610479565b90509250929050565b6000806000606084860312156104fc578081fd5b61050584610479565b925061051360208501610479565b9150604084013590509250925092565b60008060408385031215610535578182fd5b61053e83610479565b946020939093013593505050565b6000602080835283518082850152825b818110156105785785810183015185820160400152820161055c565b818111156105895783604083870101525b50601f01601f1916929092016040019392505050565b600082198211156105b2576105b2610609565b500190565b6000828210156105c9576105c9610609565b500390565b600181811c908216806105e257607f821691505b6020821081141561060357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220c6c042403d767d835dc957322460758d8f8da80d2087214a6e4e4711c92ab16d64736f6c63430008040033

Deployed ByteCode Sourcemap

422:3251:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;455:38;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2684:239;;;;;;:::i;:::-;;:::i;:::-;;;1445:14:1;;1438:22;1420:41;;1408:2;1393:18;2684:239:0;1375:92:1;536:56:0;;;;;;;;;2226:25:1;;;2214:2;2199:18;536:56:0;2181:76:1;3241:429:0;;;;;;:::i;:::-;;:::i;619:25::-;;;;;;;;;;;;2434:4:1;2422:17;;;2404:36;;2392:2;2377:18;619:25:0;2359:87:1;1190:44:0;;;;;;:::i;:::-;;;;;;;;;;;;;;500:29;;;:::i;1701:307::-;;;;;;:::i;:::-;;:::i;1241:64::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;455:38;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2684:239::-;2809:10;2769:12;2799:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;2799:31:0;;;;;;;;;;:40;;;2855:38;2769:12;;2799:31;;2855:38;;;;2833:6;2226:25:1;;2214:2;2199:18;;2181:76;2855:38:0;;;;;;;;-1:-1:-1;2911:4:0;2684:239;;;;:::o;3241:429::-;-1:-1:-1;;;;;3400:16:0;;3357:12;3400:16;;;:9;:16;;;;;;3390:26;;;3382:35;;;;;;-1:-1:-1;;;;;3446:16:0;;;;;;:9;:16;;;;;;;;3463:10;3446:28;;;;;;;;3436:38;;;3428:47;;;;;;-1:-1:-1;;;;;3486:16:0;;;;;;:9;:16;;;;;:26;;3506:6;;3486:16;:26;;3506:6;;3486:26;:::i;:::-;;;;-1:-1:-1;;;;;;;3523:14:0;;;;;;:9;:14;;;;;:24;;3541:6;;3523:14;:24;;3541:6;;3523:24;:::i;:::-;;;;-1:-1:-1;;;;;;;3558:16:0;;;;;;:9;:16;;;;;;;;3575:10;3558:28;;;;;;;:38;;3590:6;;3558:16;:38;;3590:6;;3558:38;:::i;:::-;;;;;;;;3628:3;-1:-1:-1;;;;;3612:28:0;3621:5;-1:-1:-1;;;;;3612:28:0;;3633:6;3612:28;;;;2226:25:1;;2214:2;2199:18;;2181:76;3612:28:0;;;;;;;;-1:-1:-1;3658:4:0;3241:429;;;;;:::o;500:29::-;;;;;;;:::i;1701:307::-;1830:10;1782:12;1820:21;;;:9;:21;;;;;;:31;-1:-1:-1;1820:31:0;1812:40;;;;;;1873:10;1863:21;;;;:9;:21;;;;;:31;;1888:6;;1863:21;:31;;1888:6;;1863:31;:::i;:::-;;;;-1:-1:-1;;;;;;;1905:14:0;;;;;;:9;:14;;;;;:24;;1923:6;;1905:14;:24;;1923:6;;1905:24;:::i;:::-;;;;-1:-1:-1;;1945:33:0;;2226:25:1;;;-1:-1:-1;;;;;1945:33:0;;;1954:10;;1945:33;;2214:2:1;2199:18;1945:33:0;2181:76:1;14:173;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;111:2;63:124;;;:::o;192:196::-;251:6;304:2;292:9;283:7;279:23;275:32;272:2;;;325:6;317;310:22;272:2;353:29;372:9;353:29;:::i;:::-;343:39;262:126;-1:-1:-1;;;262:126:1:o;393:270::-;461:6;469;522:2;510:9;501:7;497:23;493:32;490:2;;;543:6;535;528:22;490:2;571:29;590:9;571:29;:::i;:::-;561:39;;619:38;653:2;642:9;638:18;619:38;:::i;:::-;609:48;;480:183;;;;;:::o;668:338::-;745:6;753;761;814:2;802:9;793:7;789:23;785:32;782:2;;;835:6;827;820:22;782:2;863:29;882:9;863:29;:::i;:::-;853:39;;911:38;945:2;934:9;930:18;911:38;:::i;:::-;901:48;;996:2;985:9;981:18;968:32;958:42;;772:234;;;;;:::o;1011:264::-;1079:6;1087;1140:2;1128:9;1119:7;1115:23;1111:32;1108:2;;;1161:6;1153;1146:22;1108:2;1189:29;1208:9;1189:29;:::i;:::-;1179:39;1265:2;1250:18;;;;1237:32;;-1:-1:-1;;;1098:177:1:o;1472:603::-;1584:4;1613:2;1642;1631:9;1624:21;1674:6;1668:13;1717:6;1712:2;1701:9;1697:18;1690:34;1742:4;1755:140;1769:6;1766:1;1763:13;1755:140;;;1864:14;;;1860:23;;1854:30;1830:17;;;1849:2;1826:26;1819:66;1784:10;;1755:140;;;1913:6;1910:1;1907:13;1904:2;;;1983:4;1978:2;1969:6;1958:9;1954:22;1950:31;1943:45;1904:2;-1:-1:-1;2059:2:1;2038:15;-1:-1:-1;;2034:29:1;2019:45;;;;2066:2;2015:54;;1593:482;-1:-1:-1;;;1593:482:1:o;2451:128::-;2491:3;2522:1;2518:6;2515:1;2512:13;2509:2;;;2528:18;;:::i;:::-;-1:-1:-1;2564:9:1;;2499:80::o;2584:125::-;2624:4;2652:1;2649;2646:8;2643:2;;;2657:18;;:::i;:::-;-1:-1:-1;2694:9:1;;2633:76::o;2714:380::-;2793:1;2789:12;;;;2836;;;2857:2;;2911:4;2903:6;2899:17;2889:27;;2857:2;2964;2956:6;2953:14;2933:18;2930:38;2927:2;;;3010:10;3005:3;3001:20;2998:1;2991:31;3045:4;3042:1;3035:15;3073:4;3070:1;3063:15;2927:2;;2769:325;;;:::o;3099:127::-;3160:10;3155:3;3151:20;3148:1;3141:31;3191:4;3188:1;3181:15;3215:4;3212:1;3205:15

Swarm Source

ipfs://c6c042403d767d835dc957322460758d8f8da80d2087214a6e4e4711c92ab16d
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.