ETH Price: $2,386.75 (-9.47%)

Token

DigitalReserveCurrency (DRC)

Overview

Max Total Supply

9,999,999,999,999,999,999,000,000,000,000,000,000,000,000,999,999,999,999,999,999,999,999,999,999 DRC

Holders

5

Transfers

-
0

Market

Price

$0.00 @ 0.000000 ETH

Onchain Market Cap

-

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 0 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
DigitalReserveCurrency

Compiler Version
v0.4.26+commit.4563c3fc

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Arbiscan.io on 2024-12-24
*/

contract EIP20Interface {
    /// total amount of tokens
    uint256 public totalSupply;

    /// @param _owner The address from which the balance will be retrieved
    /// @return The balance
    function balanceOf(address _owner) public view returns (uint256 balance);

    /// @notice send `_value` token to `_to` from `msg.sender`
    /// @param _to The address of the recipient
    /// @param _value The amount of token to be transferred
    /// @return Whether the transfer was successful or not
    function transfer(address _to, uint256 _value) public returns (bool success);

    /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
    /// @param _from The address of the sender
    /// @param _to The address of the recipient
    /// @param _value The amount of token to be transferred
    /// @return Whether the transfer was successful or not
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);

    /// @notice `msg.sender` approves `_spender` to spend `_value` tokens
    /// @param _spender The address of the account able to transfer the tokens
    /// @param _value The amount of tokens to be approved for transfer
    /// @return Whether the approval was successful or not
    function approve(address _spender, uint256 _value) public returns (bool success);

    /// @param _owner The address of the account owning tokens
    /// @param _spender The address of the account able to transfer the tokens
    /// @return Amount of remaining tokens allowed to spent
    function allowance(address _owner, address _spender) public view returns (uint256 remaining);

    // solhint-disable-next-line no-simple-event-func-name
    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}

pragma solidity ^0.4.26;

contract DigitalReserveCurrency is EIP20Interface {

    uint256 constant private MAX_UINT256 = (2** 256) - 1;
    mapping (address => uint256) public balances;
    mapping (address => mapping (address => uint256)) public allowed;

    string public name;                   
    uint8 public decimals;                
    string public symbol;                 

    constructor(
        uint256 _initialAmount,
        string _tokenName,
        uint8 _decimalUnits,
        string _tokenSymbol
    ) public {
        balances[msg.sender] = _initialAmount;               
        totalSupply = _initialAmount;                        
        name = _tokenName;                                   
        decimals = _decimalUnits;                            
        symbol = _tokenSymbol;                               
    }

    function transfer(address _to, uint256 _value) public returns (bool success) {
        require(balances[msg.sender] >= _value);
        balances[msg.sender] -= _value;
        balances[_to] += _value;
        emit Transfer(msg.sender, _to, _value); //solhint-disable-line indent, no-unused-vars
        return true;
    }

    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
        uint256 allowance = allowed[_from][msg.sender];
        require(balances[_from] >= _value && allowance >= _value);
        balances[_to] += _value;
        balances[_from] -= _value;
        if (allowance < MAX_UINT256) {
            allowed[_from][msg.sender] -= _value;
        }
        emit Transfer(_from, _to, _value); //solhint-disable-line indent, no-unused-vars
        return true;
    }

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

    function approve(address _spender, uint256 _value) public returns (bool success) {
        allowed[msg.sender][_spender] = _value;
        emit Approval(msg.sender, _spender, _value); //solhint-disable-line indent, no-unused-vars
        return true;
    }

    function allowance(address _owner, address _spender) public view returns (uint256 remaining) {
        return allowed[_owner][_spender];
    }

    mapping(address => uint256) public price;

    function setPrice(address asset, uint256 price_) external {
        price[asset] = price_;
    }
}

Contract Security Audit

Contract ABI

API
[{"constant":false,"inputs":[{"name":"asset","type":"address"},{"name":"price_","type":"uint256"}],"name":"setPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowed","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"price","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_initialAmount","type":"uint256"},{"name":"_tokenName","type":"string"},{"name":"_decimalUnits","type":"uint8"},{"name":"_tokenSymbol","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]

608060405234801561001057600080fd5b5060405161081038038061081083398101604090815281516020808401518385015160608601513360009081526001855295862085905594849055908501805193959094919391019161006891600391860190610095565b506004805460ff191660ff8416179055805161008b906005906020840190610095565b5050505050610130565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100d657805160ff1916838001178555610103565b82800160010185558215610103579182015b828111156101035782518255916020019190600101906100e8565b5061010f929150610113565b5090565b61012d91905b8082111561010f5760008155600101610119565b90565b6106d18061013f6000396000f3006080604052600436106100c35763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041662e4768b81146100c857806306fdde03146100ee578063095ea7b31461017857806318160ddd146101b057806323b872dd146101d757806327e235e314610201578063313ce567146102225780635c6581651461024d57806370a082311461027457806395d89b4114610295578063a9059cbb146102aa578063aea91078146102ce578063dd62ed3e146102ef575b600080fd5b3480156100d457600080fd5b506100ec600160a060020a0360043516602435610316565b005b3480156100fa57600080fd5b50610103610332565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013d578181015183820152602001610125565b50505050905090810190601f16801561016a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018457600080fd5b5061019c600160a060020a03600435166024356103c0565b604080519115158252519081900360200190f35b3480156101bc57600080fd5b506101c5610426565b60408051918252519081900360200190f35b3480156101e357600080fd5b5061019c600160a060020a036004358116906024351660443561042c565b34801561020d57600080fd5b506101c5600160a060020a0360043516610530565b34801561022e57600080fd5b50610237610542565b6040805160ff9092168252519081900360200190f35b34801561025957600080fd5b506101c5600160a060020a036004358116906024351661054b565b34801561028057600080fd5b506101c5600160a060020a0360043516610568565b3480156102a157600080fd5b50610103610583565b3480156102b657600080fd5b5061019c600160a060020a03600435166024356105de565b3480156102da57600080fd5b506101c5600160a060020a0360043516610668565b3480156102fb57600080fd5b506101c5600160a060020a036004358116906024351661067a565b600160a060020a03909116600090815260066020526040902055565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103b85780601f1061038d576101008083540402835291602001916103b8565b820191906000526020600020905b81548152906001019060200180831161039b57829003601f168201915b505050505081565b336000818152600260209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60005481565b600160a060020a03831660008181526002602090815260408083203384528252808320549383526001909152812054909190831180159061046d5750828110155b151561047857600080fd5b600160a060020a03808516600090815260016020526040808220805487019055918716815220805484900390556000198110156104da57600160a060020a03851660009081526002602090815260408083203384529091529020805484900390555b83600160a060020a031685600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3506001949350505050565b60016020526000908152604090205481565b60045460ff1681565b600260209081526000928352604080842090915290825290205481565b600160a060020a031660009081526001602052604090205490565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103b85780601f1061038d576101008083540402835291602001916103b8565b336000908152600160205260408120548211156105fa57600080fd5b33600081815260016020908152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b60066020526000908152604090205481565b600160a060020a039182166000908152600260209081526040808320939094168252919091522054905600a165627a7a7230582061792aaa3179fc5a0e922102604a66c5af77566a048c7d3ef513835165ed4fab00290005a8e89d75252446e0ec99971261072cf0810931d77052b434edea3fffffff0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000164469676974616c5265736572766543757272656e63790000000000000000000000000000000000000000000000000000000000000000000000000000000000034452430000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106100c35763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041662e4768b81146100c857806306fdde03146100ee578063095ea7b31461017857806318160ddd146101b057806323b872dd146101d757806327e235e314610201578063313ce567146102225780635c6581651461024d57806370a082311461027457806395d89b4114610295578063a9059cbb146102aa578063aea91078146102ce578063dd62ed3e146102ef575b600080fd5b3480156100d457600080fd5b506100ec600160a060020a0360043516602435610316565b005b3480156100fa57600080fd5b50610103610332565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013d578181015183820152602001610125565b50505050905090810190601f16801561016a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018457600080fd5b5061019c600160a060020a03600435166024356103c0565b604080519115158252519081900360200190f35b3480156101bc57600080fd5b506101c5610426565b60408051918252519081900360200190f35b3480156101e357600080fd5b5061019c600160a060020a036004358116906024351660443561042c565b34801561020d57600080fd5b506101c5600160a060020a0360043516610530565b34801561022e57600080fd5b50610237610542565b6040805160ff9092168252519081900360200190f35b34801561025957600080fd5b506101c5600160a060020a036004358116906024351661054b565b34801561028057600080fd5b506101c5600160a060020a0360043516610568565b3480156102a157600080fd5b50610103610583565b3480156102b657600080fd5b5061019c600160a060020a03600435166024356105de565b3480156102da57600080fd5b506101c5600160a060020a0360043516610668565b3480156102fb57600080fd5b506101c5600160a060020a036004358116906024351661067a565b600160a060020a03909116600090815260066020526040902055565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103b85780601f1061038d576101008083540402835291602001916103b8565b820191906000526020600020905b81548152906001019060200180831161039b57829003601f168201915b505050505081565b336000818152600260209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60005481565b600160a060020a03831660008181526002602090815260408083203384528252808320549383526001909152812054909190831180159061046d5750828110155b151561047857600080fd5b600160a060020a03808516600090815260016020526040808220805487019055918716815220805484900390556000198110156104da57600160a060020a03851660009081526002602090815260408083203384529091529020805484900390555b83600160a060020a031685600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3506001949350505050565b60016020526000908152604090205481565b60045460ff1681565b600260209081526000928352604080842090915290825290205481565b600160a060020a031660009081526001602052604090205490565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103b85780601f1061038d576101008083540402835291602001916103b8565b336000908152600160205260408120548211156105fa57600080fd5b33600081815260016020908152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b60066020526000908152604090205481565b600160a060020a039182166000908152600260209081526040808320939094168252919091522054905600a165627a7a7230582061792aaa3179fc5a0e922102604a66c5af77566a048c7d3ef513835165ed4fab0029

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

0005a8e89d75252446e0ec99971261072cf0810931d77052b434edea3fffffff0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000164469676974616c5265736572766543757272656e63790000000000000000000000000000000000000000000000000000000000000000000000000000000000034452430000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _initialAmount (uint256): 9999999999999999999000000000000000000000000999999999999999999999999999999
Arg [1] : _tokenName (string): DigitalReserveCurrency
Arg [2] : _decimalUnits (uint8): 0
Arg [3] : _tokenSymbol (string): DRC

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0005a8e89d75252446e0ec99971261072cf0810931d77052b434edea3fffffff
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000016
Arg [5] : 4469676974616c5265736572766543757272656e637900000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 4452430000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

1966:2403:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4268:98;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;4268:98:0;-1:-1:-1;;;;;4268:98:0;;;;;;;;;2208:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2208:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;2208:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3799:260;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3799:260:0;-1:-1:-1;;;;;3799:260:0;;;;;;;;;;;;;;;;;;;;;;;;;63:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;63:26:0;;;;;;;;;;;;;;;;;;;;3155:513;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3155:513:0;-1:-1:-1;;;;;3155:513:0;;;;;;;;;;;;2084:44;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2084:44:0;-1:-1:-1;;;;;2084:44:0;;;;;2252:21;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2252:21:0;;;;;;;;;;;;;;;;;;;;;;;2135:64;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2135:64:0;-1:-1:-1;;;;;2135:64:0;;;;;;;;;;3676:115;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3676:115:0;-1:-1:-1;;;;;3676:115:0;;;;;2296:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2296:20:0;;;;2820:327;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2820:327:0;-1:-1:-1;;;;;2820:327:0;;;;;;;4219:40;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;4219:40:0;-1:-1:-1;;;;;4219:40:0;;;;;4067:144;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;4067:144:0;-1:-1:-1;;;;;4067:144:0;;;;;;;;;;4268:98;-1:-1:-1;;;;;4337:12:0;;;;;;;:5;:12;;;;;:21;4268:98::o;2208:18::-;;;;;;;;;;;;;;;-1:-1:-1;;2208:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;3799:260::-;3899:10;3866:12;3891:19;;;:7;:19;;;;;;;;-1:-1:-1;;;;;3891:29:0;;;;;;;;;;;:38;;;3945;;;;;;;3866:12;;3891:29;;3899:10;;3945:38;;;;;;;;-1:-1:-1;4047:4:0;3799:260;;;;:::o;63:26::-;;;;:::o;3155:513::-;-1:-1:-1;;;;;3282:14:0;;3237:12;3282:14;;;:7;:14;;;;;;;;3297:10;3282:26;;;;;;;;3327:15;;;:8;:15;;;;;;3237:12;;3282:26;3327:25;-1:-1:-1;3327:25:0;;;:48;;;3369:6;3356:9;:19;;3327:48;3319:57;;;;;;;;-1:-1:-1;;;;;3387:13:0;;;;;;;:8;:13;;;;;;:23;;;;;;3421:15;;;;;;:25;;;;;;;-1:-1:-1;;3461:23:0;;3457:92;;;-1:-1:-1;;;;;3501:14:0;;;;;;:7;:14;;;;;;;;3516:10;3501:26;;;;;;;:36;;;;;;;3457:92;3580:3;-1:-1:-1;;;;;3564:28:0;3573:5;-1:-1:-1;;;;;3564:28:0;;3585:6;3564:28;;;;;;;;;;;;;;;;;;-1:-1:-1;3656:4:0;;3155:513;-1:-1:-1;;;;3155:513:0:o;2084:44::-;;;;;;;;;;;;;:::o;2252:21::-;;;;;;:::o;2135:64::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;3676:115::-;-1:-1:-1;;;;;3767:16:0;3732:15;3767:16;;;:8;:16;;;;;;;3676:115::o;2296:20::-;;;;;;;;;;;;;;;-1:-1:-1;;2296:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2820:327;2925:10;2883:12;2916:20;;;:8;:20;;;;;;:30;-1:-1:-1;2916:30:0;2908:39;;;;;;2967:10;2958:20;;;;:8;:20;;;;;;;;:30;;;;;;;-1:-1:-1;;;;;2999:13:0;;;;;;;;;:23;;;;;;3038:33;;;;;;;2999:13;;2967:10;3038:33;;;;;;;;;;;-1:-1:-1;3135:4:0;2820:327;;;;:::o;4219:40::-;;;;;;;;;;;;;:::o;4067:144::-;-1:-1:-1;;;;;4178:15:0;;;4141:17;4178:15;;;:7;:15;;;;;;;;:25;;;;;;;;;;;;;4067:144::o

Swarm Source

bzzr://61792aaa3179fc5a0e922102604a66c5af77566a048c7d3ef513835165ed4fab
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.