Skip to content

DD — Dollar Day

DD is the protocol's inference credit. 1 DD = $1 of inference on a supported platform (Venice today).

  • Standard: ERC-20, 18 decimals, Burnable, Permit, Pausable
  • Symbol: DD
  • Issuance: Minted by DDMinter when you lock DIEM
  • Burn: Burned in DailyAuction.settle() when you win, or in DailyAuction.buyLeftover() when you buy leftover capacity, or voluntarily by any holder.

How you get DD

When you lock N DIEM until maturity:

DD minted = N × floor(seconds_to_maturity / 86400)
            (with a minimum of N × 1 if maturity is sub-day)

This represents your share of the inference that your N staked DIEM would generate between now and maturity. You receive all of it upfront at lock time — you don't have to wait for the inference days to accrue.

Why upfront and not streamed? Because DD becomes immediately tradeable. You can sell it to a heavy user who needs inference right now, while you sit on the principal claim (PT20 or PT721) waiting for maturity.

How you spend DD

Through the daily auction:

bid(platform, ddAmount, kaiBid)
  • ddAmount is the dollar amount of inference you want to receive (≥ 1 DD).
  • kaiBid is your KAI premium, paid separately (≥ 0.01 KAI).

If you win, your DD is burned at settlement, you receive a Venice API key scoped to ddAmount, and you spend that inference on Venice's API during the following 24 hours.

You can also buyLeftover(platform, day, ddAmount) post-settle to scoop up any capacity the auction didn't fill. The fee is ddAmount of DD plus a proportional KAI charge (ddAmount × kaiPerDD[platform] / 1e18), both burned.

Why DD has a fixed dollar value

DD is denominated in dollars by design. The protocol guarantees that 1 DD exchanged through the auction wins exactly $1 of inference on the underlying platform (Venice's X402 settlement is dollar-denominated).

This makes DD a clean inference primitive: a tradeable, transferable claim on a perishable but completely fungible service.

Secondary market

DD is a standard ERC-20. You can:

  • Pool it against USDC or DIEM on a DEX.
  • Lend it against PT20 or DIEM as collateral on permissionless lending markets.
  • Donate it (burn()) — burning DD outside the auction simply removes it from supply with no benefit, so don't do that by accident.

The natural price of DD on a DEX will track the market value of a future day of inference access on Venice, which may be above or below $1 depending on demand.

Mint authority

Only allowlisted DDMinter contracts can mint DD. Adding or removing a minter requires a 7-day timelocked proposal — this closes the most leveraged owner-abuse path (a compromised owner can't instantly add their EOA as a minter and inflate the supply).

Pause

The owner can pause() and unpause() DD. While paused, mint is blocked but transfers and burns still work — users can always exit positions even during a pause.

The pause is intended for one purpose: stopping fresh issuance if a critical bug is discovered in the Locker or DDMinter logic, while letting existing DD holders continue trading and bidding.

Released under the MIT License.