MKR

Ethereum ERC-20 Token 浏览链

0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2

Solidity v0.4.18+commit.9cf6e910

Fungible token following the ERC-20 standard.

🤖
通过你的 AI 查询此合约
引用: mkr-eth 0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2
示例提示词: "Tell me the current state of mkr-eth"
还没有接入 AI?→ mcp.smarts.md · 浏览链

管理与风险

谁能修改规则?

Block #25,493,689

Detected mintable and ownable controls from the verified ABI.

Mintable Ownable

当前控制

Owner
0x0000000000000000000000000000000000000000 (无)

概览

读取函数
9
写入函数
16
事件
7

读取函数

Block #25,493,689 · 31s ago
name() view → 0x4d616b6572000000000000000000000000000000000000000000000000000000

Returns the token's name as a fixed-size 32-byte value.✨ AI

返回值

名称 类型 描述
bytes32 bytes32: Token name encoded as a 32-byte value; UTF-8 bytes are right-padded with zero bytes if shorter.✨ AI
totalSupply() view → 90,160.41 MKR

Returns the total number of tokens in existence.✨ AI

返回值

名称 类型 描述
uint256 Total token supply as a uint256 representing all tokens currently issued.✨ AI
decimals() view → 18

Returns the number of decimal places the token uses.✨ AI

返回值

名称 类型 描述
uint256 Number of decimal places used by the token (uint256).✨ AI
balanceOf(src: address) view

Returns the token balance for the specified address.✨ AI

参数

名称 类型 描述
src address Address whose token balance will be queried.✨ AI

返回值

名称 类型 描述
uint256 The token balance (uint256) held by the address.✨ AI
stopped() view → false

Indicates whether the token contract is currently stopped.✨ AI

返回值

名称 类型 描述
bool True if the contract is stopped (pausing transfers and restricted operations); otherwise false.✨ AI
owner() view → 0x0000000000000000000000000000000000000000

Return the address that currently owns and controls the token contract.✨ AI

返回值

名称 类型 描述
address The address of the account with ownership rights over the token contract.✨ AI
symbol() view → 0x4d4b520000000000000000000000000000000000000000000000000000000000

Returns the token's symbol.✨ AI

返回值

名称 类型 描述
bytes32 bytes32 value containing the token symbol encoded as ASCII in a bytes32 word, right-padded with zero bytes.✨ AI
authority() view → 0x6eeb68b2c7a918f36b78e2db80dcf279236ddfb8

Returns the address that currently has authority over the token.✨ AI

返回值

名称 类型 描述
address The authority address that controls privileged token operations such as administrative actions or policy changes.✨ AI
allowance(src: address, guy: address) view

Returns the remaining number of tokens that 'guy' is allowed to transfer from 'src'.✨ AI

参数

名称 类型 描述
src address The token owner address.✨ AI
guy address The spender address whose allowance is queried.✨ AI

返回值

名称 类型 描述
uint256 The allowance amount (uint256) representing how many tokens 'guy' may still spend from 'src'.✨ AI

写入函数

stop() nonpayable

Pauses token transfers and other state-changing actions.✨ AI

开发者: Only callable by the owner or an authorized account; sets a stopped flag that blocks transfers until start() is called.✨ AI
approve(guy: address, wad: uint256) nonpayable

Approve an address to spend tokens from your account via transferFrom.✨ AI

参数

名称 类型 描述
guy address Address approved to spend tokens on the caller's behalf.✨ AI
wad uint256

返回值

名称 类型 描述
bool True if the approval succeeded, otherwise false.✨ AI
setOwner(owner_: address) nonpayable

Sets the contract owner to the specified address.✨ AI

参数

名称 类型 描述
owner_ address Address to become the new owner of the token contract.✨ AI
transferFrom(src: address, dst: address, wad: uint256) nonpayable

Transfer wad tokens from src to dst using the caller's allowance, returning true on success.✨ AI

参数

名称 类型 描述
src address Address to transfer tokens from.✨ AI
dst address Address to receive the tokens.✨ AI
wad uint256 Amount of tokens to transfer (in smallest token units).✨ AI

