UNI

Ethereum ERC-20 Token

0x1f9840a85d5af5bf1d1762f925bdaddc4201f984

Solidity v0.5.16+commit.9c3226ce

Fungible token following the ERC-20 standard.

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

管理与风险

谁能修改规则?

Detected mintable controls from the verified ABI.

Mintable

近期治理

4437 privileged events loaded. 最新: DelegateVotesChanged at block #25,176,599.

概览

读取函数
19
写入函数
8
事件
5

读取函数

Block #25,177,561 · 44s ago
DELEGATION_TYPEHASH() view → 0xe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf

Returns the EIP-712 delegation struct typehash used to validate off-chain delegation signatures.✨ AI

返回值

名称 类型 描述
bytes32 The bytes32 EIP-712 typehash for the delegation struct, used when hashing and verifying signed delegation messages.✨ AI
DOMAIN_TYPEHASH() view → 0x8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866

Returns the EIP-712 DOMAIN_TYPEHASH used for signature domain separation.✨ AI

返回值

名称 类型 描述
bytes32 The bytes32 typehash for the EIP-712 domain used in permit and signature verification.✨ AI
PERMIT_TYPEHASH() view → 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9

Returns the EIP-712 PERMIT_TYPEHASH used to validate off-chain permit signatures.✨ AI

返回值

名称 类型 描述
bytes32 bytes32 hash representing the EIP-712 type hash for the permit struct used in signature verification✨ AI
allowance(account: address, spender: address) view

Get the number of tokens `spender` is approved to spend on behalf of `account`

参数

名称 类型 描述
account address The address of the account holding the funds
spender address The address of the account spending the funds

返回值

名称 类型 描述
uint256 The number of tokens approved
balanceOf(account: address) view

Get the number of tokens held by the `account`

参数

名称 类型 描述
account address The address of the account to get the balance of

返回值

名称 类型 描述
uint256 The number of tokens held
checkpoints(address, uint32) view

Return the checkpoint for an account at the given index, showing when it was recorded and the vote balance.✨ AI

参数

名称 类型 描述
address
uint32

返回值

名称 类型 描述
fromBlock uint32 fromBlock: Block number when this checkpoint was recorded.✨ AI
votes uint96 votes: Vote balance recorded at that checkpoint.✨ AI
decimals() view → 18

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

返回值

名称 类型 描述
uint8 The token's decimals as an unsigned 8-bit integer.✨ AI
delegates(address) view

Retrieve the address that a given account has delegated its voting power to.✨ AI

参数

名称 类型 描述
address

返回值

名称 类型 描述
address The address currently set as the delegate for the input account.✨ AI
getCurrentVotes(account: address) view

Gets the current votes balance for `account`

参数

名称 类型 描述
account address The address to get votes balance

返回值

名称 类型 描述
uint96 The number of current votes for `account`
getPriorVotes(account: address, blockNumber: uint256) view

Determine the prior number of votes for an account as of a block number

开发者: Block number must be a finalized block or else this function will revert to prevent misinformation.

参数

名称 类型 描述
account address The address of the account to check
blockNumber uint256 The block number to get the vote balance at

返回值

名称 类型 描述
uint96 The number of votes the account had as of the given block
minimumTimeBetweenMints() view → 31,536,000

Returns the minimum required time interval between successive mint operations.✨ AI

返回值

名称 类型 描述
uint32 Minimum time interval in seconds required between consecutive mints.✨ AI
mintCap() view → 2

Return the current mint cap as an 8-bit unsigned integer.✨ AI

返回值

名称 类型 描述
uint8 The current mint cap as an 8-bit unsigned integer (uint8).✨ AI
minter() view → 0x1a9c8182c09f50c8318d769245bea52c32be35bc

Returns the address that is authorized to mint new Uni tokens.✨ AI

返回值

名称 类型 描述
address The address currently set as the token minter, or the zero address if no minter is set.✨ AI
mintingAllowedAfter() view → 1,704,067,200

Returns the timestamp after which the contract allows minting of new tokens.✨ AI

返回值

名称 类型 描述
uint256 uint256 UNIX timestamp (seconds) indicating when minting is allowed✨ AI
name() view → Uniswap

Returns the token's name as a human-readable string.✨ AI

返回值

名称 类型 描述
string The token's name string (human-readable).✨ AI
nonces(address) view

Return the current permit nonce for the given owner address.✨ AI

开发者: Nonce increments after each successful permit call and prevents replay of off-chain signatures.✨ AI

参数

名称 类型 描述
address

返回值

名称 类型 描述
uint256 Current nonce (uint256) for the owner, used to validate and prevent replay of permit signatures.✨ AI
numCheckpoints(address) view

Returns the number of voting checkpoints for the given account.✨ AI

参数

名称 类型 描述
address

返回值

名称 类型 描述
uint32 uint32 count of voting checkpoints recorded for the account.✨ AI
symbol() view → UNI

Return the token symbol.✨ AI

返回值

名称 类型 描述
string The token symbol as a string (e.g., "UNI").✨ AI
totalSupply() view → 1,000,000,000 UNI

Returns the total number of tokens in existence.✨ AI

返回值

名称 类型 描述
uint256 The total token supply expressed in the token's smallest unit (according to decimals).✨ AI

写入函数

approve(spender: address, rawAmount: uint256) nonpayable

Approve `spender` to transfer up to `amount` from `src`

开发者: This will overwrite the approval amount for `spender` and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)

参数

名称 类型 描述
spender address The address of the account which may transfer tokens
rawAmount uint256 The number of tokens that are approved (2^256-1 means infinite)

返回值

名称 类型 描述
bool Whether or not the approval succeeded
delegate(delegatee: address) nonpayable

Delegate votes from `msg.sender` to `delegatee`

参数

名称 类型 描述
delegatee address The address to delegate votes to
delegateBySig(delegatee: address, nonce: uint256, expiry: uint256, v: uint8, r: bytes32, s: bytes32) nonpayable

Delegates votes from signatory to `delegatee`

参数

名称 类型 描述
delegatee address The address to delegate votes to
nonce uint256 The contract state required to match the signature
expiry uint256 The time at which to expire the signature
v uint8 The recovery byte of the signature
r bytes32 Half of the ECDSA signature pair
s bytes32 Half of the ECDSA signature pair
mint(dst: address, rawAmount: uint256) nonpayable

Mint new tokens

参数

名称 类型 描述
dst address The address of the destination account
rawAmount uint256 The number of tokens to be minted
permit(owner: address, spender: address, rawAmount: uint256, deadline: uint256, v: uint8, r: bytes32, s: bytes32) nonpayable

Triggers an approval from owner to spends

参数

名称 类型 描述
owner address The address to approve from
spender address The address to be approved
rawAmount uint256 The number of tokens that are approved (2^256-1 means infinite)
deadline uint256 The time at which to expire the signature
v uint8 The recovery byte of the signature
r bytes32 Half of the ECDSA signature pair
s bytes32 Half of the ECDSA signature pair
setMinter(minter_: address) nonpayable

Change the minter address

参数

名称 类型 描述
minter_ address The address of the new minter
transfer(dst: address, rawAmount: uint256) nonpayable

Transfer `amount` tokens from `msg.sender` to `dst`

参数

名称 类型 描述
dst address The address of the destination account
rawAmount uint256 The number of tokens to transfer

返回值

名称 类型 描述
bool Whether or not the transfer succeeded
transferFrom(src: address, dst: address, rawAmount: uint256) nonpayable

Transfer `amount` tokens from `src` to `dst`

参数

名称 类型 描述
src address The address of the source account
dst address The address of the destination account
rawAmount uint256 The number of tokens to transfer

返回值

名称 类型 描述
bool Whether or not the transfer succeeded

事件

Approval(owner: address, spender: address, amount: uint256)

The standard EIP-20 approval event

名称 类型 已索引 描述
owner address
spender address
amount uint256
DelegateChanged(delegator: address, fromDelegate: address, toDelegate: address)

An event thats emitted when an account changes its delegate

名称 类型 已索引 描述
delegator address
fromDelegate address
toDelegate address
DelegateVotesChanged(delegate: address, previousBalance: uint256, newBalance: uint256)

An event thats emitted when a delegate account's vote balance changes

名称 类型 已索引 描述
delegate address
previousBalance uint256
newBalance uint256
MinterChanged(minter: address, newMinter: address)

An event thats emitted when the minter address is changed

名称 类型 已索引 描述
minter address
newMinter address
Transfer(from: address, to: address, amount: uint256)

The standard EIP-20 transfer event

名称 类型 已索引 描述
from address
to address
amount uint256