ETH Price: $3,264.04 (-5.15%)
 

Overview

Max Total Supply

69,741,705.163255015160474713 $DEGEN

Holders

71

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
9,207.346615064822232771 $DEGEN

Value
$0.00
0x805c559b43565505cec1273801d5aab30fb91004
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
DegenToken

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 50000 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2020-08-27
*/

pragma solidity ^0.5.0;


contract DSMath {
    function add(uint x, uint y) internal pure returns (uint z) {
        require((z = x + y) >= x, "ds-math-add-overflow");
    }
    function sub(uint x, uint y) internal pure returns (uint z) {
        require((z = x - y) <= x, "ds-math-sub-underflow");
    }
    function mul(uint x, uint y) internal pure returns (uint z) {
        require(y == 0 || (z = x * y) / y == x, "ds-math-mul-overflow");
    }
}

// token.sol -- ERC20 implementation with minting and burning
// Copyright (C) 2015, 2016, 2017  DappHub, LLC
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
contract DegenToken is DSMath {
    uint256                                           public  totalSupply;
    mapping (address => uint256)                      public  balanceOf;
    mapping (address => mapping (address => uint256)) public  allowance;
    bytes32                                           public  symbol = "$DEGEN";
    uint256                                           public  decimals = 18;
    bytes32                                           public  name = "Degen Money";
    address                                           public  reserve;
    address                                           public  governance;

    constructor(address _reserve) public {
        governance = msg.sender;
        reserve = _reserve;
    }

    modifier onlyGov() {
        require(msg.sender == governance);
        _;
    }

    event Approval(address indexed src, address indexed guy, uint wad);
    event Transfer(address indexed src, address indexed dst, uint wad);
    event Burn(uint wad);

    function approve(address guy) external returns (bool) {
        return approve(guy, uint(-1));
    }

    function approve(address guy, uint wad) public returns (bool) {
        allowance[msg.sender][guy] = wad;

        emit Approval(msg.sender, guy, wad);

        return true;
    }

    function transfer(address dst, uint wad) external returns (bool) {
        return transferFrom(msg.sender, dst, wad);
    }

    function transferFrom(address src, address dst, uint wad) public returns (bool) {
        if (src != msg.sender && allowance[src][msg.sender] != uint(-1)) {
            require(allowance[src][msg.sender] >= wad, "ds-token-insufficient-approval");
            allowance[src][msg.sender] = sub(allowance[src][msg.sender], wad);
        }

        require(balanceOf[src] >= wad, "ds-token-insufficient-balance");
        balanceOf[src] = sub(balanceOf[src], wad);
        uint one = wad / 100;
        uint half = one / 2;
        uint ninetynine = sub(wad, one);
        balanceOf[dst] = add(balanceOf[dst], ninetynine);
        balanceOf[reserve] = add(balanceOf[reserve], half);
        burn(half);

        emit Transfer(src, dst, wad);

        return true;
    }

    function burn(uint wad) internal {
        totalSupply = sub(totalSupply, wad);
        emit Burn(wad);
    }

    /*** GOV ***/

    function mint(address _account, uint256 _wad)
        public
        onlyGov
    {
        require(_account != address(0), "ERC20: mint to the zero address");

        totalSupply = add(totalSupply, _wad);
        balanceOf[_account] = add(balanceOf[_account], _wad);
        emit Transfer(address(0), _account, _wad);
    }

    function setReserve(address _reserve)
        public
        onlyGov
    {
        reserve = _reserve;
    }

    function setGovernance(address _governance)
        public
        onlyGov
    {
        governance = _governance;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_reserve","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":true,"internalType":"address","name":"guy","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":true,"internalType":"address","name":"dst","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"guy","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"guy","type":"address"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_wad","type":"uint256"}],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"reserve","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_reserve","type":"address"}],"name":"setReserve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405265122222a3a2a760d11b60035560126004556a446567656e204d6f6e657960a81b60055534801561003457600080fd5b50604051610c54380380610c548339818101604052602081101561005757600080fd5b505160078054336001600160a01b031991821617909155600680549091166001600160a01b03909216919091179055610bbf806100956000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063ab033ea911610066578063ab033ea9146102c7578063cd3293de146102fa578063daea85c514610302578063dd62ed3e14610335576100f5565b806370a082311461022057806395d89b41146102535780639cecc80a1461025b578063a9059cbb1461028e576100f5565b806323b872dd116100d357806323b872dd14610169578063313ce567146101ac57806340c10f19146101b45780635aa6e675146101ef576100f5565b806306fdde03146100fa578063095ea7b31461011457806318160ddd14610161575b600080fd5b610102610370565b60408051918252519081900360200190f35b61014d6004803603604081101561012a57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610376565b604080519115158252519081900360200190f35b6101026103ea565b61014d6004803603606081101561017f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356103f0565b61010261078f565b6101ed600480360360408110156101ca57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610795565b005b6101f76108de565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101026004803603602081101561023657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166108fa565b61010261090c565b6101ed6004803603602081101561027157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610912565b61014d600480360360408110156102a457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561097d565b6101ed600480360360208110156102dd57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610991565b6101f76109fc565b61014d6004803603602081101561031857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610a18565b6101026004803603604081101561034b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610a44565b60055481565b33600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005481565b600073ffffffffffffffffffffffffffffffffffffffff84163314801590610468575073ffffffffffffffffffffffffffffffffffffffff841660009081526002602090815260408083203384529091529020547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14155b156105795773ffffffffffffffffffffffffffffffffffffffff8416600090815260026020908152604080832033845290915290205482111561050c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f64732d746f6b656e2d696e73756666696369656e742d617070726f76616c0000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff841660009081526002602090815260408083203384529091529020546105479083610a61565b73ffffffffffffffffffffffffffffffffffffffff851660009081526002602090815260408083203384529091529020555b73ffffffffffffffffffffffffffffffffffffffff841660009081526001602052604090205482111561060d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f64732d746f6b656e2d696e73756666696369656e742d62616c616e6365000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff841660009081526001602052604090205461063d9083610a61565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600160205260408120919091556064830490600282049061067a8584610a61565b73ffffffffffffffffffffffffffffffffffffffff87166000908152600160205260409020549091506106ad9082610ad3565b73ffffffffffffffffffffffffffffffffffffffff80881660009081526001602052604080822093909355600654909116815220546106ec9083610ad3565b60065473ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205561071d82610b45565b8573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef876040518082815260200191505060405180910390a35060019695505050505050565b60045481565b60075473ffffffffffffffffffffffffffffffffffffffff1633146107b957600080fd5b73ffffffffffffffffffffffffffffffffffffffff821661083b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61084760005482610ad3565b600090815573ffffffffffffffffffffffffffffffffffffffff83168152600160205260409020546108799082610ad3565b73ffffffffffffffffffffffffffffffffffffffff831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b60016020526000908152604090205481565b60035481565b60075473ffffffffffffffffffffffffffffffffffffffff16331461093657600080fd5b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600061098a3384846103f0565b9392505050565b60075473ffffffffffffffffffffffffffffffffffffffff1633146109b557600080fd5b600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b60006103e4827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610376565b600260209081526000928352604080842090915290825290205481565b808203828111156103e457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b808201828110156103e457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b610b5160005482610a61565b6000556040805182815290517fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9181900360200190a15056fea265627a7a7231582094d57254221665d2311a6769d57c65a91ce6f46d15da69ed03ba347d93e6df2664736f6c634300051000320000000000000000000000000511d4a08136031877ab33892f2fe81e945e85a6

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063ab033ea911610066578063ab033ea9146102c7578063cd3293de146102fa578063daea85c514610302578063dd62ed3e14610335576100f5565b806370a082311461022057806395d89b41146102535780639cecc80a1461025b578063a9059cbb1461028e576100f5565b806323b872dd116100d357806323b872dd14610169578063313ce567146101ac57806340c10f19146101b45780635aa6e675146101ef576100f5565b806306fdde03146100fa578063095ea7b31461011457806318160ddd14610161575b600080fd5b610102610370565b60408051918252519081900360200190f35b61014d6004803603604081101561012a57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610376565b604080519115158252519081900360200190f35b6101026103ea565b61014d6004803603606081101561017f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356103f0565b61010261078f565b6101ed600480360360408110156101ca57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610795565b005b6101f76108de565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101026004803603602081101561023657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166108fa565b61010261090c565b6101ed6004803603602081101561027157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610912565b61014d600480360360408110156102a457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561097d565b6101ed600480360360208110156102dd57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610991565b6101f76109fc565b61014d6004803603602081101561031857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610a18565b6101026004803603604081101561034b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610a44565b60055481565b33600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005481565b600073ffffffffffffffffffffffffffffffffffffffff84163314801590610468575073ffffffffffffffffffffffffffffffffffffffff841660009081526002602090815260408083203384529091529020547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14155b156105795773ffffffffffffffffffffffffffffffffffffffff8416600090815260026020908152604080832033845290915290205482111561050c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f64732d746f6b656e2d696e73756666696369656e742d617070726f76616c0000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff841660009081526002602090815260408083203384529091529020546105479083610a61565b73ffffffffffffffffffffffffffffffffffffffff851660009081526002602090815260408083203384529091529020555b73ffffffffffffffffffffffffffffffffffffffff841660009081526001602052604090205482111561060d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f64732d746f6b656e2d696e73756666696369656e742d62616c616e6365000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff841660009081526001602052604090205461063d9083610a61565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600160205260408120919091556064830490600282049061067a8584610a61565b73ffffffffffffffffffffffffffffffffffffffff87166000908152600160205260409020549091506106ad9082610ad3565b73ffffffffffffffffffffffffffffffffffffffff80881660009081526001602052604080822093909355600654909116815220546106ec9083610ad3565b60065473ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205561071d82610b45565b8573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef876040518082815260200191505060405180910390a35060019695505050505050565b60045481565b60075473ffffffffffffffffffffffffffffffffffffffff1633146107b957600080fd5b73ffffffffffffffffffffffffffffffffffffffff821661083b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61084760005482610ad3565b600090815573ffffffffffffffffffffffffffffffffffffffff83168152600160205260409020546108799082610ad3565b73ffffffffffffffffffffffffffffffffffffffff831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b60016020526000908152604090205481565b60035481565b60075473ffffffffffffffffffffffffffffffffffffffff16331461093657600080fd5b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600061098a3384846103f0565b9392505050565b60075473ffffffffffffffffffffffffffffffffffffffff1633146109b557600080fd5b600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b60006103e4827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610376565b600260209081526000928352604080842090915290825290205481565b808203828111156103e457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b808201828110156103e457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b610b5160005482610a61565b6000556040805182815290517fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9181900360200190a15056fea265627a7a7231582094d57254221665d2311a6769d57c65a91ce6f46d15da69ed03ba347d93e6df2664736f6c63430005100032

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

0000000000000000000000000511d4a08136031877ab33892f2fe81e945e85a6

-----Decoded View---------------
Arg [0] : _reserve (address): 0x0511D4A08136031877AB33892F2FE81e945e85A6

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000511d4a08136031877ab33892f2fe81e945e85a6


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.