More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 47,364 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 21407899 | 7 days ago | IN | 0 ETH | 0.00041317 | ||||
Transfer | 21266875 | 27 days ago | IN | 0 ETH | 0.0011138 | ||||
Transfer | 21161553 | 42 days ago | IN | 0 ETH | 0.00057804 | ||||
Transfer | 21099554 | 50 days ago | IN | 0 ETH | 0.00027306 | ||||
Transfer | 20976029 | 68 days ago | IN | 0 ETH | 0.00049953 | ||||
Transfer | 20718272 | 104 days ago | IN | 0 ETH | 0.00014516 | ||||
Transfer | 20649228 | 113 days ago | IN | 0 ETH | 0.00006261 | ||||
Transfer | 20522690 | 131 days ago | IN | 0 ETH | 0.00008474 | ||||
Transfer | 20453283 | 141 days ago | IN | 0 ETH | 0.00005291 | ||||
Transfer | 20452838 | 141 days ago | IN | 0 ETH | 0.00005769 | ||||
Transfer | 20452838 | 141 days ago | IN | 0 ETH | 0.00005773 | ||||
Transfer | 20198111 | 176 days ago | IN | 0 ETH | 0.00011573 | ||||
Transfer | 20052545 | 197 days ago | IN | 0 ETH | 0.00022465 | ||||
Transfer | 19919308 | 215 days ago | IN | 0 ETH | 0.00042366 | ||||
Transfer | 19634109 | 255 days ago | IN | 0 ETH | 0.00077473 | ||||
Approve | 19590511 | 261 days ago | IN | 0 ETH | 0.00073903 | ||||
Transfer | 19581677 | 263 days ago | IN | 0 ETH | 0.001097 | ||||
Transfer | 19547645 | 267 days ago | IN | 0 ETH | 0.00188978 | ||||
Approve | 19464456 | 279 days ago | IN | 0 ETH | 0.00196246 | ||||
Transfer | 19441467 | 282 days ago | IN | 0 ETH | 0.00291162 | ||||
Approve | 19417376 | 286 days ago | IN | 0 ETH | 0.00141933 | ||||
Transfer | 19169610 | 320 days ago | IN | 0 ETH | 0.00202747 | ||||
Transfer | 19138335 | 325 days ago | IN | 0 ETH | 0.0009568 | ||||
Transfer | 18975098 | 348 days ago | IN | 0 ETH | 0.00106801 | ||||
Transfer | 18939893 | 353 days ago | IN | 0 ETH | 0.00076701 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x69AB1358...0EE048bbF The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
DSToken
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-07-19 */ pragma solidity ^0.4.24; contract DSNote { event LogNote( bytes4 indexed sig, address indexed guy, bytes32 indexed foo, bytes32 indexed bar, uint wad, bytes fax ) anonymous; modifier note { bytes32 foo; bytes32 bar; assembly { foo := calldataload(4) bar := calldataload(36) } emit LogNote(msg.sig, msg.sender, foo, bar, msg.value, msg.data); _; } } contract DSAuthority { function canCall(address src, address dst, bytes4 sig) public constant returns (bool); } contract DSAuthEvents { event LogSetAuthority (address indexed authority); event LogSetOwner (address indexed owner); } contract DSAuth is DSAuthEvents { DSAuthority public authority; address public owner; constructor() public { owner = msg.sender; emit LogSetOwner(msg.sender); } function setOwner(address owner_) public auth { require(owner_ != address(0)); owner = owner_; emit LogSetOwner(owner); } function setAuthority(DSAuthority authority_) public auth { authority = authority_; emit LogSetAuthority(authority); } modifier auth { assert(isAuthorized(msg.sender, msg.sig)); _; } modifier authorized(bytes4 sig) { assert(isAuthorized(msg.sender, sig)); _; } function isAuthorized(address src, bytes4 sig) internal view returns (bool) { if (src == address(this)) { return true; } else if (src == owner) { return true; } else if (authority == DSAuthority(0)) { return false; } else { return authority.canCall(src, this, sig); } } // function assert(bool x) internal pure{ // if (!x) revert(); // } } contract DSStop is DSAuth, DSNote { bool public stopped; modifier stoppable { assert (!stopped); _; } function stop() public auth note { stopped = true; } function start() public auth note { stopped = false; } } contract DSMath { /* standard uint256 functions */ function add(uint256 x, uint256 y) pure internal returns (uint256 z) { assert((z = x + y) >= x); } function sub(uint256 x, uint256 y) pure internal returns (uint256 z) { assert((z = x - y) <= x); } function mul(uint256 x, uint256 y) pure internal returns (uint256 z) { assert(y == 0 || (z = x * y) / y == x); } function div(uint256 x, uint256 y) pure internal returns (uint256 z) { z = x / y; } function min(uint256 x, uint256 y) pure internal returns (uint256 z) { return x <= y ? x : y; } function max(uint256 x, uint256 y) pure internal returns (uint256 z) { return x >= y ? x : y; } /* uint128 functions (h is for half) */ function hadd(uint128 x, uint128 y) pure internal returns (uint128 z) { assert((z = x + y) >= x); } function hsub(uint128 x, uint128 y) pure internal returns (uint128 z) { assert((z = x - y) <= x); } function hmul(uint128 x, uint128 y) pure internal returns (uint128 z) { assert(y == 0 || (z = x * y) / y == x); } function hdiv(uint128 x, uint128 y) pure internal returns (uint128 z) { z = x / y; } function hmin(uint128 x, uint128 y) pure internal returns (uint128 z) { return x <= y ? x : y; } function hmax(uint128 x, uint128 y) pure internal returns (uint128 z) { return x >= y ? x : y; } /* int256 functions */ function imin(int256 x, int256 y) pure internal returns (int256 z) { return x <= y ? x : y; } function imax(int256 x, int256 y) pure internal returns (int256 z) { return x >= y ? x : y; } /* WAD math */ uint128 constant WAD = 10 ** 18; function wadd(uint128 x, uint128 y) pure internal returns (uint128) { return hadd(x, y); } function wsub(uint128 x, uint128 y) pure internal returns (uint128) { return hsub(x, y); } function wmul(uint128 x, uint128 y) pure internal returns (uint128 z) { z = cast(add(mul(uint256(x), y), WAD/2) / WAD); } function wdiv(uint128 x, uint128 y) pure internal returns (uint128 z) { z = cast(add(mul(uint256(x), WAD), y/2) / y); } function wmin(uint128 x, uint128 y) pure internal returns (uint128) { return hmin(x, y); } function wmax(uint128 x, uint128 y) pure internal returns (uint128) { return hmax(x, y); } /* RAY math */ uint128 constant RAY = 10 ** 27; function radd(uint128 x, uint128 y) pure internal returns (uint128) { return hadd(x, y); } function rsub(uint128 x, uint128 y) pure internal returns (uint128) { return hsub(x, y); } function rmul(uint128 x, uint128 y) pure internal returns (uint128 z) { z = cast(add(mul(uint256(x), y), RAY/2) / RAY); } function rdiv(uint128 x, uint128 y) pure internal returns (uint128 z) { z = cast(add(mul(uint256(x), RAY), y/2) / y); } function rpow(uint128 x, uint64 n) pure internal returns (uint128 z) { // This famous algorithm is called "exponentiation by squaring" // and calculates x^n with x as fixed-point and n as regular unsigned. // // It's O(log n), instead of O(n) for naive repeated multiplication. // // These facts are why it works: // // If n is even, then x^n = (x^2)^(n/2). // If n is odd, then x^n = x * x^(n-1), // and applying the equation for even x gives // x^n = x * (x^2)^((n-1) / 2). // // Also, EVM division is flooring and // floor[(n-1) / 2] = floor[n / 2]. z = n % 2 != 0 ? x : RAY; for (n /= 2; n != 0; n /= 2) { x = rmul(x, x); if (n % 2 != 0) { z = rmul(z, x); } } } function rmin(uint128 x, uint128 y) pure internal returns (uint128) { return hmin(x, y); } function rmax(uint128 x, uint128 y) pure internal returns (uint128) { return hmax(x, y); } function cast(uint256 x) pure internal returns (uint128 z) { assert((z = uint128(x)) == x); } } contract ERC20 { function totalSupply() public view returns (uint supply); function balanceOf( address who ) public view returns (uint value); function allowance( address owner, address spender ) public view returns (uint _allowance); function transfer( address to, uint value) public returns (bool ok); function transferFrom( address from, address to, uint value) public returns (bool ok); function approve( address spender, uint value ) public returns (bool ok); event Transfer( address indexed from, address indexed to, uint value); event Approval( address indexed owner, address indexed spender, uint value); } contract DSTokenBase is ERC20, DSMath { uint256 _supply; mapping (address => uint256) _balances; mapping (address => mapping (address => uint256)) _approvals; constructor(uint256 supply) public{ _balances[msg.sender] = supply; _supply = supply; } function totalSupply() public view returns (uint256) { return _supply; } function balanceOf(address src) public view returns (uint256) { return _balances[src]; } function allowance(address src, address guy) public view returns (uint256) { return _approvals[src][guy]; } function transfer(address dst, uint wad) public returns (bool) { assert(_balances[msg.sender] >= wad); _balances[msg.sender] = sub(_balances[msg.sender], wad); _balances[dst] = add(_balances[dst], wad); emit Transfer(msg.sender, dst, wad); return true; } function transferFrom(address src, address dst, uint wad) public returns (bool) { assert(_balances[src] >= wad); assert(_approvals[src][msg.sender] >= wad); _approvals[src][msg.sender] = sub(_approvals[src][msg.sender], wad); _balances[src] = sub(_balances[src], wad); _balances[dst] = add(_balances[dst], wad); emit Transfer(src, dst, wad); return true; } function approve(address guy, uint256 wad) public returns (bool) { _approvals[msg.sender][guy] = wad; emit Approval(msg.sender, guy, wad); return true; } } contract DSToken is DSTokenBase(0), DSStop { bytes32 public symbol; bytes32 public name; uint256 public decimals = 18; // standard token precision. override to customize uint256 public MAX_MINT_NUMBER = 1000*10**26; constructor(bytes32 symbol_, bytes32 name_) public{ symbol = symbol_; name = name_; } function transfer(address dst, uint wad) public stoppable note returns (bool) { return super.transfer(dst, wad); } function transferFrom( address src, address dst, uint wad ) public stoppable note returns (bool) { return super.transferFrom(src, dst, wad); } function approve(address guy, uint wad) public stoppable note returns (bool) { return super.approve(guy, wad); } function push(address dst, uint128 wad) public returns (bool) { return transfer(dst, wad); } function pull(address src, uint128 wad) public returns (bool) { return transferFrom(src, msg.sender, wad); } function mint(uint128 wad) public auth stoppable note { assert (add(_supply, wad) <= MAX_MINT_NUMBER); _balances[msg.sender] = add(_balances[msg.sender], wad); _supply = add(_supply, wad); } function burn(uint128 wad) public auth stoppable note { _balances[msg.sender] = sub(_balances[msg.sender], wad); _supply = sub(_supply, wad); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"stop","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"guy","type":"address"},{"name":"wad","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"owner_","type":"address"}],"name":"setOwner","outputs":[],"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":"src","type":"address"},{"name":"dst","type":"address"},{"name":"wad","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"dst","type":"address"},{"name":"wad","type":"uint128"}],"name":"push","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"wad","type":"uint128"}],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"src","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stopped","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"authority_","type":"address"}],"name":"setAuthority","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"src","type":"address"},{"name":"wad","type":"uint128"}],"name":"pull","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"wad","type":"uint128"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"dst","type":"address"},{"name":"wad","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"start","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"authority","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"src","type":"address"},{"name":"guy","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MAX_MINT_NUMBER","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"symbol_","type":"bytes32"},{"name":"name_","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":true,"inputs":[{"indexed":true,"name":"sig","type":"bytes4"},{"indexed":true,"name":"guy","type":"address"},{"indexed":true,"name":"foo","type":"bytes32"},{"indexed":true,"name":"bar","type":"bytes32"},{"indexed":false,"name":"wad","type":"uint256"},{"indexed":false,"name":"fax","type":"bytes"}],"name":"LogNote","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"authority","type":"address"}],"name":"LogSetAuthority","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"}],"name":"LogSetOwner","type":"event"},{"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"}]
Deployed Bytecode
0x60806040526004361061011c5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461012157806307da68f514610148578063095ea7b31461015f57806313af40351461019757806318160ddd146101b857806323b872dd146101cd578063313ce567146101f75780633452f51d1461020c57806369d3e20e1461023957806370a082311461025a57806375f12b211461027b5780637a9e5e4b146102905780638402181f146102b15780638da5cb5b146102de57806390bc16931461030f57806395d89b4114610330578063a9059cbb14610345578063be9a655514610369578063bf7e214f1461037e578063dd62ed3e14610393578063f65d6d4f146103ba575b600080fd5b34801561012d57600080fd5b506101366103cf565b60408051918252519081900360200190f35b34801561015457600080fd5b5061015d6103d5565b005b34801561016b57600080fd5b50610183600160a060020a036004351660243561046c565b604080519115158252519081900360200190f35b3480156101a357600080fd5b5061015d600160a060020a03600435166104e7565b3480156101c457600080fd5b50610136610577565b3480156101d957600080fd5b50610183600160a060020a036004358116906024351660443561057d565b34801561020357600080fd5b506101366105fa565b34801561021857600080fd5b50610183600160a060020a03600435166001608060020a0360243516610600565b34801561024557600080fd5b5061015d6001608060020a036004351661061e565b34801561026657600080fd5b50610136600160a060020a0360043516610713565b34801561028757600080fd5b5061018361072e565b34801561029c57600080fd5b5061015d600160a060020a036004351661073e565b3480156102bd57600080fd5b50610183600160a060020a03600435166001608060020a03602435166107b9565b3480156102ea57600080fd5b506102f36107cf565b60408051600160a060020a039092168252519081900360200190f35b34801561031b57600080fd5b5061015d6001608060020a03600435166107de565b34801561033c57600080fd5b506101366108ab565b34801561035157600080fd5b50610183600160a060020a03600435166024356108b1565b34801561037557600080fd5b5061015d610923565b34801561038a57600080fd5b506102f36109b4565b34801561039f57600080fd5b50610136600160a060020a03600435811690602435166109c3565b3480156103c657600080fd5b506101366109ee565b60065481565b6103eb33600035600160e060020a0319166109f4565b15156103f357fe5b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a450506004805474ff0000000000000000000000000000000000000000191660a060020a179055565b60045460009060a060020a900460ff161561048357fe5b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a46104de8585610af8565b95945050505050565b6104fd33600035600160e060020a0319166109f4565b151561050557fe5b600160a060020a038116151561051a57600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290556040519116907fce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed9490600090a250565b60005490565b60045460009060a060020a900460ff161561059457fe5b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a46105f0868686610b5e565b9695505050505050565b60075481565b600061061583836001608060020a03166108b1565b90505b92915050565b61063433600035600160e060020a0319166109f4565b151561063c57fe5b60045460a060020a900460ff161561065057fe5b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a46008546106b9600054856001608060020a0316610ca6565b11156106c157fe5b336000908152600160205260409020546106e4906001608060020a038516610ca6565b336000908152600160205260408120919091555461070b906001608060020a038516610ca6565b600055505050565b600160a060020a031660009081526001602052604090205490565b60045460a060020a900460ff1681565b61075433600035600160e060020a0319166109f4565b151561075c57fe5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290556040519116907f1abebea81bfa2637f28358c371278fb15ede7ea8dd28d2e03b112ff6d936ada490600090a250565b60006106158333846001608060020a031661057d565b600454600160a060020a031681565b6107f433600035600160e060020a0319166109f4565b15156107fc57fe5b60045460a060020a900460ff161561081057fe5b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a433600090815260016020526040902054610884906001608060020a038516610cb3565b336000908152600160205260408120919091555461070b906001608060020a038516610cb3565b60055481565b60045460009060a060020a900460ff16156108c857fe5b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a46104de8585610cc0565b61093933600035600160e060020a0319166109f4565b151561094157fe5b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a450506004805474ff000000000000000000000000000000000000000019169055565b600354600160a060020a031681565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60085481565b6000600160a060020a038316301415610a0f57506001610618565b600454600160a060020a0384811691161415610a2d57506001610618565b600354600160a060020a03161515610a4757506000610618565b600354604080517fb7009613000000000000000000000000000000000000000000000000000000008152600160a060020a038681166004830152306024830152600160e060020a0319861660448301529151919092169163b70096139160648083019260209291908290030181600087803b158015610ac557600080fd5b505af1158015610ad9573d6000803e3d6000fd5b505050506040513d6020811015610aef57600080fd5b50519050610618565b336000818152600260209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b600160a060020a038316600090815260016020526040812054821115610b8057fe5b600160a060020a0384166000908152600260209081526040808320338452909152902054821115610bad57fe5b600160a060020a0384166000908152600260209081526040808320338452909152902054610bdb9083610cb3565b600160a060020a038516600081815260026020908152604080832033845282528083209490945591815260019091522054610c169083610cb3565b600160a060020a038086166000908152600160205260408082209390935590851681522054610c459083610ca6565b600160a060020a0380851660008181526001602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b8082018281101561061857fe5b8082038281111561061857fe5b33600090815260016020526040812054821115610cd957fe5b33600090815260016020526040902054610cf39083610cb3565b3360009081526001602052604080822092909255600160a060020a03851681522054610d1f9083610ca6565b600160a060020a0384166000818152600160209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3506001929150505600a165627a7a7230582015823210a219b8ebfccca24237a7e0a6d4daa77acdb0b4dd0b2b2b06ca8106d20029
Swarm Source
bzzr://15823210a219b8ebfccca24237a7e0a6d4daa77acdb0b4dd0b2b2b06ca8106d2
Loading...
Loading
Loading...
Loading
OVERVIEW
A Decentralized Blockchain NetworkLoading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.