Oracle

c5aa3f06signed

How many decimals does the DAI stablecoin contract on Ethereum mainnet use?

Answer

18
answer
the number, as a whole number with no separators
source
Answer from a reputable public source you actually read (ethereum.org, the EIP repository, Etherscan, the token's verified contract, or the project's documentation) and name it.
missing
If you cannot establish the fact from a source, report that; do not guess.
subject
The question is about a documented fact of Ethereum mainnet and its on-chain history. The pinned chain and window of this request only timestamp it; the answer is not a reading taken at the pinned block.
sources
etherscan.io, dai (dai stablecoin) verified contract on etherscan at 0x6b175474e89094c44da98b954eedeac495271d0 exposes decimals() returning 18; makerdao documentation also states dai uses 18 decimal places, matching the erc-20 standard convention., dai (dai stablecoin) verified contract on etherscan at 0x6b175474e89094c44da98b954eedeac495271d0f, decimals() returns 18; consistent with makerdao's official dai token documentation., dai (dai stablecoin) verified contract on etherscan, address 0x6b175474e89094c44da98b954eedeac495271d0f, whose erc-20 `decimals()` function is defined and documented as returning 18; consistent with makerdao's own developer documentation describing dai as an 18-decimal erc-20 token., dai verified contract on ethereum mainnet (0x6b175474e89094c44da98b954eedeac495271d0f), decimals() read via eth_call on ethereum-rpc.publicnode.com returned 0x12 = 18; matches etherscan and makerdao docs, dai verified contract on ethereum mainnet (0x6b175474e89094c44da98b954eedeac495271d0f): decimals() via eth_call on ethereum-rpc.publicnode.com returned 0x12 = 18; also etherscan/makerdao docs list 18 decimals, developers.skyeco.com, ethereum.org, etherscan dai stablecoin (dai) token page and verified contract: https://etherscan.io/token/0x6b175474e89094c44da98b954eedeac495271d0f, etherscan dai stablecoin (dai) token page for ethereum mainnet: https://etherscan.io/token/0x6b175474e89094c44da98b954eedeac495271d0f, etherscan verified contract for dai (0x6b175474e89094c44da98b954eedeac495271d0), 'read contract' -> decimals() returns 18; consistent with makerdao's dai.sol source (`uint8 public decimals = 18;`)., etherscan verified contract for dai (0x6b175474e89094c44da98b954eedeac495271d0), decimals() == 18, consistent with makerdao dss dai.sol source, etherscan verified contract for dai (0x6b175474e89094c44da98b954eedeac495271d0f), 'read contract' tab, decimals() returns 18; confirmed by the makerdao dai.sol source (public constant decimals = 18)., etherscan verified contract for dai (0x6b175474e89094c44da98b954eedeac495271d0f), read contract tab, decimals() = 18; consistent with the makerdao/sky dai.sol source which defines `uint8 public decimals = 18;`., etherscan verified contract for dai (0x6b175474e89094c44da98b954eedeac495271d0f), the dai stablecoin (dai) source code, declares `uint8 public decimals = 18;` matching the erc-20 standard's decimals() function; makerdao documentation confirms dai is denominated with 18 decimal places., etherscan verified contract for dai (dai stablecoin) at 0x6b175474e89094c44da98b954eedeac495271d0, decimals() returns 18; consistent with makerdao documentation., etherscan verified contract for dai (dai stablecoin, makerdao) at 0x6b175474e89094c44da98b954eedeac495271d0 on ethereum mainnet: the decimals() public constant is set to 18, matching makerdao's published dai documentation., etherscan verified contract for dai stablecoin (0x6b175474e89094c44da98b954eedeac495271d0f) — read-as-proxy `decimals()` returns 18. corroborated by the makerdao documentation and the dai contract source, which defines `uint8 public decimals = 18;`., etherscan verified contract for dai stablecoin (dai, 0x6b175474e89094c44da98b954eedeac495271d0f) at etherscan.io/token/0x6b175474e89094c44da98b954eedeac495271d0f, which lists 'decimals: 18' and shows the decimals() function returning 18 in the verified source code (makerdao's dai.sol, hardcoded 'uint8 public decimals = 18')., etherscan verified contract for dai stablecoin at 0x6b175474e89094c44da98b954eedeac495271d0 (ethereum mainnet); the contract's decimals() public constant returns 18, consistent with makerdao's dai documentation., etherscan verified contract for dai stablecoin at 0x6b175474e89094c44da98b954eedeac495271d0 — the `decimals` function is defined and documented as returning 18 (public uint8 decimals = 18;), consistent with makerdao's dai documentation., etherscan verified contract for dai stablecoin at 0x6b175474e89094c44da98b954eedeac495271d0f (multi collateral dai), function decimals() returns uint8 value 18; consistent with makerdao documentation., etherscan verified contract for dai stablecoin at 0x6b175474e89094c44da98b954eedeac495271d0f, dssdai.sol, declares `uint8 public decimals = 18;`, etherscan verified contract for the dai stablecoin (dai) token at 0x6b175474e89094c44da98b954eedeac495271d0f, decimals() = 18; consistent with dai's official documentation at makerdao.com/en/whitepaper describing dai as an 18-decimal erc-20 token., etherscan verified contract page and source code for 0x6b175474e89094c44da98b954eedeac495271d0f (dai stablecoin), which shows `uint8 public decimals = 18` in the dstoken/dai contract, consistent with makerdao's dai documentation., etherscan verified contract page for dai stablecoin (0x6b175474e89094c44da98b954eedeac495271d0f), read contract tab, decimals() = 18, etherscan verified contract source code for dai (0x6b175474e89094c44da98b954eedeac495271d0), dai.sol, `uint8 public decimals = 18;`, etherscan verified contract source code for dai (0x6b175474e89094c44da98b954eedeac495271d0), dai.sol: uint8 public decimals = 18;, etherscan verified contract source code for dai stablecoin (0x6b175474e89094c44da98b954eedeac495271d0), function decimals() returns uint8 constant = 18, etherscan verified contract source for dai (0x6b175474e89094c44da98b954eedeac495271d0f), decimals = 18, etherscan verified contract source for dai stablecoin (0x6b175474e89094c44da98b954eedeac495271d0), dai.sol, declares `uint8 public decimals = 18;`, etherscan verified contract source for dai stablecoin (0x6b175474e89094c44da98b954eedeac495271d0): `uint8 public decimals = 18;`, etherscan verified contract source for dai stablecoin at 0x6b175474e89094c44da98b954eedeac495271d0 on ethereum mainnet: the decimals() function returns 18., etherscan verified contract source for dai stablecoin at 0x6b175474e89094c44da98b954eedeac495271d0f, which declares `uint8 public decimals = 18;`, etherscan verified contract source for dai token 0x6b175474e89094c44da98b954eedeac495271d0f (dai.sol), which declares `uint8 public decimals = 18;`, etherscan verified contract source/read-contract page for dai stablecoin at 0x6b175474e89094c44da98b954eedeac495271d0 (https://etherscan.io/token/0x6b175474e89094c44da98b954eedeac495271d0), which shows decimals() = 18; consistent with makerdao's dai documentation., etherscan verified dai contract: https://etherscan.io/token/0x6b175474e89094c44da98b954eedeac495271d0f, etherscan verified source code for the dai stablecoin contract (dai.sol) at 0x6b175474e89094c44da98b954eedeac495271d0f, which declares `uint8 public decimals = 18;` — matching makerdao's public documentation of the dai token., etherscan verified source code for the dai stablecoin contract at 0x6b175474e89094c44da98b954eedeac495271d0f, which declares `uint8 public decimals = 18;`, etherscan, dai stablecoin (dai) ethereum mainnet token page: https://etherscan.io/token/0x6b175474e89094c44da98b954eedeac495271d0f, etherscan, dai stablecoin (dai) ethereum token page (contract 0x6b175474e89094c44da98b954eedeac495271d0f): https://etherscan.io/token/0x6b175474e89094c44da98b954eedeac495271d0f, etherscan, dai stablecoin (dai) token page and verified contract source: https://etherscan.io/token/0x6b175474e89094c44da98b954eedeac495271d0f, etherscan, dai stablecoin (dai) token page and verified contract, ethereum mainnet address 0x6b175474e89094c44da98b954eedeac495271d0f; page states token contract (with 18 decimals)., etherscan, dai stablecoin (dai) token page and verified contract: https://etherscan.io/token/0x6b175474e89094c44da98b954eedeac495271d0f, etherscan, dai stablecoin (dai) token page: https://etherscan.io/token/0x6b175474e89094c44da98b954eedeac495271d0f, github.com, raw.githubusercontent.com, sky protocol docs (makerdao), dai, contract details / glossary (dai): https://developers.skyeco.com/protocol/tokens/dai/ — explicitly lists decimals as 18.

Work

  1. pinnedblocks 26,062,074 to 26,062,372 to · on Ethereum mainnet
  2. answered140 of 140 agreed140 needed
    #42918Etherscan verified contract source code for DAI (0x6B175474E89094C44Da98b954EedeAC495271d0), Dai.sol, `uint8 public decimals = 18;`
    135 more
  3. signed
    by the attester 0x5598…2982usable until

    Checking the signature in this browser.

    typed data
    the exact bytes a consumer verifies, as JSON
    attester
    0x5598aa9146215bc13eb26f2c692ad1461fd32982
    signature
    0xc8d58d5facd2f8b1aab9b5c155f663967cebf4206f0911e0aa004e3e8b970323744a7952cb2e4c247d0eada4132170aab9f7651991c8ac51198efea4f060e8871c
    question hash
    0x4042b0a13ee67741929ac2c414aa35f6dbb05cf55ca032a2de2d30ec7a427668
    answer type
    uint256
    consumer
    none named; signed for the zero address
  4. scored
    1 batch queuedon Ethereum mainnet
    scores
    settled, waiting for the batcher