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
Events (7) keyboard_arrow_up
Functions
setOwner keyboard_arrow_up
setAuthority keyboard_arrow_up
stop keyboard_arrow_up
start keyboard_arrow_up
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
allowance keyboard_arrow_up
transfer keyboard_arrow_up
transferFrom keyboard_arrow_up
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
Source Code
function approve(address guy, uint wad) public stoppable returns (bool) {
return super.approve(guy, wad);
}
approve keyboard_arrow_up
push keyboard_arrow_up
pull keyboard_arrow_up
move keyboard_arrow_up
mint keyboard_arrow_up
burn keyboard_arrow_up
mint keyboard_arrow_up
Modifiers help
auth checks for the following:
null
stoppable checks for the following:
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
Modifiers help
auth checks for the following:
null
stoppable checks for the following:
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);
}