Skip to content

[study] (2h) Vault ERC-20 share mechanics — mint/burn, composability, no-transfer-hook #104

@ozpool

Description

@ozpool

Goal

Understand PRISM's share model and its composability implications.

Time estimate

2h (single focused session)

Prerequisites

Study plan (in order)

  1. [25 min] PRISM_PRD_v1.0.html §Day 2 Vault Core + Share Mechanics
  2. [25 min] Solmate ERC-20 implementation used by PRISM
  3. [25 min] No transfer hook = shares are composable; downstream protocols can accept them as collateral, trade them, etc.
  4. [25 min] Mint/burn invariants: mint on deposit, burn on withdraw; MIN_SHARES burn on first deposit
  5. [20 min] Write outcomes from memory

Total: 120 min

After studying, you can

  • Describe mint/burn invariants
  • Explain the no-transfer-hook decision and its composability gains
  • Articulate what downstream protocols can do with vault shares
  • Reason about 4626 compatibility tradeoffs

Tradeoff prompt for the architectural review

Should PRISM add an ERC-4626-compatible single-asset variant?

References

  • PRISM_PRD_v1.0.html §Day 2
  • Solmate ERC20.sol

Metadata

Metadata

Assignees

Labels

priority:p2-polishNice-to-have / polishstatus:readyScoped and ready to pick uptype:studyArchitecture study / research issue

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions