Token BasedVelocimeter

 

Overview [ERC-20]

Price
$0.00 @ 0.000000 Eth
Fully Diluted Market Cap
Max Total Supply:
10,954,948.195520004588796155 BVM

Holders:
1,031

Transfers:
-

Contract:
0xd386a121991E51Eab5e3433Bf5B1cF4C8884b47a0xd386a121991E51Eab5e3433Bf5B1cF4C8884b47a

Decimals:
18

Social Profiles:
Not Available, Update ?

Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Flow

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU AGPLv3 license
/**
 *Submitted for verification at basescan.org on 2023-08-02
*/

// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.13;


interface IFlow {
    function totalSupply() external view returns (uint);
    function balanceOf(address) external view returns (uint);
    function approve(address spender, uint value) external returns (bool);
    function transfer(address, uint) external returns (bool);
    function transferFrom(address,address,uint) external returns (bool);
    function mint(address, uint) external returns (bool);
    function minter() external returns (address);
}


contract Flow is IFlow {

    string public constant name = "BasedVelocimeter";
    string public constant symbol = "BVM";
    uint8 public constant decimals = 18;
    uint public totalSupply = 0;

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

    address public minter;

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

    constructor(address initialSupplyRecipient, uint initialAmount) {
        minter = msg.sender;
        _mint(initialSupplyRecipient, initialAmount);
    }

    // No checks as its meant to be once off to set minting rights to BaseV1 Minter
    function setMinter(address _minter) external {
        require(msg.sender == minter);
        minter = _minter;
    }

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

    function _mint(address _to, uint _amount) internal returns (bool) {
        totalSupply += _amount;
        unchecked {
            balanceOf[_to] += _amount;
        }
        emit Transfer(address(0x0), _to, _amount);
        return true;
    }

    function _transfer(address _from, address _to, uint _value) internal returns (bool) {
        balanceOf[_from] -= _value;
        unchecked {
            balanceOf[_to] += _value;
        }
        emit Transfer(_from, _to, _value);
        return true;
    }

    function transfer(address _to, uint _value) external returns (bool) {
        return _transfer(msg.sender, _to, _value);
    }

    function transferFrom(address _from, address _to, uint _value) external returns (bool) {
        uint allowed_from = allowance[_from][msg.sender];
        if (allowed_from != type(uint).max) {
            allowance[_from][msg.sender] -= _value;
        }
        return _transfer(_from, _to, _value);
    }

    function mint(address account, uint amount) external returns (bool) {
        require(msg.sender == minter);
        _mint(account, amount);
        return true;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"initialSupplyRecipient","type":"address"},{"internalType":"uint256","name":"initialAmount","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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","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"}]

