MINTLY — SMART CONTRACT TEMPLATES

This document provides a detailed overview of all token smart contract templates available in Mintly. Each template is designed for a specific use case and follows a transparent, immutable, and non-custodial design.

Standard Template

1. Overview

The Standard template is a basic ERC-20 token with no additional management logic. It is designed for simple and secure token issuance with a fixed total supply that is created once at deployment.

The contract is based on OpenZeppelin ERC20 and Ownable and fully supports proxy clones via EIP-1167.

2. Core Functionality

No additional control or management features are included.

3. Token Creation Logic

The init function can only be executed once.

4. Ownership Model

5. Limitations

This template does not support:

6. Typical Use Cases

7. Risk & Responsibility Notes

8. Summary

The Standard template is the safest and simplest option:

Mintable Template

1. Overview

Mintable is an ERC-20 token that supports additional token issuance after deployment. This template extends the basic ERC-20 standard by adding a mint function that is available only to the contract owner.

The contract is based on OpenZeppelin ERC20 and Ownable and supports proxy clones using the EIP-1167 standard.

2. Core Functionality

The Mintable template includes standard ERC-20 functionality along with controlled token issuance:

3. Token Creation Logic

During initialization (init):

Initialization can only be performed once.

4. Minting Logic

After deployment, the contract owner can issue new tokens:

There is no built-in maximum supply cap.

5. Ownership Model

6. Limitations

The Mintable template does not support:

Supply control is entirely based on trust in the contract owner.

7. Typical Use Cases

The Mintable template is suitable for:

8. Risk & Responsibility Notes

9. Summary

Mintable is a flexible ERC-20 token with controlled issuance:

Mint + Burn Template

1. Overview

Mint + Burn is an ERC-20 token with a flexible supply model that allows both increasing and decreasing the total supply over time.

The contract owner can mint new tokens, while any token holder can burn (destroy) their own tokens voluntarily.

The template is based on OpenZeppelin ERC20 and Ownable and is fully compatible with EIP-1167 proxy clones.

2. Core Functionality

The Mint + Burn template combines two key supply management mechanisms:

3. Token Creation Logic

During initialization (init):

The init function can only be executed once.

4. Minting Logic

After deployment, the contract owner can issue new tokens:

5. Burning Logic

Any token holder can reduce the total supply:

Burning is a fully voluntary and irreversible action.

6. Ownership Model

7. Limitations

The Mint + Burn template does not support:

Supply changes are performed only through manual mint and burn actions.

8. Typical Use Cases

The Mint + Burn template is suitable for:

9. Risk & Responsibility Notes

10. Summary

Mint + Burn is a flexible ERC-20 template with dual supply control:

Tax (Safe) Template

1. Overview

Tax (Safe) is an ERC-20 token with a built-in transfer fee (tax) mechanism. The tax is applied only when interacting with the token owner and is sent to a dedicated tax wallet.

The template is implemented using OpenZeppelin ERC20 (v5.x) and supports EIP-1167 proxy clones.

2. Core Functionality

This template extends the standard ERC-20 with:

Regular transfers between users are not taxed.

3. Token Creation Logic

During initialization (init):

The init function can be executed only once.

4. Tax Logic (How Fees Work)

The tax is calculated on each token transfer according to the direction of the transfer:

5. Tax Parameters

Tax values are stored in basis points:

Administrative safety limits:

These limits are hardcoded in the contract and cannot be exceeded.

6. Tax Wallet

7. Mint / Burn Behavior

The contract does not include automatic burn or tax redistribution mechanisms.

8. Ownership Model

9. Limitations

The Tax (Safe) template does not support:

Taxes depend solely on the transfer direction relative to the owner address.

10. Typical Use Cases

The Tax (Safe) template is suitable for:

11. Risk & Responsibility Notes

12. Summary

Tax (Safe) is an ERC-20 template with a predictable and limited tax mechanism:

Max Tx Template

1. Overview

Max Tx is an ERC-20 token with a strict limit on the maximum size of a single transaction. The limit is calculated as a fixed percentage of the total token supply (totalSupply) and is automatically applied to all regular transfers.

This template is designed to restrict large token movements and is fully compatible with EIP-1167 (minimal proxy).

2. Core Functionality

The template extends the standard ERC-20 with:

The limit is enforced directly at the smart contract level, not through UI or backend logic.

3. Token Creation Logic

During initialization (init):

4. Max Transaction Logic

The transaction limit is enforced inside the _update() function, which is the unified entry point for all transfer operations.

Logic flow:

Formula:

maxTx = totalSupply × 2%

5. Preset Parameters

This means that a single transaction cannot exceed 2% of the total supply.

The preset:

6. Exceptions (Who Is Not Limited)

The max transaction limit does not apply when:

These exceptions allow the owner to:

7. Ownership Model

Max Tx is a non-administrative mechanism after deployment.

8. Mint / Burn Behavior

9. Limitations

The Max Tx template does not support:

10. Typical Use Cases

The Max Tx template is suitable for:

11. Risk & Responsibility Notes

12. Summary

Max Tx is a simple and strict transaction-limiting template:

Max Wallet Template

1. Overview

Max Wallet is an ERC-20 token with a restriction on the maximum balance that a single wallet can hold. The limit is calculated as a fixed percentage of the total token supply (totalSupply) and is automatically enforced for all token recipients.

This template is designed to prevent token concentration in a single address and is fully compatible with EIP-1167 (minimal proxy).

2. Core Functionality

The template extends the standard ERC-20 with:

The restriction is enforced directly at the smart contract level, not via UI or backend logic.

3. Token Creation Logic

During initialization (init):

4. Max Wallet Logic

The wallet balance limit is enforced inside the _update() function, which is the unified processing point for all transfer, mint, and burn operations.

Logic flow:

Formula:

maxWallet = totalSupply × 2%

5. Preset Parameters

This means that a single wallet cannot hold more than 2% of the total supply.

These parameters are:

6. Exceptions (Who Is Not Limited)

The Max Wallet restriction does not apply when:

This allows the owner to:

7. Ownership Model

The Max Wallet mechanism is immutable after deployment.

8. Mint / Burn Behavior

9. Limitations

The Max Wallet template does not support:

10. Typical Use Cases

The Max Wallet template is suitable for:

11. Risk & Responsibility Notes

12. Summary

Max Wallet is a simple and strict balance-limiting template:

Safe Control Template

1. Overview

Safe Control is an ERC-20 token with extended security features, designed for projects that require administrative control over token circulation after deployment.

The template includes:

The contract is fully compatible with EIP-1167 (minimal proxy pattern).

2. Core Functionality

Safe Control extends the standard ERC-20 functionality with the following security mechanisms:

All checks are enforced at the smart contract level, not at the interface or backend level.

3. Token Creation Logic

During initialization (init):

4. Pause Logic

The contract supports a global pause mechanism:

Behavior while paused:

The pause applies to all addresses, including the owner.

5. Blacklist Logic

The contract maintains a blacklist of addresses.

Administrative functions:

Blacklist behavior:

Blacklist checks are symmetrical — both from and to addresses are verified.

6. Transfer Security Logic

All token operations pass through _update() with the following checks:

  1. The contract must not be paused
  2. The sender address must not be blacklisted
  3. The recipient address must not be blacklisted

If any condition fails, the transaction is reverted.

7. Ownership Model

8. Mint / Burn Behavior

9. Limitations

The Safe Control template does not support:

10. Typical Use Cases

11. Risk & Responsibility Notes

12. Summary

Safe Control is a security-focused token template offering: