Blockwell

DSToken

ERC20

This contract is an ERC20 token.

Name DSToken
Symbol MKR
Decimals 18
Total Supply 1,005,577 MKR

About link description

Maker is a smart contract platform on the Ethereum chain that backs and stabilizes the value of stablecoin DAI through a dynamic system of Collateralized Debt Positions (CDP), autonomous feedback mechanisms, and appropriately incentivized external actors. MKR tokens are created or destroyed in accordance with price fluctuations of the DAI coin in order to keep it as close to $1 USD as possible, and is part of a fully inspectable system on the Ethereum blockchain. MKR tokens are also used to pay transaction fees on the Maker system, and provides holders with voting rights within Maker’s continuous approval voting system.

Stats

Public Functions 19
Event Types 7
Code Size 15,513 bytes

Approval Event

Parameters help
owner
address help
spender
address help
value
uint help

Burn Event

Parameters help
guy
address help
wad
uint help

LogNote Event

Parameters help
sig
bytes4 help
guy
address help
foo
bytes32 help
bar
bytes32 help
wad
uint help
fax
bytes help

LogSetAuthority Event

Parameters help
authority
address help

LogSetOwner Event

Parameters help
owner
address help

Mint Event

Parameters help
guy
address help
wad
uint help

Transfer Event

Parameters help
from
address help
to
address help
value
uint help

Functions Expand All Collapse All

setOwner keyboard_arrow_up

Parameters help

Name Type
owner_
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

auth checks for the following:
null
Source Code
    function setOwner(address owner_)
        public
        auth
    {
        owner = owner_;
        LogSetOwner(owner);
    }

setAuthority keyboard_arrow_up

Parameters help

Name Type
authority_
DSAuthority help

Properties

Visibility help public
Mutability help transaction

Modifiers help

auth checks for the following:
null
Source Code
    function setAuthority(DSAuthority authority_)
        public
        auth
    {
        authority = authority_;
        LogSetAuthority(authority);
    }

stop keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Modifiers help

auth checks for the following:
null
note checks for the following:
Source Code
    function stop() public auth note {
        stopped = true;
    }

start keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Modifiers help

auth checks for the following:
null
note checks for the following:
Source Code
    function start() public auth note {
        stopped = false;
    }

totalSupply keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view
Source Code
    function totalSupply() public view returns (uint) {
        return _supply;
    }

balanceOf keyboard_arrow_up

Parameters help

Name Type
src
address help

Properties

Visibility help public
Mutability help view
Source Code
    function balanceOf(address src) public view returns (uint) {
        return _balances[src];
    }

allowance keyboard_arrow_up

Parameters help

Name Type
src
address help
guy
address help

Properties

Visibility help public
Mutability help view
Source Code
    function allowance(address src, address guy) public view returns (uint) {
        return _approvals[src][guy];
    }

transfer keyboard_arrow_up

Parameters help

Name Type
dst
address help
wad
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function transfer(address dst, uint wad) public returns (bool) {
        return transferFrom(msg.sender, dst, wad);
    }

transferFrom keyboard_arrow_up

Parameters help

Name Type
src
address help
dst
address help
wad
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
    function transferFrom(address src, address dst, uint wad)
        public
        stoppable
        returns (bool)
    {
        if (src != msg.sender && _approvals[src][msg.sender] != uint(-1)) {
            _approvals[src][msg.sender] = sub(_approvals[src][msg.sender], wad);
        }

        _balances[src] = sub(_balances[src], wad);
        _balances[dst] = add(_balances[dst], wad);

        Transfer(src, dst, wad);

        return true;
    }

approve keyboard_arrow_up

Parameters help

Name Type
guy
address help
wad
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
    function approve(address guy, uint wad) public stoppable returns (bool) {
        return super.approve(guy, wad);
    }

approve keyboard_arrow_up

Parameters help

Name Type
guy
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
    function approve(address guy) public stoppable returns (bool) {
        return super.approve(guy, uint(-1));
    }

push keyboard_arrow_up

Parameters help

Name Type
dst
address help
wad
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function push(address dst, uint wad) public {
        transferFrom(msg.sender, dst, wad);
    }

pull keyboard_arrow_up

Parameters help

Name Type
src
address help
wad
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function pull(address src, uint wad) public {
        transferFrom(src, msg.sender, wad);
    }

move keyboard_arrow_up

Parameters help

Name Type
src
address help
dst
address help
wad
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function move(address src, address dst, uint wad) public {
        transferFrom(src, dst, wad);
    }

mint keyboard_arrow_up

Parameters help

Name Type
wad
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function mint(uint wad) public {
        mint(msg.sender, wad);
    }

burn keyboard_arrow_up

Parameters help

Name Type
wad
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function burn(uint wad) public {
        burn(msg.sender, wad);
    }

mint keyboard_arrow_up

Parameters help

Name Type
guy
address help
wad
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
    function mint(address guy, uint wad) public auth stoppable {
        _balances[guy] = add(_balances[guy], wad);
        _supply = add(_supply, wad);
        Mint(guy, wad);
    }

burn keyboard_arrow_up

Parameters help

Name Type
guy
address help
wad
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
    function burn(address guy, uint wad) public auth stoppable {
        if (guy != msg.sender && _approvals[guy][msg.sender] != uint(-1)) {
            _approvals[guy][msg.sender] = sub(_approvals[guy][msg.sender], wad);
        }

        _balances[guy] = sub(_balances[guy], wad);
        _supply = sub(_supply, wad);
        Burn(guy, wad);
    }

setName keyboard_arrow_up

Parameters help

Name Type
name_
bytes32 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

auth checks for the following:
null
Source Code
    function setName(bytes32 name_) public auth {
        name = name_;
    }