60806040526000805534801561001457600080fd5b5060405161076c38038061076c833981016040819052610033916100c8565b600380546001600160a01b0319163317905561004f8282610057565b505050610128565b60008160008082825461006a9190610102565b90915550506001600160a01b0383166000818152600160209081526040808320805487019055518581527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350600192915050565b600080604083850312156100db57600080fd5b82516001600160a01b03811681146100f257600080fd5b6020939093015192949293505050565b6000821982111561012357634e487b7160e01b600052601160045260246000fd5b500190565b610635806101376000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806340c10f191161007157806340c10f191461019057806370a08231146101a357806395d89b41146101c3578063a9059cbb146101e5578063dd62ed3e146101f8578063fca3b5aa1461022357600080fd5b806306fdde03146100b957806307546172146100fe578063095ea7b31461012957806318160ddd1461014c57806323b872dd14610163578063313ce56714610176575b600080fd5b6100e86040518060400160405280601081526020016f2130b9b2b22b32b637b1b4b6b2ba32b960811b81525081565b6040516100f59190610495565b60405180910390f35b600354610111906001600160a01b031681565b6040516001600160a01b0390911681526020016100f5565b61013c610137366004610506565b610238565b60405190151581526020016100f5565b61015560005481565b6040519081526020016100f5565b61013c610171366004610530565b6102a4565b61017e601281565b60405160ff90911681526020016100f5565b61013c61019e366004610506565b61031e565b6101556101b136600461056c565b60016020526000908152604090205481565b6100e86040518060400160405280600381526020016242564d60e81b81525081565b61013c6101f3366004610506565b61034c565b610155610206366004610587565b600260209081526000928352604080842090915290825290205481565b61023661023136600461056c565b610360565b005b3360008181526002602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102939086815260200190565b60405180910390a350600192915050565b6001600160a01b0383166000908152600260209081526040808320338452909152812054600019811461030a576001600160a01b0385166000908152600260209081526040808320338452909152812080548592906103049084906105d0565b90915550505b610315858585610399565b95945050505050565b6003546000906001600160a01b0316331461033857600080fd5b6103428383610430565b5060019392505050565b6000610359338484610399565b9392505050565b6003546001600160a01b0316331461037757600080fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166000908152600160205260408120805483919083906103c39084906105d0565b90915550506001600160a01b03808416600081815260016020526040908190208054860190555190918616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061041e9086815260200190565b60405180910390a35060019392505050565b60008160008082825461044391906105e7565b90915550506001600160a01b0383166000818152600160209081526040808320805487019055518581527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610293565b600060208083528351808285015260005b818110156104c2578581018301518582016040015282016104a6565b818111156104d4576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461050157600080fd5b919050565b6000806040838503121561051957600080fd5b610522836104ea565b946020939093013593505050565b60008060006060848603121561054557600080fd5b61054e846104ea565b925061055c602085016104ea565b9150604084013590509250925092565b60006020828403121561057e57600080fd5b610359826104ea565b6000806040838503121561059a57600080fd5b6105a3836104ea565b91506105b1602084016104ea565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b6000828210156105e2576105e26105ba565b500390565b600082198211156105fa576105fa6105ba565b50019056fea26469706673582212203d26a80af83baacba17eacde4a10905dc36354715c8a22098621083eba5b0e1964736f6c634300080d0033000000000000000000000000e0f7921414e79fe4459148d2e38fb68c9186decc00000000000000000000000000000000000000000004f68ca6d8cd91c6000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100b45760003560e01c806340c10f191161007157806340c10f191461019057806370a08231146101a357806395d89b41146101c3578063a9059cbb146101e5578063dd62ed3e146101f8578063fca3b5aa1461022357600080fd5b806306fdde03146100b957806307546172146100fe578063095ea7b31461012957806318160ddd1461014c57806323b872dd14610163578063313ce56714610176575b600080fd5b6100e86040518060400160405280601081526020016f2130b9b2b22b32b637b1b4b6b2ba32b960811b81525081565b6040516100f59190610495565b60405180910390f35b600354610111906001600160a01b031681565b6040516001600160a01b0390911681526020016100f5565b61013c610137366004610506565b610238565b60405190151581526020016100f5565b61015560005481565b6040519081526020016100f5565b61013c610171366004610530565b6102a4565b61017e601281565b60405160ff90911681526020016100f5565b61013c61019e366004610506565b61031e565b6101556101b136600461056c565b60016020526000908152604090205481565b6100e86040518060400160405280600381526020016242564d60e81b81525081565b61013c6101f3366004610506565b61034c565b610155610206366004610587565b600260209081526000928352604080842090915290825290205481565b61023661023136600461056c565b610360565b005b3360008181526002602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102939086815260200190565b60405180910390a350600192915050565b6001600160a01b0383166000908152600260209081526040808320338452909152812054600019811461030a576001600160a01b0385166000908152600260209081526040808320338452909152812080548592906103049084906105d0565b90915550505b610315858585610399565b95945050505050565b6003546000906001600160a01b0316331461033857600080fd5b6103428383610430565b5060019392505050565b6000610359338484610399565b9392505050565b6003546001600160a01b0316331461037757600080fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166000908152600160205260408120805483919083906103c39084906105d0565b90915550506001600160a01b03808416600081815260016020526040908190208054860190555190918616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061041e9086815260200190565b60405180910390a35060019392505050565b60008160008082825461044391906105e7565b90915550506001600160a01b0383166000818152600160209081526040808320805487019055518581527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610293565b600060208083528351808285015260005b818110156104c2578581018301518582016040015282016104a6565b818111156104d4576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461050157600080fd5b919050565b6000806040838503121561051957600080fd5b610522836104ea565b946020939093013593505050565b60008060006060848603121561054557600080fd5b61054e846104ea565b925061055c602085016104ea565b9150604084013590509250925092565b60006020828403121561057e57600080fd5b610359826104ea565b6000806040838503121561059a57600080fd5b6105a3836104ea565b91506105b1602084016104ea565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b6000828210156105e2576105e26105ba565b500390565b600082198211156105fa576105fa6105ba565b50019056fea26469706673582212203d26a80af83baacba17eacde4a10905dc36354715c8a22098621083eba5b0e1964736f6c634300080d0033

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

000000000000000000000000e0f7921414e79fe4459148d2e38fb68c9186decc00000000000000000000000000000000000000000004f68ca6d8cd91c6000000

-----Decoded View---------------
Arg [0] : initialSupplyRecipient (address): 0xe0F7921414e79fE4459148d2e38fb68C9186DECC
Arg [1] : initialAmount (uint256): 6000000000000000000000000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000e0f7921414e79fe4459148d2e38fb68c9186decc
Arg [1] : 00000000000000000000000000000000000000000004f68ca6d8cd91c6000000


Deployed ByteCode Sourcemap

545:2273:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;577:48;;;;;;;;;;;;;;;-1:-1:-1;;;577:48:0;;;;;;;;;;;;:::i;:::-;;;;;;;;872:21;;;;;-1:-1:-1;;;;;872:21:0;;;;;;-1:-1:-1;;;;;780:32:1;;;762:51;;750:2;735:18;872:21:0;616:203:1;1438:207:0;;;;;;:::i;:::-;;:::i;:::-;;;1426:14:1;;1419:22;1401:41;;1389:2;1374:18;1438:207:0;1261:187:1;718:27:0;;;;;;;;;1599:25:1;;;1587:2;1572:18;718:27:0;1453:177:1;2324:312:0;;;;;;:::i;:::-;;:::i;676:35::-;;709:2;676:35;;;;;2140:4:1;2128:17;;;2110:36;;2098:2;2083:18;676:35:0;1968:184:1;2644:171:0;;;;;;:::i;:::-;;:::i;754:41::-;;;;;;:::i;:::-;;;;;;;;;;;;;;632:37;;;;;;;;;;;;;;;-1:-1:-1;;;632:37:0;;;;;2188:128;;;;;;:::i;:::-;;:::i;802:61::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;1310:120;;;;;;:::i;:::-;;:::i;:::-;;1438:207;1531:10;1504:4;1521:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;1521:31:0;;;;;;;;;;:40;;;1577:38;1504:4;;1521:31;;1577:38;;;;1555:6;1599:25:1;;1587:2;1572:18;;1453:177;1577:38:0;;;;;;;;-1:-1:-1;1633:4:0;1438:207;;;;:::o;2324:312::-;-1:-1:-1;;;;;2442:16:0;;2405:4;2442:16;;;:9;:16;;;;;;;;2459:10;2442:28;;;;;;;;-1:-1:-1;;2485:30:0;;2481:101;;-1:-1:-1;;;;;2532:16:0;;;;;;:9;:16;;;;;;;;2549:10;2532:28;;;;;;;:38;;2564:6;;2532:16;:38;;2564:6;;2532:38;:::i;:::-;;;;-1:-1:-1;;2481:101:0;2599:29;2609:5;2616:3;2621:6;2599:9;:29::i;:::-;2592:36;2324:312;-1:-1:-1;;;;;2324:312:0:o;2644:171::-;2745:6;;2706:4;;-1:-1:-1;;;;;2745:6:0;2731:10;:20;2723:29;;;;;;2763:22;2769:7;2778:6;2763:5;:22::i;:::-;-1:-1:-1;2803:4:0;;2644:171;-1:-1:-1;;;2644:171:0:o;2188:128::-;2250:4;2274:34;2284:10;2296:3;2301:6;2274:9;:34::i;:::-;2267:41;2188:128;-1:-1:-1;;;2188:128:0:o;1310:120::-;1388:6;;-1:-1:-1;;;;;1388:6:0;1374:10;:20;1366:29;;;;;;1406:6;:16;;-1:-1:-1;;;;;;1406:16:0;-1:-1:-1;;;;;1406:16:0;;;;;;;;;;1310:120::o;1914:266::-;-1:-1:-1;;;;;2009:16:0;;1992:4;2009:16;;;:9;:16;;;;;:26;;2029:6;;2009:16;1992:4;;2009:26;;2029:6;;2009:26;:::i;:::-;;;;-1:-1:-1;;;;;;;2071:14:0;;;;;;;:9;:14;;;;;;;:24;;;;;;2122:28;2071:14;;2122:28;;;;;;;2089:6;1599:25:1;;1587:2;1572:18;;1453:177;2122:28:0;;;;;;;;-1:-1:-1;2168:4:0;1914:266;;;;;:::o;1653:253::-;1713:4;1745:7;1730:11;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;1788:14:0;;;;;;:9;:14;;;;;;;;:25;;;;;;1840:36;1599:25:1;;;1840:36:0;;1572:18:1;1840:36:0;1453:177:1;14:597;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;824:173::-;892:20;;-1:-1:-1;;;;;941:31:1;;931:42;;921:70;;987:1;984;977:12;921:70;824:173;;;:::o;1002:254::-;1070:6;1078;1131:2;1119:9;1110:7;1106:23;1102:32;1099:52;;;1147:1;1144;1137:12;1099:52;1170:29;1189:9;1170:29;:::i;:::-;1160:39;1246:2;1231:18;;;;1218:32;;-1:-1:-1;;;1002:254:1:o;1635:328::-;1712:6;1720;1728;1781:2;1769:9;1760:7;1756:23;1752:32;1749:52;;;1797:1;1794;1787:12;1749:52;1820:29;1839:9;1820:29;:::i;:::-;1810:39;;1868:38;1902:2;1891:9;1887:18;1868:38;:::i;:::-;1858:48;;1953:2;1942:9;1938:18;1925:32;1915:42;;1635:328;;;;;:::o;2157:186::-;2216:6;2269:2;2257:9;2248:7;2244:23;2240:32;2237:52;;;2285:1;2282;2275:12;2237:52;2308:29;2327:9;2308:29;:::i;2348:260::-;2416:6;2424;2477:2;2465:9;2456:7;2452:23;2448:32;2445:52;;;2493:1;2490;2483:12;2445:52;2516:29;2535:9;2516:29;:::i;:::-;2506:39;;2564:38;2598:2;2587:9;2583:18;2564:38;:::i;:::-;2554:48;;2348:260;;;;;:::o;2613:127::-;2674:10;2669:3;2665:20;2662:1;2655:31;2705:4;2702:1;2695:15;2729:4;2726:1;2719:15;2745:125;2785:4;2813:1;2810;2807:8;2804:34;;;2818:18;;:::i;:::-;-1:-1:-1;2855:9:1;;2745:125::o;2875:128::-;2915:3;2946:1;2942:6;2939:1;2936:13;2933:39;;;2952:18;;:::i;:::-;-1:-1:-1;2988:9:1;;2875:128::o

Swarm Source

ipfs://3d26a80af83baacba17eacde4a10905dc36354715c8a22098621083eba5b0e19
Loading