Token Solidly

DeFi  DEX  
 

Overview ERC-20

Price
$0.00 @ 0.000000 FTM
Fully Diluted Market Cap
Total Supply:
100,000,000 SOLID

Holders:
9,717 addresses

Transfers:
-

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

OVERVIEW

Simple AMM for volatile, correlated, or forex pairs.


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

Contract Source Code Verified (Exact Match)

Contract Name:
BaseV1

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU LGPLv3 license
/**
 *Submitted for verification at Etherscan.io on 2022-02-10
*/

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

contract BaseV1 {

    string public constant symbol = "SOLID";
    string public constant name = "Solidly";
    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() {
        minter = msg.sender;
        _mint(msg.sender, 0);
    }

    // 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) {
        balanceOf[_to] += _amount;
        totalSupply += _amount;
        emit Transfer(address(0x0), _to, _amount);
        return true;
    }

    function _transfer(address _from, address _to, uint _value) internal returns (bool) {
        balanceOf[_from] -= _value;
        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":[],"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"}]

60806040526000805534801561001457600080fd5b50600380546001600160a01b0319163390811790915561003590600061003b565b506100f2565b6001600160a01b0382166000908152600160205260408120805483919083906100659084906100cc565b925050819055508160008082825461007d91906100cc565b90915550506040518281526001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a350600192915050565b600082198211156100ed57634e487b7160e01b600052601160045260246000fd5b500190565b61066c806101016000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806340c10f191161007157806340c10f191461018757806370a082311461019a57806395d89b41146101ba578063a9059cbb146101de578063dd62ed3e146101f1578063fca3b5aa1461021c57600080fd5b806306fdde03146100b957806307546172146100f5578063095ea7b31461012057806318160ddd1461014357806323b872dd1461015a578063313ce5671461016d575b600080fd5b6100df60405180604001604052806007815260200166536f6c69646c7960c81b81525081565b6040516100ec91906104cc565b60405180910390f35b600354610108906001600160a01b031681565b6040516001600160a01b0390911681526020016100ec565b61013361012e36600461053d565b610231565b60405190151581526020016100ec565b61014c60005481565b6040519081526020016100ec565b610133610168366004610567565b61029d565b610175601281565b60405160ff90911681526020016100ec565b61013361019536600461053d565b610317565b61014c6101a83660046105a3565b60016020526000908152604090205481565b6100df6040518060400160405280600581526020016414d3d3125160da1b81525081565b6101336101ec36600461053d565b610345565b61014c6101ff3660046105be565b600260209081526000928352604080842090915290825290205481565b61022f61022a3660046105a3565b610359565b005b3360008181526002602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061028c9086815260200190565b60405180910390a350600192915050565b6001600160a01b03831660009081526002602090815260408083203384529091528120546000198114610303576001600160a01b0385166000908152600260209081526040808320338452909152812080548592906102fd908490610607565b90915550505b61030e858585610392565b95945050505050565b6003546000906001600160a01b0316331461033157600080fd5b61033b8383610447565b5060019392505050565b6000610352338484610392565b9392505050565b6003546001600160a01b0316331461037057600080fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166000908152600160205260408120805483919083906103bc908490610607565b90915550506001600160a01b038316600090815260016020526040812080548492906103e990849061061e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161043591815260200190565b60405180910390a35060019392505050565b6001600160a01b03821660009081526001602052604081208054839190839061047190849061061e565b9250508190555081600080828254610489919061061e565b90915550506040518281526001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161028c565b600060208083528351808285015260005b818110156104f9578581018301518582016040015282016104dd565b8181111561050b576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461053857600080fd5b919050565b6000806040838503121561055057600080fd5b61055983610521565b946020939093013593505050565b60008060006060848603121561057c57600080fd5b61058584610521565b925061059360208501610521565b9150604084013590509250925092565b6000602082840312156105b557600080fd5b61035282610521565b600080604083850312156105d157600080fd5b6105da83610521565b91506105e860208401610521565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b600082821015610619576106196105f1565b500390565b60008219821115610631576106316105f1565b50019056fea2646970667358221220cea886765f0b950b645d7aa4b6b11ad12e5197c1b88ee5a924a03bbbfddb6c1564736f6c634300080b0033

Deployed ByteCode Sourcemap

73:2113:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;144:39;;;;;;;;;;;;;;;-1:-1:-1;;;144:39:0;;;;;;;;;;;;:::i;:::-;;;;;;;;386:21;;;;;-1:-1:-1;;;;;386:21:0;;;;;;-1:-1:-1;;;;;780:32:1;;;762:51;;750:2;735:18;386:21:0;616:203:1;878:207:0;;;;;;:::i;:::-;;:::i;:::-;;;1426:14:1;;1419:22;1401:41;;1389:2;1374:18;878:207:0;1261:187:1;232:27:0;;;;;;;;;1599:25:1;;;1587:2;1572:18;232:27:0;1453:177:1;1692:312:0;;;;;;:::i;:::-;;:::i;190:35::-;;223:2;190:35;;;;;2140:4:1;2128:17;;;2110:36;;2098:2;2083:18;190:35:0;1968:184:1;2012:171:0;;;;;;:::i;:::-;;:::i;268:41::-;;;;;;:::i;:::-;;;;;;;;;;;;;;98:39;;;;;;;;;;;;;;;-1:-1:-1;;;98:39:0;;;;;1556:128;;;;;;:::i;:::-;;:::i;316:61::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;750:120;;;;;;:::i;:::-;;:::i;:::-;;878:207;971:10;944:4;961:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;961:31:0;;;;;;;;;;:40;;;1017:38;944:4;;961:31;;1017:38;;;;995:6;1599:25:1;;1587:2;1572:18;;1453:177;1017:38:0;;;;;;;;-1:-1:-1;1073:4:0;878:207;;;;:::o;1692:312::-;-1:-1:-1;;;;;1810:16:0;;1773:4;1810:16;;;:9;:16;;;;;;;;1827:10;1810:28;;;;;;;;-1:-1:-1;;1853:30:0;;1849:101;;-1:-1:-1;;;;;1900:16:0;;;;;;:9;:16;;;;;;;;1917:10;1900:28;;;;;;;:38;;1932:6;;1900:16;:38;;1932:6;;1900:38;:::i;:::-;;;;-1:-1:-1;;1849:101:0;1967:29;1977:5;1984:3;1989:6;1967:9;:29::i;:::-;1960:36;1692:312;-1:-1:-1;;;;;1692:312:0:o;2012:171::-;2113:6;;2074:4;;-1:-1:-1;;;;;2113:6:0;2099:10;:20;2091:29;;;;;;2131:22;2137:7;2146:6;2131:5;:22::i;:::-;-1:-1:-1;2171:4:0;;2012:171;-1:-1:-1;;;2012:171:0:o;1556:128::-;1618:4;1642:34;1652:10;1664:3;1669:6;1642:9;:34::i;:::-;1635:41;1556:128;-1:-1:-1;;;1556:128:0:o;750:120::-;828:6;;-1:-1:-1;;;;;828:6:0;814:10;:20;806:29;;;;;;846:6;:16;;-1:-1:-1;;;;;;846:16:0;-1:-1:-1;;;;;846:16:0;;;;;;;;;;750:120::o;1318:230::-;-1:-1:-1;;;;;1413:16:0;;1396:4;1413:16;;;:9;:16;;;;;:26;;1433:6;;1413:16;1396:4;;1413:26;;1433:6;;1413:26;:::i;:::-;;;;-1:-1:-1;;;;;;;1450:14:0;;;;;;:9;:14;;;;;:24;;1468:6;;1450:14;:24;;1468:6;;1450:24;:::i;:::-;;;;;;;;1506:3;-1:-1:-1;;;;;1490:28:0;1499:5;-1:-1:-1;;;;;1490:28:0;;1511:6;1490:28;;;;1599:25:1;;1587:2;1572:18;;1453:177;1490:28:0;;;;;;;;-1:-1:-1;1536:4:0;1318:230;;;;;:::o;1093:217::-;-1:-1:-1;;;;;1170:14:0;;1153:4;1170:14;;;:9;:14;;;;;:25;;1188:7;;1170:14;1153:4;;1170:25;;1188:7;;1170:25;:::i;:::-;;;;;;;;1221:7;1206:11;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;1244:36:0;;1599:25:1;;;-1:-1:-1;;;;;1244:36:0;;;1261:3;;1244:36;;1587:2:1;1572:18;1244: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://cea886765f0b950b645d7aa4b6b11ad12e5197c1b88ee5a924a03bbbfddb6c15
Loading