返回值

名称 类型 描述
bool True if the transfer completed successfully.✨ AI
mint(guy: address, wad: uint256) nonpayable

Mint tokens and credit them to the caller's balance.✨ AI

参数

名称 类型 描述
guy address
wad uint256 Amount of tokens, in the token's base units, to create and add to the caller.✨ AI
burn(wad: uint256) nonpayable

Burns tokens from an account, reducing the account balance and total supply.✨ AI

参数

名称 类型 描述
wad uint256 Amount of tokens to burn, expressed in the token's smallest unit.✨ AI
setName(name_: bytes32) nonpayable

Set the token's name to the provided bytes32 value.✨ AI

参数

名称 类型 描述
name_ bytes32 New token name encoded as a 32-byte (bytes32) value.✨ AI
setAuthority(authority_: address) nonpayable

Sets the contract's authority address to a new address.✨ AI

参数

名称 类型 描述
authority_ address New authority address that will control privileged actions.✨ AI
burn(guy: address, wad: uint256) nonpayable

Burns tokens from an account, reducing the account balance and total supply.✨ AI

参数

名称 类型 描述
guy address Address whose tokens will be burned.✨ AI
wad uint256 Amount of tokens to burn, expressed in the token's smallest unit.✨ AI
mint(wad: uint256) nonpayable

Mint tokens and credit them to the caller's balance.✨ AI

参数

名称 类型 描述
wad uint256 Amount of tokens, in the token's base units, to create and add to the caller.✨ AI
transfer(dst: address, wad: uint256) nonpayable

Transfer wad tokens from the caller to the dst address.✨ AI

参数

名称 类型 描述
dst address Recipient address.✨ AI
wad uint256 Token amount to transfer, in the token's smallest units.✨ AI

返回值

名称 类型 描述
bool True if the transfer succeeded, false otherwise.✨ AI
push(dst: address, wad: uint256) nonpayable

Transfer wad tokens from the caller's balance to dst.✨ AI

参数

名称 类型 描述
dst address Recipient address to receive the tokens.✨ AI
wad uint256 Number of tokens to transfer, expressed in the token's smallest unit.✨ AI
move(src: address, dst: address, wad: uint256) nonpayable

Transfer wad tokens from src to dst, updating balances.✨ AI

参数

名称 类型 描述
src address Address to debit the tokens from.✨ AI
dst address Address to credit the tokens to.✨ AI
wad uint256 Amount of tokens to transfer, in the token's smallest unit.✨ AI
start() nonpayable

Start the token to enable transfers and allow normal token operations.✨ AI

approve(guy: address) nonpayable

Approve an address to spend tokens from your account via transferFrom.✨ AI

参数

名称 类型 描述
guy address Address approved to spend tokens on the caller's behalf.✨ AI

返回值

名称 类型 描述
bool True if the approval succeeded, otherwise false.✨ AI
pull(src: address, wad: uint256) nonpayable

Pull wad tokens from src into the caller's balance using the caller's allowance.✨ AI

参数

名称 类型 描述
src address Address to pull tokens from; must have approved the caller.✨ AI
wad uint256 Amount of tokens to transfer, expressed in the token's smallest unit.✨ AI

事件

Mint(guy: address, wad: uint256)
名称 类型 已索引 描述
guy address
wad uint256
Burn(guy: address, wad: uint256)
名称 类型 已索引 描述
guy address
wad uint256
LogSetAuthority(authority: address)
名称 类型 已索引 描述
authority address
LogSetOwner(owner: address)
名称 类型 已索引 描述
owner address
LogNote(sig: bytes4, guy: address, foo: bytes32, bar: bytes32, wad: uint256, fax: bytes)
名称 类型 已索引 描述
sig bytes4
guy address
foo bytes32
bar bytes32
wad uint256
fax bytes
Transfer(from: address, to: address, value: uint256)
名称 类型 已索引 描述
from address
to address
value uint256
Approval(owner: address, spender: address, value: uint256)
名称 类型 已索引 描述
owner address
spender address
value uint256