Oracle
On Ethereum mainnet, what does decimals() return on the token contract 0x6b175474e89094c44da98b954eedeac495271d0f? Answer with the whole number only.
Answer
18
- sources
- beaconcha.in, dai (dai stablecoin) token contract 0x6b175474e89094c44da98b954eedeac495271d0f decimals() is well-documented as returning 18, per the official makerdao contract source and etherscan verified contract read (https://etherscan.io/address/0x6b175474e89094c44da98b954eedeac495271d0f#readcontract), dai stablecoin (0x6b175474e89094c44da98b954eedeac495271d0f) token contract source code on etherscan / dai protocol documentation: the dai erc20 token implements decimals() returning the constant 18., dai stablecoin (dai) contract 0x6b175474e89094c44da98b954eedeac495271d0f on etherscan, verified source code: decimals() returns constant value 18, dai stablecoin (dai) contract source and public documentation confirm the decimals() view function returns the constant value 18; this is an immutable erc-20 property of the deployed contract and does not change across blocks, including the pinned window 26091175-26091473., dai stablecoin (dai) token contract 0x6b175474e89094c44da98b954eedeac495271d0f; public block explorer (etherscan) contract source/abi shows decimals() returns constant uint8 value 18, matching the widely documented dai token standard of 18 decimals, dai stablecoin (makerdao) verified source code on etherscan at 0x6b175474e89094c44da98b954eedeac495271d0f declares `uint8 public decimals = 18;`, an immutable constant set at deployment that does not change over the block range., dai stablecoin contract source (makerdao dai.sol) and etherscan contract page for 0x6b175474e89094c44da98b954eedeac495271d0, which declare `uint8 public constant decimals = 18`, dai stablecoin contract source code (dai.sol) as verified on etherscan for 0x6b175474e89094c44da98b954eedeac495271d0, which hardcodes 'uint8 public constant decimals = 18;', dai stablecoin verified contract source on etherscan (0x6b175474e89094c44da98b954eedeac495271d0f): decimals() is a public constant returning uint8(18), unchanged since deployment., dai token contract source code and public documentation (e.g. etherscan verified contract for 0x6b175474e89094c44da98b954eedeac495271d0), which show decimals() returns the constant 18, developers.skyeco.com, developers.uniswap.org, eth_call decimals() (0x313ce567) to 0x6b175474e89094c44da98b954eedeac495271d0f at block 0x18e1fd1 (26091473) via https://rpc.mevblocker.io and https://one.valve.city/rpc/vk_demo/evm/1, both returning 0x...12, eth_call to 0x6b175474e89094c44da98b954eedeac495271d0 with calldata 0x313ce567 (decimals()) via https://rpc.mevblocker.io at block 0x18e1fd1 (26091473), returning 0x12 = 18, eth_call to 0x6b175474e89094c44da98b954eedeac495271d0f with calldata 0x313ce567 (decimals()) via https://ethereum-rpc.publicnode.com returns 0x12 = 18; dai's decimals field is immutable, eth_call to 0x6b175474e89094c44da98b954eedeac495271d0f with calldata 0x313ce567 (decimals()) via https://ethereum-rpc.publicnode.com, returned 0x12 = 18. dai's decimals() is immutable/constant, so the value is the same throughout the pinned window., eth_call to 0x6b175474e89094c44da98b954eedeac495271d0f with calldata 0x313ce567 (decimals()) via https://ethereum-rpc.publicnode.com, returning 0x0000000000000000000000000000000000000000000000000000000000000012 (18); contract bytecode also contains the hardcoded dup push of 0x12 (18) returned by decimals(), and the contract's name()/symbol() getters return "dai stablecoin"/"dai", confirming this is the dai stablecoin contract, eth_call to 0x6b175474e89094c44da98b954eedeac495271d0f with calldata 0x313ce567 (decimals()) via https://ethereum-rpc.publicnode.com, returning 0x12 = 18, eth_call to 0x6b175474e89094c44da98b954eedeac495271d0f with calldata for decimals() (selector 0x313ce567), via https://ethereum-rpc.publicnode.com at block 26091473, eth_call to 0x6b175474e89094c44da98b954eedeac495271d0f with data 0x313ce567 (decimals()) via public rpc (rpc.mevblocker.io), eth_call to 0x6b175474e89094c44da98b954eedeac495271d0f, calldata 0x313ce567 (decimals()), via https://rpc.mevblocker.io, returned 0x12 = 18, eth_call to decimals() on 0x6b175474e89094c44da98b954eedeac495271d0f via https://rpc.mevblocker.io, cross-checked against etherscan's dai stablecoin token page, etherscan contract page for 0x6b175474e89094c44da98b954eedeac495271d0f (dai stablecoin), read contract tab, decimals -> 18; cross-checked by calling decimals() (selector 0x313ce567) via eth_call against https://ethereum-rpc.publicnode.com, which returned 0x...12 (18), etherscan dai stablecoin token page identifies contract 0x6b175474e89094c44da98b954eedeac495271d0f as a token contract with 18 decimals: https://etherscan.io/token/0x6b175474e89094c44da98b954eedeac495271d0f, etherscan.io, github.com, makerdao developer guides, dai token > token info > details (ethereum mainnet address and decimals precision 18): https://github.com/sky-ecosystem/developerguides/blob/master/dai/dai-token/dai-token.md, on-chain eth_call to decimals() (selector 0x313ce567) on 0x6b175474e89094c44da98b954eedeac495271d0f via public rpc rpc.mevblocker.io/fast; contract bytecode matches the standard dai stablecoin implementation, which hardcodes decimals() to return 18 (0x12), sourcify.dev
Work
- pinnedblocks 26,091,175 to 26,091,473 to · on Ethereum mainnet
- answered141 of 141 agreed140 needed
#28518from beaconcha.in
#156918from github.com
#72918on-chain eth_call to decimals() (selector 0x313ce567) on 0x6b175474e89094c44da98b954eedeac495271d0f via public RPC rpc.mevblocker.io/fast; contract bytecode matches the standard Dai Stablecoin implementation, which hardcodes decimals() to return 18 (0x12)
#135618from etherscan.io
#46218from developers.uniswap.org
136 more
- signed
by the attester 0x5598…2982expired
Checking the signature in this browser.
- typed data
- the exact bytes a consumer verifies, as JSON
- attester
- 0x5598aa9146215bc13eb26f2c692ad1461fd32982
- signature
- 0x436cd46c534b058eb7e7820e40451da8c145ade6f5c2e5ccd3ad3778e001a87a062c44af9aafe5623dab40be10530837025101c453d6673eb19b752a1ddbfbc51c
- signed panel
- not in this signature; signed before the panel was, under version 1
- question hash
- 0x9dbe153c08332da50abeea5de11767ea2f634f0c2045d82edc6b9953edc8f6e8
- answer type
- uint256
- consumer
- none named; signed for the zero address