Skip to content

VDB-11: docs: add Supply Cap glossary entry#366

Draft
trumpgpt-bot wants to merge 1 commit into
mainfrom
bot/VDB-11-add-supply-cap-glossary-entry-to-venus-protocol-docs
Draft

VDB-11: docs: add Supply Cap glossary entry#366
trumpgpt-bot wants to merge 1 commit into
mainfrom
bot/VDB-11-add-supply-cap-glossary-entry-to-venus-protocol-docs

Conversation

@trumpgpt-bot

Copy link
Copy Markdown

Adds a new Getting Started → Glossary page (getting-started/glossary.md) with the protocol's first glossary entry, Supply Cap:

  • Definition: the maximum total amount of an asset that can be supplied to a given market.
  • What it does: new supply reverts once the cap is reached; existing positions/withdrawals are unaffected; a cap of 0 disables new supply entirely.
  • Why Venus uses it: risk-management lever bounding per-asset exposure and limiting blast radius, with dynamic adjustment via Risk Oracles / Risk Stewards.
  • Cross-links to risk/risk-oracle-and-risk-stewards.md.

Also registers the page in SUMMARY.md under Getting Started (after FAQ).

Tests: npx remark lint (the repo's format:check config) passes with no issues on both changed files. Documentation-only change; no code impact.


Opened by the Venus dev bot. Review required; the bot cannot merge.

Add a Getting Started glossary page with a definition of supply cap —
what it does (cap enforcement, revert on new supply, cap=0 disables
minting) and why Venus uses it (exposure management, risk reduction,
dynamic adjustment via Risk Oracles / Risk Stewards). Register the new
page in SUMMARY.md under Getting Started.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@trumpgpt-bot trumpgpt-bot left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean docs-only PR. The key factual claim — that supplyCap == 0 disables new supply — is verified correct: PolicyFacet.sol:40 has require(supplyCap != 0, "market supply cap is 0"), and ComptrollerStorage.sol:218 NatSpec reads "Defaults to zero which corresponds to minting notAllowed." Cross-link to risk/risk-oracle-and-risk-stewards.md resolves correctly (file exists). SUMMARY.md placement and ###-level heading style both match the existing faq.md convention. Two small improvements noted below.


**What it does**

The supply cap limits how much of an asset the protocol will accept as supply (minted into vTokens). Once a market's total supply reaches its cap, any new supply transaction for that asset reverts. The restriction applies only to new supply — existing positions are not affected, and suppliers can still withdraw or interact with their funds as usual. A supply cap of `0` disables new supply for that market entirely.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[minor] The statement is accurate but omits an important nuance: 0 is also the default state for every newly listed market (ComptrollerStorage.sol:218 NatSpec: "Defaults to zero which corresponds to minting notAllowed"). As written, readers may think setting a cap to 0 is an active governance action to shut down an existing market; in practice it means governance must set a positive cap before any supply is accepted at all. Suggest: "A supply cap of 0 — the default for a newly listed market — prevents all new supply; governance must set a positive cap to open the market to suppliers."


### Supply Cap

A **supply cap** is the maximum total amount of an asset that can be supplied to a given market. Each market has its own cap, set per asset.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] "set per asset" is redundant with "each market" (one market = one asset in Venus), and is slightly inaccurate for Isolated Pools where the same asset can appear in multiple markets with independent caps. Suggest dropping the phrase: "A supply cap is the maximum total amount of an asset that can be supplied to a given market. Each market has its own independently configured cap."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant