Contract 0xEee243645Dffc7313f04a03EC5BcF6de269C098b

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x42651147b41529c0d74a69c0a097864ba76db6a9e1ca257125bb4ee280115444Approve128968082021-11-23 18:33:5156 days 13 hrs ago0x739f52d4f4307d6f0e78fe86868410aeea58b4cb IN  0xeee243645dffc7313f04a03ec5bcf6de269c098b0 BNB0.00022195
0x780765cd15cd35871d9dc02ca6ebfcbc12d7706a5102d0c84b79ba37969b617aTransfer128944892021-11-23 16:29:0956 days 15 hrs ago0xbd9b934853e08a9eb783967704e20b45c3feca69 IN  0xeee243645dffc7313f04a03ec5bcf6de269c098b0 BNB0.00036125
0xcaa8e186b7d8ba4c7111a4cbec5151a3ffaba124cf077cd5fce8881a2170af79Approve128944772021-11-23 16:28:3356 days 15 hrs ago0xbd9b934853e08a9eb783967704e20b45c3feca69 IN  0xeee243645dffc7313f04a03ec5bcf6de269c098b0 BNB0.00022195
0xc85a1b9b023ece5534a9422d187e171ca3369a7eeb71b130c636bdc78ca0277c0x60c06040128943492021-11-23 16:21:5156 days 15 hrs ago0xbd9b934853e08a9eb783967704e20b45c3feca69 IN  Create: Ichiban0 BNB0.003112255
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Ichiban

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

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

// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;

abstract contract ERC20Interface {
    function totalSupply() public virtual view returns (uint256);
    function balanceOf(address tokenOwner) public virtual view returns (uint256 balance);
    function allowance(address tokenOwner, address spender) public virtual view returns (uint256 remaining);
    function transfer(address to, uint256 tokens) public virtual returns (bool success);
    function approve(address spender, uint256 tokens) public virtual returns (bool success);
    function transferFrom(address from, address to, uint256 tokens) public virtual returns (bool success);

    event Transfer(address indexed from, address indexed to, uint256 tokens);
    event Approval(address indexed tokenOwner, address indexed spender, uint256 tokens);
}

contract Mathc8 {
    function Addc8(uint256 a, uint256 b) public pure returns (uint256 c) {
        c = a + b;
        require(c >= a);
    }
    function Subc8(uint256 a, uint256 b) public pure returns (uint256 c) {
        require(b <= a);
        c = a - b;
    }
    function Mulc8(uint256 a, uint256 b) public pure returns (uint256 c) {
        c = a * b;
        require(a == 0 || c / a == b);
    }
    function Divc8(uint256 a, uint256 b) public pure returns (uint256 c) {
        require(b > 0);
        c = a / b;
    }
}

contract Ichiban is ERC20Interface, Mathc8 {
    string public name = "Ichiban";
    string public symbol = "ICHIBAN";
    uint8 public decimals = 9;
    uint256 public _totalSupply = 1000000000000 * 10**9;

    mapping(address => uint256) balances;
    mapping(address => mapping(address => uint256)) allowed;

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

    function totalSupply() public override view returns (uint256) {
        return _totalSupply - balances[address(0)];
    }

    function balanceOf(address tokenOwner) public override view returns (uint256 balance) {
        return balances[tokenOwner];
    }

    function allowance(address tokenOwner, address spender) public override view returns (uint256 remaining) {
        return allowed[tokenOwner][spender];
    }
    
    function _transfer(address from, address to, uint256 tokens) private returns (bool success) {
        uint256 amountToBurn = Divc8(tokens, 22); // 5% of the transaction shall be burned
        uint256 amountToTransfer = Subc8(tokens, amountToBurn);
        
        balances[from] = Subc8(balances[from], tokens);
        balances[0x0000000000000000000000000000000000000000] = Addc8(balances[0x0000000000000000000000000000000000000000], amountToBurn);
        balances[to] = Addc8(balances[to], amountToTransfer);
        return true;
    }

    function transfer(address to, uint256 tokens) public override returns (bool success) {
        _transfer(msg.sender, to, tokens);
        emit Transfer(msg.sender, to, tokens);
        return true;
    }

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

    function transferFrom(address from, address to, uint256 tokens) public override returns (bool success) {
        allowed[from][msg.sender] = Subc8(allowed[from][msg.sender], tokens);
        _transfer(from, to, tokens);
        emit Transfer(from, to, tokens);
        return true;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenOwner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokens","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":"tokens","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"Addc8","outputs":[{"internalType":"uint256","name":"c","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"Divc8","outputs":[{"internalType":"uint256","name":"c","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"Mulc8","outputs":[{"internalType":"uint256","name":"c","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"Subc8","outputs":[{"internalType":"uint256","name":"c","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"_totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenOwner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"remaining","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenOwner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","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":"tokens","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":"tokens","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60c0604052600760808190526624b1b434b130b760c91b60a090815261002891600091906100cf565b506040805180820190915260078082526624a1a424a120a760c91b6020909201918252610057916001916100cf565b506002805460ff19166009179055683635c9adc5dea0000060035534801561007e57600080fd5b5060035433600081815260046020908152604080832085905551938452919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36101a3565b8280546100db90610168565b90600052602060002090601f0160209004810192826100fd5760008555610143565b82601f1061011657805160ff1916838001178555610143565b82800160010185558215610143579182015b82811115610143578251825591602001919060010190610128565b5061014f929150610153565b5090565b5b8082111561014f5760008155600101610154565b600181811c9082168061017c57607f821691505b6020821081141561019d57634e487b7160e01b600052602260045260246000fd5b50919050565b610844806101b26000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806395d89b411161008c578063a9059cbb11610066578063a9059cbb146101d8578063c9490da8146101eb578063d3cfc8e2146101fe578063dd62ed3e1461021157600080fd5b806395d89b41146101aa57806396b63943146101b2578063a86b4ec0146101c557600080fd5b806323b872dd116100c857806323b872dd14610146578063313ce567146101595780633eaaf86b1461017857806370a082311461018157600080fd5b806306fdde03146100ef578063095ea7b31461010d57806318160ddd14610130575b600080fd5b6100f761024a565b6040516101049190610606565b60405180910390f35b61012061011b366004610677565b6102d8565b6040519015158152602001610104565b610138610345565b604051908152602001610104565b6101206101543660046106a1565b610383565b6002546101669060ff1681565b60405160ff9091168152602001610104565b61013860035481565b61013861018f3660046106dd565b6001600160a01b031660009081526004602052604090205490565b6100f7610438565b6101386101c03660046106f8565b610445565b6101386101d33660046106f8565b610460565b6101206101e6366004610677565b61047f565b6101386101f93660046106f8565b6104ca565b61013861020c3660046106f8565b6104e3565b61013861021f36600461071a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b600080546102579061074d565b80601f01602080910402602001604051908101604052809291908181526020018280546102839061074d565b80156102d05780601f106102a5576101008083540402835291602001916102d0565b820191906000526020600020905b8154815290600101906020018083116102b357829003601f168201915b505050505081565b3360008181526005602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906103339086815260200190565b60405180910390a35060015b92915050565b600080805260046020527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec5460035461037e919061079e565b905090565b6001600160a01b03831660009081526005602090815260408083203384529091528120546103b190836104ca565b6001600160a01b03851660009081526005602090815260408083203384529091529020556103e084848461050f565b50826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161042691815260200190565b60405180910390a35060019392505050565b600180546102579061074d565b600061045182846107b5565b90508281101561033f57600080fd5b600080821161046e57600080fd5b61047882846107cd565b9392505050565b600061048c33848461050f565b506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610333565b6000828211156104d957600080fd5b610478828461079e565b60006104ef82846107ef565b905082158061050657508161050484836107cd565b145b61033f57600080fd5b60008061051d836016610460565b9050600061052b84836104ca565b6001600160a01b03871660009081526004602052604090205490915061055190856104ca565b6001600160a01b03871660009081526004602052604081209190915580527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec5461059b9083610445565b60046020527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec556001600160a01b038516600090815260409020546105e09082610445565b6001600160a01b0386166000908152600460205260409020555060019150509392505050565b600060208083528351808285015260005b8181101561063357858101830151858201604001528201610617565b81811115610645576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461067257600080fd5b919050565b6000806040838503121561068a57600080fd5b6106938361065b565b946020939093013593505050565b6000806000606084860312156106b657600080fd5b6106bf8461065b565b92506106cd6020850161065b565b9150604084013590509250925092565b6000602082840312156106ef57600080fd5b6104788261065b565b6000806040838503121561070b57600080fd5b50508035926020909101359150565b6000806040838503121561072d57600080fd5b6107368361065b565b91506107446020840161065b565b90509250929050565b600181811c9082168061076157607f821691505b6020821081141561078257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156107b0576107b0610788565b500390565b600082198211156107c8576107c8610788565b500190565b6000826107ea57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561080957610809610788565b50029056fea2646970667358221220e6f3554030945c31afb55b976e6ae1c3a52c4fa26d4c87ecdb929586cb11f62364736f6c634300080a0033

Deployed ByteCode Sourcemap

1385:2199:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1435:30;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;3061:220;;;;;;:::i;:::-;;:::i;:::-;;;1218:14:1;;1211:22;1193:41;;1181:2;1166:18;3061:220:0;1053:187:1;1848:123:0;;;:::i;:::-;;;1391:25:1;;;1379:2;1364:18;1848:123:0;1245:177:1;3289:292:0;;;;;;:::i;:::-;;:::i;1511:25::-;;;;;;;;;;;;1932:4:1;1920:17;;;1902:36;;1890:2;1875:18;1511:25:0;1760:184:1;1543:51:0;;;;;;1979:132;;;;;;:::i;:::-;-1:-1:-1;;;;;2083:20:0;2048:15;2083:20;;;:8;:20;;;;;;;1979:132;1472:32;;;:::i;855:123::-;;;;;;:::i;:::-;;:::i;1256:122::-;;;;;;:::i;:::-;;:::i;2846:207::-;;;;;;:::i;:::-;;:::i;984:123::-;;;;;;:::i;:::-;;:::i;1113:137::-;;;;;;:::i;:::-;;:::i;2119:159::-;;;;;;:::i;:::-;-1:-1:-1;;;;;2242:19:0;;;2205:17;2242:19;;;:7;:19;;;;;;;;:28;;;;;;;;;;;;;2119:159;1435:30;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;3061:220::-;3169:10;3136:12;3161:19;;;:7;:19;;;;;;;;-1:-1:-1;;;;;3161:28:0;;;;;;;;;;:37;;;3214;3136:12;;3161:28;;3214:37;;;;3192:6;1391:25:1;;1379:2;1364:18;;1245:177;3214:37:0;;;;;;;;-1:-1:-1;3269:4:0;3061:220;;;;;:::o;1848:123::-;1901:7;1943:20;;;:8;:20;;;;1928:12;;:35;;1943:20;1928:35;:::i;:::-;1921:42;;1848:123;:::o;3289:292::-;-1:-1:-1;;;;;3437:13:0;;3378:12;3437:13;;;:7;:13;;;;;;;;3451:10;3437:25;;;;;;;;3431:40;;3464:6;3431:5;:40::i;:::-;-1:-1:-1;;;;;3403:13:0;;;;;;:7;:13;;;;;;;;3417:10;3403:25;;;;;;;:68;3482:27;3411:4;3498:2;3502:6;3482:9;:27::i;:::-;;3540:2;-1:-1:-1;;;;;3525:26:0;3534:4;-1:-1:-1;;;;;3525:26:0;;3544:6;3525:26;;;;1391:25:1;;1379:2;1364:18;;1245:177;3525:26:0;;;;;;;;-1:-1:-1;3569:4:0;3289:292;;;;;:::o;1472:32::-;;;;;;;:::i;855:123::-;913:9;939:5;943:1;939;:5;:::i;:::-;935:9;;968:1;963;:6;;955:15;;;;;1256:122;1314:9;1348:1;1344;:5;1336:14;;;;;;1365:5;1369:1;1365;:5;:::i;:::-;1361:9;1256:122;-1:-1:-1;;;1256:122:0:o;2846:207::-;2917:12;2942:33;2952:10;2964:2;2968:6;2942:9;:33::i;:::-;-1:-1:-1;2991:32:0;;1391:25:1;;;-1:-1:-1;;;;;2991:32:0;;;3000:10;;2991:32;;1379:2:1;1364:18;2991:32:0;1245:177:1;984:123:0;1042:9;1077:1;1072;:6;;1064:15;;;;;;1094:5;1098:1;1094;:5;:::i;1113:137::-;1171:9;1197:5;1201:1;1197;:5;:::i;:::-;1193:9;-1:-1:-1;1221:6:0;;;:20;;-1:-1:-1;1240:1:0;1231:5;1235:1;1231;:5;:::i;:::-;:10;1221:20;1213:29;;;;;2290:548;2368:12;2393:20;2416:17;2422:6;2430:2;2416:5;:17::i;:::-;2393:40;;2485:24;2512:27;2518:6;2526:12;2512:5;:27::i;:::-;-1:-1:-1;;;;;2583:14:0;;;;;;:8;:14;;;;;;2485:54;;-1:-1:-1;2577:29:0;;2599:6;2577:5;:29::i;:::-;-1:-1:-1;;;;;2560:14:0;;;;;;:8;:14;;;;;:46;;;;2678:52;;;;2672:73;;2732:12;2672:5;:73::i;:::-;2617:8;:52;;;:128;-1:-1:-1;;;;;2777:12:0;;2617:52;2777:12;;;2617:52;2777:12;;;2771:37;;2791:16;2771:5;:37::i;:::-;-1:-1:-1;;;;;2756:12:0;;;;;;:8;:12;;;;;:52;-1:-1:-1;2826:4:0;;-1:-1:-1;;2290:548:0;;;;;:::o;14:597:1:-;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;;;452:6;449:1;446:13;443:91;;;522:1;517:2;508:6;497:9;493:22;489:31;482:42;443:91;-1:-1:-1;595:2:1;574:15;-1:-1:-1;;570:29:1;555:45;;;;602:2;551:54;;14:597;-1:-1:-1;;;14:597:1:o;616:173::-;684:20;;-1:-1:-1;;;;;733:31:1;;723:42;;713:70;;779:1;776;769:12;713:70;616:173;;;:::o;794:254::-;862:6;870;923:2;911:9;902:7;898:23;894:32;891:52;;;939:1;936;929:12;891:52;962:29;981:9;962:29;:::i;:::-;952:39;1038:2;1023:18;;;;1010:32;;-1:-1:-1;;;794:254:1:o;1427:328::-;1504:6;1512;1520;1573:2;1561:9;1552:7;1548:23;1544:32;1541:52;;;1589:1;1586;1579:12;1541:52;1612:29;1631:9;1612:29;:::i;:::-;1602:39;;1660:38;1694:2;1683:9;1679:18;1660:38;:::i;:::-;1650:48;;1745:2;1734:9;1730:18;1717:32;1707:42;;1427:328;;;;;:::o;1949:186::-;2008:6;2061:2;2049:9;2040:7;2036:23;2032:32;2029:52;;;2077:1;2074;2067:12;2029:52;2100:29;2119:9;2100:29;:::i;2140:248::-;2208:6;2216;2269:2;2257:9;2248:7;2244:23;2240:32;2237:52;;;2285:1;2282;2275:12;2237:52;-1:-1:-1;;2308:23:1;;;2378:2;2363:18;;;2350:32;;-1:-1:-1;2140:248:1:o;2393:260::-;2461:6;2469;2522:2;2510:9;2501:7;2497:23;2493:32;2490:52;;;2538:1;2535;2528:12;2490:52;2561:29;2580:9;2561:29;:::i;:::-;2551:39;;2609:38;2643:2;2632:9;2628:18;2609:38;:::i;:::-;2599:48;;2393:260;;;;;:::o;2658:380::-;2737:1;2733:12;;;;2780;;;2801:61;;2855:4;2847:6;2843:17;2833:27;;2801:61;2908:2;2900:6;2897:14;2877:18;2874:38;2871:161;;;2954:10;2949:3;2945:20;2942:1;2935:31;2989:4;2986:1;2979:15;3017:4;3014:1;3007:15;2871:161;;2658:380;;;:::o;3043:127::-;3104:10;3099:3;3095:20;3092:1;3085:31;3135:4;3132:1;3125:15;3159:4;3156:1;3149:15;3175:125;3215:4;3243:1;3240;3237:8;3234:34;;;3248:18;;:::i;:::-;-1:-1:-1;3285:9:1;;3175:125::o;3305:128::-;3345:3;3376:1;3372:6;3369:1;3366:13;3363:39;;;3382:18;;:::i;:::-;-1:-1:-1;3418:9:1;;3305:128::o;3438:217::-;3478:1;3504;3494:132;;3548:10;3543:3;3539:20;3536:1;3529:31;3583:4;3580:1;3573:15;3611:4;3608:1;3601:15;3494:132;-1:-1:-1;3640:9:1;;3438:217::o;3660:168::-;3700:7;3766:1;3762;3758:6;3754:14;3751:1;3748:21;3743:1;3736:9;3729:17;3725:45;3722:71;;;3773:18;;:::i;:::-;-1:-1:-1;3813:9:1;;3660:168::o

Swarm Source

ipfs://e6f3554030945c31afb55b976e6ae1c3a52c4fa26d4c87ecdb929586cb11f623
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.