Steer Protocol
Module Deep DivesAsset Layer

SampleStablecoin

Minimal token primitive for mint/burn paths in the sample architecture.

What It Does

SampleStablecoin is a minimal ERC-20 used by the collateral workflow.

It exposes:

  • setMinter(address,bool) for owner-managed minter authorization
  • mint(address,uint256) for authorized minters only
  • redeem(uint256) for self-burn by token holders

Design intent: keep token mechanics narrow while policy decisions remain in manager and risk modules.

Runtime Behavior

  • owner updates mint authority via setMinter
  • unauthorized mint attempts revert with UnauthorizedMinter
  • redemptions burn caller balance and emit Redeemed
  • minter changes emit MinterUpdated
  1. Deploy SampleStablecoin with an admin owner.
  2. Authorize CollateralManager as minter (and avoid broad multi-minter setups unless required).
  3. Monitor MinterUpdated and Redeemed events as supply-control telemetry.

Key Invariants

  • mint authority is explicit and revocable
  • redemption path cannot burn more than caller balance
  • policy and oracle logic do not live in token internals

Source

On this page