arc_dx
Version:
A platform for building DAOs
15 lines (10 loc) • 446 B
Markdown
[](../../generated_docs/globalConstraints/TokenCapGC.md)
*TokenCapGC* is a simple global constraint that limits the number of tokens that can be issued.
```
TokenCapGC gc = new TokenCapGC();
/* some where inside a scheme with relevent permissions */
bytes32 hash = gc.setParameters(contoller.nativeToken,100) /*limit DAO token issuance to 100*/
controller.addGlobalConstraint(gc,hash)
```