ETH Price: $3,116.65 (-1.67%)

Token

Sturdy Token (STRDY)
 

Overview

Max Total Supply

100,000,000 STRDY

Holders

941

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
100 STRDY

Value
$0.00
0x383F42b5De515C564641f65f5da3BD8b4a35B4B4
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:
Token

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU AGPLv3 license
File 1 of 4 : Token.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.0;

import {ERC20} from "./lib/solmate/ERC20.sol";
import {RolesAuthority} from "./RolesAuthority.sol";

/* The purpose of this token is to temporarily be nontransferable except for special cases.
  This is done by role-based access control. The token implements its own authorisation logic (by inheriting from RolesAuthority). It points to itself as its authority.

  The owner is then able to define who can call what functions of the token, then make the function public at a later stage (at an extra cost of 1 SLOAD).
*/
contract Token is ERC20, RolesAuthority {
  // We pass all arguments to the ancestors except the authority argument which is the token itself.
  constructor(
    string memory _name,
    string memory _symbol,
    uint8 _decimals,
    address _owner
  ) ERC20(_name, _symbol, _decimals) RolesAuthority(_owner) {
    _mint(_owner, 100_000_000 * 1e18);
  }

  // `transfer` now `requiresAuth`.
  function transfer(address to, uint256 amount)
    public
    override
    requiresAuth
    returns (bool)
  {
    return super.transfer(to, amount);
  }

  // `transferFrom` now `requiresAuth`.
  function transferFrom(
    address from,
    address to,
    uint256 amount
  ) public override requiresAuth returns (bool) {
    return super.transferFrom(from, to, amount);
  }

  // `mint` is added to the external interface, and also `requiresAuth`
  function mint(address to, uint256 amount) external requiresAuth {
    _mint(to, amount);
  }

  // `burn` is added to the external interface
  function burn(uint256 amount) external {
    _burn(msg.sender, amount);
  }
}

File 2 of 4 : Auth.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.0;

/// @notice Modified `Auth.sol`, where the contract is its own `authority` there is no `target` to `canCall`.
/// @notice Provides a flexible and updatable auth pattern which is completely separate from application logic.
/// @author Modified from Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/auth/Auth.sol)
/// @author Modified from Dappsys (https://github.com/dapphub/ds-auth/blob/master/src/auth.sol)
abstract contract Auth {
    event OwnerUpdated(address indexed user, address indexed newOwner);

    address public owner;

    constructor(address _owner) {
        owner = _owner;

        emit OwnerUpdated(msg.sender, _owner);
    }

    modifier requiresAuth() virtual {
        require(isAuthorized(msg.sender, msg.sig), "UNAUTHORIZED");

        _;
    }

    function isAuthorized(address user, bytes4 functionSig) internal view virtual returns (bool) {
        return canCall(user, functionSig) || user == owner;
    }

    function setOwner(address newOwner) external virtual requiresAuth {
        owner = newOwner;

        emit OwnerUpdated(msg.sender, newOwner);
    }

    function canCall(
        address user,
        bytes4 functionSig
    ) public view virtual returns (bool);
}

File 3 of 4 : RolesAuthority.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.0;

import {Auth} from "./Auth.sol";

/// @notice Role based Authority that supports up to 256 roles, target is always this.
/// @author Modified from Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/auth/authorities/RolesAuthority.sol)
/// @author Modified from Dappsys (https://github.com/dapphub/ds-roles/blob/master/src/roles.sol)
contract RolesAuthority is Auth {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event UserRoleUpdated(address indexed user, uint8 indexed role, bool enabled);

    event PublicCapabilityUpdated(bytes4 indexed functionSig, bool enabled);

    event RoleCapabilityUpdated(uint8 indexed role, bytes4 indexed functionSig, bool enabled);

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(address _owner) Auth(_owner) {}

    /*//////////////////////////////////////////////////////////////
                            ROLE/USER STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(address => bytes32) public getUserRoles;

    mapping(bytes4 => bool) public isCapabilityPublic;

    mapping(bytes4 => bytes32) public getRolesWithCapability;

    function doesUserHaveRole(address user, uint8 role) public view virtual returns (bool) {
        return (uint256(getUserRoles[user]) >> role) & 1 != 0;
    }

    function doesRoleHaveCapability(
        uint8 role,
        bytes4 functionSig
    ) external view virtual returns (bool) {
        return (uint256(getRolesWithCapability[functionSig]) >> role) & 1 != 0;
    }

    /*//////////////////////////////////////////////////////////////
                           AUTHORIZATION LOGIC
    //////////////////////////////////////////////////////////////*/

    function canCall(
        address user,
        bytes4 functionSig
    ) public view virtual override returns (bool) {
        return
            isCapabilityPublic[functionSig] ||
            bytes32(0) != getUserRoles[user] & getRolesWithCapability[functionSig];
    }

    /*//////////////////////////////////////////////////////////////
                   ROLE CAPABILITY CONFIGURATION LOGIC
    //////////////////////////////////////////////////////////////*/

    function setPublicCapability(
        bytes4 functionSig,
        bool enabled
    ) external virtual requiresAuth {
        isCapabilityPublic[functionSig] = enabled;

        emit PublicCapabilityUpdated(functionSig, enabled);
    }

    function setRoleCapability(
        uint8 role,
        bytes4 functionSig,
        bool enabled
    ) external virtual requiresAuth {
        if (enabled) {
            getRolesWithCapability[functionSig] |= bytes32(1 << role);
        } else {
            getRolesWithCapability[functionSig] &= ~bytes32(1 << role);
        }

        emit RoleCapabilityUpdated(role, functionSig, enabled);
    }

    /*//////////////////////////////////////////////////////////////
                       USER ROLE ASSIGNMENT LOGIC
    //////////////////////////////////////////////////////////////*/

    function setUserRole(
        address user,
        uint8 role,
        bool enabled
    ) external virtual requiresAuth {
        if (enabled) {
            getUserRoles[user] |= bytes32(1 << role);
        } else {
            getUserRoles[user] &= ~bytes32(1 << role);
        }

        emit UserRoleUpdated(user, role, enabled);
    }
}

File 4 of 4 : ERC20.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.8.0;

/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
abstract contract ERC20 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 amount);

    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /*//////////////////////////////////////////////////////////////
                            METADATA STORAGE
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    uint8 public immutable decimals;

    /*//////////////////////////////////////////////////////////////
                              ERC20 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;

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

    /*//////////////////////////////////////////////////////////////
                            EIP-2612 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 internal immutable INITIAL_CHAIN_ID;

    bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;

    mapping(address => uint256) public nonces;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;

        INITIAL_CHAIN_ID = block.chainid;
        INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
    }

    /*//////////////////////////////////////////////////////////////
                               ERC20 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 amount) public virtual returns (bool) {
        allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    function transfer(address to, uint256 amount) public virtual returns (bool) {
        balanceOf[msg.sender] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(msg.sender, to, amount);

        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals.

        if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount;

        balanceOf[from] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(from, to, amount);

        return true;
    }

    /*//////////////////////////////////////////////////////////////
                             EIP-2612 LOGIC
    //////////////////////////////////////////////////////////////*/

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");

        // Unchecked because the only math done is incrementing
        // the owner's nonce which cannot realistically overflow.
        unchecked {
            address recoveredAddress = ecrecover(
                keccak256(
                    abi.encodePacked(
                        "\x19\x01",
                        DOMAIN_SEPARATOR(),
                        keccak256(
                            abi.encode(
                                keccak256(
                                    "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
                                ),
                                owner,
                                spender,
                                value,
                                nonces[owner]++,
                                deadline
                            )
                        )
                    )
                ),
                v,
                r,
                s
            );

            require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER");

            allowance[recoveredAddress][spender] = value;
        }

        emit Approval(owner, spender, value);
    }

    function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
        return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
    }

    function computeDomainSeparator() internal view virtual returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                    keccak256(bytes(name)),
                    keccak256("1"),
                    block.chainid,
                    address(this)
                )
            );
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 amount) internal virtual {
        totalSupply += amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(address(0), to, amount);
    }

    function _burn(address from, uint256 amount) internal virtual {
        balanceOf[from] -= amount;

        // Cannot underflow because a user's balance
        // will never be larger than the total supply.
        unchecked {
            totalSupply -= amount;
        }

        emit Transfer(from, address(0), amount);
    }
}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint8","name":"_decimals","type":"uint8"},{"internalType":"address","name":"_owner","type":"address"}],"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":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes4","name":"functionSig","type":"bytes4"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"PublicCapabilityUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"role","type":"uint8"},{"indexed":true,"internalType":"bytes4","name":"functionSig","type":"bytes4"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"RoleCapabilityUpdated","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":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint8","name":"role","type":"uint8"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"UserRoleUpdated","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"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":"amount","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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes4","name":"functionSig","type":"bytes4"}],"name":"canCall","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"role","type":"uint8"},{"internalType":"bytes4","name":"functionSig","type":"bytes4"}],"name":"doesRoleHaveCapability","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint8","name":"role","type":"uint8"}],"name":"doesUserHaveRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"name":"getRolesWithCapability","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"getUserRoles","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"name":"isCapabilityPublic","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"functionSig","type":"bytes4"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setPublicCapability","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"role","type":"uint8"},{"internalType":"bytes4","name":"functionSig","type":"bytes4"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setRoleCapability","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint8","name":"role","type":"uint8"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setUserRole","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":"amount","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":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60e06040523480156200001157600080fd5b506040516200187a3803806200187a83398101604081905262000034916200036e565b8080858585826000908051906020019062000051929190620001fb565b50815162000067906001906020850190620001fb565b5060ff81166080524660a0526200007d620000f2565b60c0525050600680546001600160a01b0319166001600160a01b03841690811790915560405190915033907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a350620000e89050816a52b7d2dcc80cd2e40000006200018e565b505050506200051a565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60006040516200012691906200044f565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b8060026000828254620001a29190620004f3565b90915550506001600160a01b0382166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b828054620002099062000412565b90600052602060002090601f0160209004810192826200022d576000855562000278565b82601f106200024857805160ff191683800117855562000278565b8280016001018555821562000278579182015b82811115620002785782518255916020019190600101906200025b565b50620002869291506200028a565b5090565b5b808211156200028657600081556001016200028b565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002c957600080fd5b81516001600160401b0380821115620002e657620002e6620002a1565b604051601f8301601f19908116603f01168101908282118183101715620003115762000311620002a1565b816040528381526020925086838588010111156200032e57600080fd5b600091505b8382101562000352578582018301518183018401529082019062000333565b83821115620003645760008385830101525b9695505050505050565b600080600080608085870312156200038557600080fd5b84516001600160401b03808211156200039d57600080fd5b620003ab88838901620002b7565b95506020870151915080821115620003c257600080fd5b50620003d187828801620002b7565b935050604085015160ff81168114620003e957600080fd5b60608601519092506001600160a01b03811681146200040757600080fd5b939692955090935050565b600181811c908216806200042757607f821691505b602082108114156200044957634e487b7160e01b600052602260045260246000fd5b50919050565b600080835481600182811c9150808316806200046c57607f831692505b60208084108214156200048d57634e487b7160e01b86526022600452602486fd5b818015620004a45760018114620004b657620004e5565b60ff19861689528489019650620004e5565b60008a81526020902060005b86811015620004dd5781548b820152908501908301620004c2565b505084890196505b509498975050505050505050565b600082198211156200051557634e487b7160e01b600052601160045260246000fd5b500190565b60805160a05160c0516113306200054a6000396000610714015260006106df0152600061024f01526113306000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c80634b5159da116100de57806395d89b4111610097578063dd62ed3e11610071578063dd62ed3e14610383578063e688747b146103ae578063ea7ca276146103e4578063ed0d0efb1461041b57600080fd5b806395d89b4114610355578063a9059cbb1461035d578063d505accf1461037057600080fd5b80634b5159da146102b157806367aff484146102c457806370a08231146102d75780637ecebe00146102f757806386bed3e0146103175780638da5cb5b1461032a57600080fd5b806318160ddd1161013057806318160ddd1461022e57806323b872dd14610237578063313ce5671461024a5780633644e5151461028357806340c10f191461028b57806342966c681461029e57600080fd5b806306a36aee1461017857806306fdde03146101ab578063095ea7b3146101c05780630bade8a4146101e35780630ea9b75b1461020657806313af40351461021b575b600080fd5b610198610186366004610eaf565b60076020526000908152604090205481565b6040519081526020015b60405180910390f35b6101b361043b565b6040516101a29190610eca565b6101d36101ce366004610f1f565b6104c9565b60405190151581526020016101a2565b6101d36101f1366004610f61565b60086020526000908152604090205460ff1681565b610219610214366004610f9d565b610535565b005b610219610229366004610eaf565b610616565b61019860025481565b6101d3610245366004610fe0565b610694565b6102717f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff90911681526020016101a2565b6101986106db565b610219610299366004610f1f565b610736565b6102196102ac36600461101c565b610776565b6102196102bf366004611035565b610783565b6102196102d2366004611068565b610815565b6101986102e5366004610eaf565b60036020526000908152604090205481565b610198610305366004610eaf565b60056020526000908152604090205481565b6101d3610325366004611094565b6108dd565b60065461033d906001600160a01b031681565b6040516001600160a01b0390911681526020016101a2565b6101b361093d565b6101d361036b366004610f1f565b61094a565b61021961037e3660046110be565b610988565b610198610391366004611128565b600460209081526000928352604080842090915290825290205481565b6101d36103bc366004611152565b6001600160e01b03191660009081526009602052604090205460ff919091161c600116151590565b6101d36103f236600461116e565b6001600160a01b0391909116600090815260076020526040902054600160ff9092161c16151590565b610198610429366004610f61565b60096020526000908152604090205481565b6000805461044890611198565b80601f016020809104026020016040519081016040528092919081815260200182805461047490611198565b80156104c15780601f10610496576101008083540402835291602001916104c1565b820191906000526020600020905b8154815290600101906020018083116104a457829003601f168201915b505050505081565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906105249086815260200190565b60405180910390a350600192915050565b61054b336000356001600160e01b031916610bcc565b6105705760405162461bcd60e51b8152600401610567906111d3565b60405180910390fd5b80156105a0576001600160e01b0319821660009081526009602052604090208054600160ff86161b1790556105c7565b6001600160e01b0319821660009081526009602052604090208054600160ff86161b191690555b816001600160e01b0319168360ff167fbfe16b2c35ce23dfd1ab0e7b5d086a10060c9b52d1574e1680c881b3b3a2b15183604051610609911515815260200190565b60405180910390a3505050565b61062c336000356001600160e01b031916610bcc565b6106485760405162461bcd60e51b8152600401610567906111d3565b600680546001600160a01b0319166001600160a01b03831690811790915560405133907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a350565b60006106ac336000356001600160e01b031916610bcc565b6106c85760405162461bcd60e51b8152600401610567906111d3565b6106d3848484610bf7565b949350505050565b60007f000000000000000000000000000000000000000000000000000000000000000046146107115761070c610cd7565b905090565b507f000000000000000000000000000000000000000000000000000000000000000090565b61074c336000356001600160e01b031916610bcc565b6107685760405162461bcd60e51b8152600401610567906111d3565b6107728282610d71565b5050565b6107803382610dcb565b50565b610799336000356001600160e01b031916610bcc565b6107b55760405162461bcd60e51b8152600401610567906111d3565b6001600160e01b03198216600081815260086020908152604091829020805460ff191685151590811790915591519182527f36d28126bef21a4f3765d7fcb7c45cead463ae4c41094ef3b771ede598544103910160405180910390a25050565b61082b336000356001600160e01b031916610bcc565b6108475760405162461bcd60e51b8152600401610567906111d3565b8015610876576001600160a01b03831660009081526007602052604090208054600160ff85161b17905561089c565b6001600160a01b03831660009081526007602052604090208054600160ff85161b191690555b8160ff16836001600160a01b03167f4c9bdd0c8e073eb5eda2250b18d8e5121ff27b62064fbeeeed4869bb99bc5bf283604051610609911515815260200190565b6001600160e01b0319811660009081526008602052604081205460ff168061093657506001600160e01b031982166000908152600960209081526040808320546001600160a01b03871684526007909252909120541615155b9392505050565b6001805461044890611198565b6000610962336000356001600160e01b031916610bcc565b61097e5760405162461bcd60e51b8152600401610567906111d3565b6109368383610e2d565b428410156109d85760405162461bcd60e51b815260206004820152601760248201527f5045524d49545f444541444c494e455f455850495245440000000000000000006044820152606401610567565b600060016109e46106db565b6001600160a01b038a811660008181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e08301909152805192019190912061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f198184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610af0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590610b265750876001600160a01b0316816001600160a01b0316145b610b635760405162461bcd60e51b815260206004820152600e60248201526d24a72b20a624a22fa9a4a3a722a960911b6044820152606401610567565b6001600160a01b0390811660009081526004602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b6000610bd883836108dd565b8061093657506006546001600160a01b03848116911614905092915050565b6001600160a01b03831660009081526004602090815260408083203384529091528120546000198114610c5357610c2e838261120f565b6001600160a01b03861660009081526004602090815260408083203384529091529020555b6001600160a01b03851660009081526003602052604081208054859290610c7b90849061120f565b90915550506001600160a01b03808516600081815260036020526040908190208054870190555190918716906000805160206112db83398151915290610cc49087815260200190565b60405180910390a3506001949350505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6000604051610d099190611226565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b8060026000828254610d8391906112c2565b90915550506001600160a01b0382166000818152600360209081526040808320805486019055518481526000805160206112db83398151915291015b60405180910390a35050565b6001600160a01b03821660009081526003602052604081208054839290610df390849061120f565b90915550506002805482900390556040518181526000906001600160a01b038416906000805160206112db83398151915290602001610dbf565b33600090815260036020526040812080548391908390610e4e90849061120f565b90915550506001600160a01b038316600081815260036020526040908190208054850190555133906000805160206112db833981519152906105249086815260200190565b80356001600160a01b0381168114610eaa57600080fd5b919050565b600060208284031215610ec157600080fd5b61093682610e93565b600060208083528351808285015260005b81811015610ef757858101830151858201604001528201610edb565b81811115610f09576000604083870101525b50601f01601f1916929092016040019392505050565b60008060408385031215610f3257600080fd5b610f3b83610e93565b946020939093013593505050565b80356001600160e01b031981168114610eaa57600080fd5b600060208284031215610f7357600080fd5b61093682610f49565b803560ff81168114610eaa57600080fd5b80358015158114610eaa57600080fd5b600080600060608486031215610fb257600080fd5b610fbb84610f7c565b9250610fc960208501610f49565b9150610fd760408501610f8d565b90509250925092565b600080600060608486031215610ff557600080fd5b610ffe84610e93565b925061100c60208501610e93565b9150604084013590509250925092565b60006020828403121561102e57600080fd5b5035919050565b6000806040838503121561104857600080fd5b61105183610f49565b915061105f60208401610f8d565b90509250929050565b60008060006060848603121561107d57600080fd5b61108684610e93565b9250610fc960208501610f7c565b600080604083850312156110a757600080fd5b6110b083610e93565b915061105f60208401610f49565b600080600080600080600060e0888a0312156110d957600080fd5b6110e288610e93565b96506110f060208901610e93565b9550604088013594506060880135935061110c60808901610f7c565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561113b57600080fd5b61114483610e93565b915061105f60208401610e93565b6000806040838503121561116557600080fd5b6110b083610f7c565b6000806040838503121561118157600080fd5b61118a83610e93565b915061105f60208401610f7c565b600181811c908216806111ac57607f821691505b602082108114156111cd57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015611221576112216111f9565b500390565b600080835481600182811c91508083168061124257607f831692505b602080841082141561126257634e487b7160e01b86526022600452602486fd5b8180156112765760018114611287576112b4565b60ff198616895284890196506112b4565b60008a81526020902060005b868110156112ac5781548b820152908501908301611293565b505084890196505b509498975050505050505050565b600082198211156112d5576112d56111f9565b50019056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212204c4b28d9049096d1e55a85c18c2af165e051517f2c0cc49444b7e9481c20fddf64736f6c634300080a0033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000048cc0719e3bf9561d861cb98e863fda0ceb07dbc000000000000000000000000000000000000000000000000000000000000000c53747572647920546f6b656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055354524459000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101735760003560e01c80634b5159da116100de57806395d89b4111610097578063dd62ed3e11610071578063dd62ed3e14610383578063e688747b146103ae578063ea7ca276146103e4578063ed0d0efb1461041b57600080fd5b806395d89b4114610355578063a9059cbb1461035d578063d505accf1461037057600080fd5b80634b5159da146102b157806367aff484146102c457806370a08231146102d75780637ecebe00146102f757806386bed3e0146103175780638da5cb5b1461032a57600080fd5b806318160ddd1161013057806318160ddd1461022e57806323b872dd14610237578063313ce5671461024a5780633644e5151461028357806340c10f191461028b57806342966c681461029e57600080fd5b806306a36aee1461017857806306fdde03146101ab578063095ea7b3146101c05780630bade8a4146101e35780630ea9b75b1461020657806313af40351461021b575b600080fd5b610198610186366004610eaf565b60076020526000908152604090205481565b6040519081526020015b60405180910390f35b6101b361043b565b6040516101a29190610eca565b6101d36101ce366004610f1f565b6104c9565b60405190151581526020016101a2565b6101d36101f1366004610f61565b60086020526000908152604090205460ff1681565b610219610214366004610f9d565b610535565b005b610219610229366004610eaf565b610616565b61019860025481565b6101d3610245366004610fe0565b610694565b6102717f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff90911681526020016101a2565b6101986106db565b610219610299366004610f1f565b610736565b6102196102ac36600461101c565b610776565b6102196102bf366004611035565b610783565b6102196102d2366004611068565b610815565b6101986102e5366004610eaf565b60036020526000908152604090205481565b610198610305366004610eaf565b60056020526000908152604090205481565b6101d3610325366004611094565b6108dd565b60065461033d906001600160a01b031681565b6040516001600160a01b0390911681526020016101a2565b6101b361093d565b6101d361036b366004610f1f565b61094a565b61021961037e3660046110be565b610988565b610198610391366004611128565b600460209081526000928352604080842090915290825290205481565b6101d36103bc366004611152565b6001600160e01b03191660009081526009602052604090205460ff919091161c600116151590565b6101d36103f236600461116e565b6001600160a01b0391909116600090815260076020526040902054600160ff9092161c16151590565b610198610429366004610f61565b60096020526000908152604090205481565b6000805461044890611198565b80601f016020809104026020016040519081016040528092919081815260200182805461047490611198565b80156104c15780601f10610496576101008083540402835291602001916104c1565b820191906000526020600020905b8154815290600101906020018083116104a457829003601f168201915b505050505081565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906105249086815260200190565b60405180910390a350600192915050565b61054b336000356001600160e01b031916610bcc565b6105705760405162461bcd60e51b8152600401610567906111d3565b60405180910390fd5b80156105a0576001600160e01b0319821660009081526009602052604090208054600160ff86161b1790556105c7565b6001600160e01b0319821660009081526009602052604090208054600160ff86161b191690555b816001600160e01b0319168360ff167fbfe16b2c35ce23dfd1ab0e7b5d086a10060c9b52d1574e1680c881b3b3a2b15183604051610609911515815260200190565b60405180910390a3505050565b61062c336000356001600160e01b031916610bcc565b6106485760405162461bcd60e51b8152600401610567906111d3565b600680546001600160a01b0319166001600160a01b03831690811790915560405133907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a350565b60006106ac336000356001600160e01b031916610bcc565b6106c85760405162461bcd60e51b8152600401610567906111d3565b6106d3848484610bf7565b949350505050565b60007f000000000000000000000000000000000000000000000000000000000000000146146107115761070c610cd7565b905090565b507fcb6a90d99be005bb2898a0790cc95915eecfeb3c12df6515f916b5f30a4d526990565b61074c336000356001600160e01b031916610bcc565b6107685760405162461bcd60e51b8152600401610567906111d3565b6107728282610d71565b5050565b6107803382610dcb565b50565b610799336000356001600160e01b031916610bcc565b6107b55760405162461bcd60e51b8152600401610567906111d3565b6001600160e01b03198216600081815260086020908152604091829020805460ff191685151590811790915591519182527f36d28126bef21a4f3765d7fcb7c45cead463ae4c41094ef3b771ede598544103910160405180910390a25050565b61082b336000356001600160e01b031916610bcc565b6108475760405162461bcd60e51b8152600401610567906111d3565b8015610876576001600160a01b03831660009081526007602052604090208054600160ff85161b17905561089c565b6001600160a01b03831660009081526007602052604090208054600160ff85161b191690555b8160ff16836001600160a01b03167f4c9bdd0c8e073eb5eda2250b18d8e5121ff27b62064fbeeeed4869bb99bc5bf283604051610609911515815260200190565b6001600160e01b0319811660009081526008602052604081205460ff168061093657506001600160e01b031982166000908152600960209081526040808320546001600160a01b03871684526007909252909120541615155b9392505050565b6001805461044890611198565b6000610962336000356001600160e01b031916610bcc565b61097e5760405162461bcd60e51b8152600401610567906111d3565b6109368383610e2d565b428410156109d85760405162461bcd60e51b815260206004820152601760248201527f5045524d49545f444541444c494e455f455850495245440000000000000000006044820152606401610567565b600060016109e46106db565b6001600160a01b038a811660008181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e08301909152805192019190912061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f198184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610af0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590610b265750876001600160a01b0316816001600160a01b0316145b610b635760405162461bcd60e51b815260206004820152600e60248201526d24a72b20a624a22fa9a4a3a722a960911b6044820152606401610567565b6001600160a01b0390811660009081526004602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b6000610bd883836108dd565b8061093657506006546001600160a01b03848116911614905092915050565b6001600160a01b03831660009081526004602090815260408083203384529091528120546000198114610c5357610c2e838261120f565b6001600160a01b03861660009081526004602090815260408083203384529091529020555b6001600160a01b03851660009081526003602052604081208054859290610c7b90849061120f565b90915550506001600160a01b03808516600081815260036020526040908190208054870190555190918716906000805160206112db83398151915290610cc49087815260200190565b60405180910390a3506001949350505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6000604051610d099190611226565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b8060026000828254610d8391906112c2565b90915550506001600160a01b0382166000818152600360209081526040808320805486019055518481526000805160206112db83398151915291015b60405180910390a35050565b6001600160a01b03821660009081526003602052604081208054839290610df390849061120f565b90915550506002805482900390556040518181526000906001600160a01b038416906000805160206112db83398151915290602001610dbf565b33600090815260036020526040812080548391908390610e4e90849061120f565b90915550506001600160a01b038316600081815260036020526040908190208054850190555133906000805160206112db833981519152906105249086815260200190565b80356001600160a01b0381168114610eaa57600080fd5b919050565b600060208284031215610ec157600080fd5b61093682610e93565b600060208083528351808285015260005b81811015610ef757858101830151858201604001528201610edb565b81811115610f09576000604083870101525b50601f01601f1916929092016040019392505050565b60008060408385031215610f3257600080fd5b610f3b83610e93565b946020939093013593505050565b80356001600160e01b031981168114610eaa57600080fd5b600060208284031215610f7357600080fd5b61093682610f49565b803560ff81168114610eaa57600080fd5b80358015158114610eaa57600080fd5b600080600060608486031215610fb257600080fd5b610fbb84610f7c565b9250610fc960208501610f49565b9150610fd760408501610f8d565b90509250925092565b600080600060608486031215610ff557600080fd5b610ffe84610e93565b925061100c60208501610e93565b9150604084013590509250925092565b60006020828403121561102e57600080fd5b5035919050565b6000806040838503121561104857600080fd5b61105183610f49565b915061105f60208401610f8d565b90509250929050565b60008060006060848603121561107d57600080fd5b61108684610e93565b9250610fc960208501610f7c565b600080604083850312156110a757600080fd5b6110b083610e93565b915061105f60208401610f49565b600080600080600080600060e0888a0312156110d957600080fd5b6110e288610e93565b96506110f060208901610e93565b9550604088013594506060880135935061110c60808901610f7c565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561113b57600080fd5b61114483610e93565b915061105f60208401610e93565b6000806040838503121561116557600080fd5b6110b083610f7c565b6000806040838503121561118157600080fd5b61118a83610e93565b915061105f60208401610f7c565b600181811c908216806111ac57607f821691505b602082108114156111cd57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015611221576112216111f9565b500390565b600080835481600182811c91508083168061124257607f831692505b602080841082141561126257634e487b7160e01b86526022600452602486fd5b8180156112765760018114611287576112b4565b60ff198616895284890196506112b4565b60008a81526020902060005b868110156112ac5781548b820152908501908301611293565b505084890196505b509498975050505050505050565b600082198211156112d5576112d56111f9565b50019056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212204c4b28d9049096d1e55a85c18c2af165e051517f2c0cc49444b7e9481c20fddf64736f6c634300080a0033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000048cc0719e3bf9561d861cb98e863fda0ceb07dbc000000000000000000000000000000000000000000000000000000000000000c53747572647920546f6b656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055354524459000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Sturdy Token
Arg [1] : _symbol (string): STRDY
Arg [2] : _decimals (uint8): 18
Arg [3] : _owner (address): 0x48Cc0719E3bF9561D861CB98E863fdA0CEB07Dbc

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 00000000000000000000000048cc0719e3bf9561d861cb98e863fda0ceb07dbc
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [5] : 53747572647920546f6b656e0000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [7] : 5354524459000000000000000000000000000000000000000000000000000000


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.