> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gomaestro.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Managed Smart Contracts

> Cardano's first Smart Contract Marketplace featuring open-source, audited smart contracts with hosted execution and unified key management.

# Smart-Contract Marketplace

Maestro has released Cardano's first Smart Contract Marketplace, a repository of open-source and audited smart contracts contributed by the community. This platform is a significant step toward promoting open collaboration and trust within the smart contract landscape.

<Frame>
  <img src="https://mintcdn.com/gomaestroinc/UG-HWhdPHF6WhAJB/images/AqtvK-hV9k5Q12E-Sfpa1-4XwH80vymUx4Hf6hKchHF-20241011-055259.png?fit=max&auto=format&n=UG-HWhdPHF6WhAJB&q=85&s=ab837bee8b118f2a1e060b9478e025b4" alt="" width="3240" height="2160" data-path="images/AqtvK-hV9k5Q12E-Sfpa1-4XwH80vymUx4Hf6hKchHF-20241011-055259.png" />
</Frame>

In addition, Maestro offers two novel services aimed at empowering developers with low-code/no-code tools to build and deploy secure dApps easily.

1. Managed Contract API: Deploy contracts and build transactions with a simple REST API interface
2. Contract UI Widgets: Integrate whitelabel React components directly into your app

<Warning>
  This service is only included in subscriptions above the **Artist** tier.
</Warning>

<Note>
  Check out the Marketplace [here](https://www.gomaestro.org/smart-contracts).
</Note>

***

# Service Availability

The Managed Smart Contract service is available on the following blockchains:&#x20;

| Service                    | Bitcoin | Cardano                                                  | Dogecoin |
| :------------------------- | :------ | :------------------------------------------------------- | :------- |
| **Managed Smart Contrac**t | *-*     | [API Reference](/cardano/managed-contracts-api/overview) | *-*      |

***

## Available Contracts on the Marketplace

| **Smart Contract**               | **Description**                                                             | **Details**                                                | **Audit/Open-sourced**                  |
| :------------------------------- | :-------------------------------------------------------------------------- | :--------------------------------------------------------- | :-------------------------------------- |
| **Linear Vesting**               | Lock tokens with a linear vesting schedule and control release over time.   | Compiler: Plutarch v2, Project: Anastasia Labs, Fee: Yes   | Open-sourced, Audited by Anastasia Labs |
| **Direct Swap**                  | Peer-to-peer & trustless swaps for tokens & NFTs.                           | Compiler: Plutarch v2, Project: Anastasia Labs, Fee: Yes   | Open-sourced, Audited by Anastasia Labs |
| **Single Asset Staking**         | Earn and redeem yield on tokens staked at an address.                       | Compiler: Plutarch v2, Project: Anastasia Labs, Fee: Yes   | Open-sourced, Audited by Anastasia Labs |
| **P2P Lending**                  | Cerra - P2P lending & borrowing order book.                                 | Compiler: Plutus v2, Project: Cerra, Fee: Yes              | Open-sourced                            |
| **Privacy Payments**             | Encoins - Privacy accounts and payments protocol.                           | Compiler: Aiken v2, Project: Encoins, Fee: Yes             | Open-sourced                            |
| **P2P Swaps**                    | Fallen Icarus - distributed order book DEX with composable atomic swaps.    | Compiler: Plutus v2, Project: Fallen Icarus, Fee: No       | Open-sourced                            |
| **Derivatives Marketplace**      | Fallen Icarus - marketplace for options, futures, and bonds.                | Compiler: Plutus v2, Project: Fallen Icarus, Fee: No       | Open-sourced                            |
| **P2P Options**                  | Fallen Icarus - P2P options trading.                                        | Compiler: Plutus v2, Project: Fallen Icarus, Fee: No       | Open-sourced                            |
| **P2P Loans**                    | Fallen Icarus - distributed P2P lending/borrowing protocol.                 | Compiler: Aiken v2, Project: Fallen Icarus, Fee: No        | Open-sourced                            |
| **Collateralized Debt Position** | Indigo - collateralized debt position protocol.                             | Compiler: Plutus v2, Project: Indigo, Fee: Yes             | Open-sourced                            |
| **Onchain Oracle**               | Indigo - Onchain oracle script.                                             | Compiler: Plutus v2, Project: Indigo, Fee: Yes             | Open-sourced                            |
| **Governance Polling**           | Indigo - Onchain governance polling script.                                 | Compiler: Plutus v2, Project: Indigo, Fee: Yes             | Open-sourced                            |
| **Stability Pool**               | Indigo - CDP stability pools.                                               | Compiler: Plutus v2, Project: Indigo, Fee: Yes             | Open-sourced                            |
| **Governance Proposal**          | Indigo - Onchain governance proposal creation.                              | Compiler: Plutus v2, Project: Indigo, Fee: Yes             | Open-sourced                            |
| **Onchain Staking**              | Indigo - staking contract.                                                  | Compiler: Plutus v2, Project: Indigo, Fee: Yes             | Open-sourced                            |
| **Onchain Treasury**             | Indigo - Onchain treasury protocol.                                         | Compiler: Plutus v2, Project: Indigo, Fee: Yes             | Open-sourced                            |
| **NFT Marketplace**              | JPG.store Bid and Ask contract for NFT marketplace.                         | Compiler: Aiken v2, Project: JPG.store, Fee: Yes           | Open-sourced, Audited by Sundaeswap     |
| **Pool Lending Protocol**        | Pooled lending and borrowing protocol with flash loans.                     | Compiler: Aiken v2, Project: Lenfi, Fee: Yes               | Open-sourced, Audited by TxPipe         |
| **AMM DEX V1**                   | Minswap - AMM DEX v1 protocol.                                              | Compiler: Plutus v1, Project: Minswap, Fee: Yes            | Open-sourced, Audited by Tweag          |
| **AMM DEX V2**                   | MuesliSwap - AMM DEX protocol.                                              | Compiler: Plutus v2, Project: MuesliSwap, Fee: Yes         | Open-sourced                            |
| **AMM DEX Batcher**              | Batch Muesliswap orders.                                                    | Compiler: Plutus v2, Project: MuesliSwap, Fee: Yes         | Open-sourced                            |
| **Orderbook DEX V1**             | MuesliSwap - v1.1 OrderBook DEX.                                            | Compiler: Plutus v1, Project: MuesliSwap, Fee: Yes         | Open-sourced                            |
| **NFT Marketplace**              | SpaceBudz - NFT marketplace contract with chain indexer and event listener. | Compiler: Aiken v2, Project: SpaceBudz, Fee: No            | Open-sourced                            |
| **AMM DEX**                      | Spectrum Network - Cross-chain DEX with liquidity provision & mining.       | Compiler: Plutarch v1, Project: Spectrum Network, Fee: Yes | Open-sourced                            |
| **NFT Marketplace**              | Token Riot - NFT selling, offering, auctions, and timelocks.                | Compiler: Plutus v2, Project: Token Riot, Fee: Yes         | Open-sourced                            |
| **Orderbook DEX**                | Genius Yield - Pure order book DEX supporting partial orders.               | Compiler: Plutarch v2, Project: Genius Yield, Fee: No      | Open-sourced, Audited by Anastasia Labs |
| **DEX Order Validator**          | GY - Validate new DEX limit orders.                                         | Compiler: Plutarch v2, Project: Genius Yield, Fee: No      | Open-sourced, Audited by Anastasia Labs |
| **DEX Fee Config**               | GY - Set maker & taker DEX fees.                                            | Compiler: Plutarch v2, Project: Genius Yield, Fee: No      | Open-sourced, Audited by Anastasia Labs |

***

### Contract Royalty

Royalties are directly encoded into the contract and *automatically distributed to the contract author* when executed. Like NFT royalties, this ensures the author is incentivized to **open-source** their contract and is rewarded accordingly, *benefiting the Cardano ecosystem with standardized and vetted contracts* for anyone to use.

**Add your own contract to the Marketplace**

Do you have a smart contract and want to earn royalties for it?

<Note>
  To get added to the *Marketplace*, follow the following ***Contribution Instructions.***
</Note>

***

## Advantages of Open-Sourcing Contracts

* **Standardization**: Open-source contracts can demonstrate best practices and battle-tested protocol architectures, providing a reliable foundation for developers.
* **Security**: Anyone can audit open-source contracts, enhancing their security over time and building confidence in the community that uses them.
* **Collaboration**: Open-source work benefits from diverse contributions, which can lead to higher application efficiency and robustness.
* **Composability**: The ability to combine and recombine contracts encourages creative and innovative protocol development.

***

## Unlocked Benefits for Cardano’s dApp Ecosystem

1. **Dependable Contracts**: Access a curated collection of modular, robust, and reusable smart contracts. Benefit from contracts that have undergone rigorous community assessments.
2. **Standardize Contract Interface**: Interact with contracts through intuitive API, SDK, or UI components, lowering the barrier to entry into Web3 and unlocking the power of blockchain for everyone.
3. **Instant Deployment**: Avoid cumbersome and expensive Cardano backend infrastructure and seamlessly deploy contracts into your web2 application.
4. **Rewarding Innovation**: The royalty system for **both** the backend and frontend developers encourages a culture of sharing and collective advancement.

***

## Managed Contract API

Maestro's Managed Contracts API gives access to **ready-to-deploy smart contracts** written in [Plutus](https://github.com/input-output-hk/plutus) and [Aiken](https://aiken-lang.org/) or any other Cardano smart contract frameworks. The contract API abstracts away both *on-chain* and *off-chain* script interactions. Using intuitive and developer-friendly endpoints, this fully managed contract service aims to *enhance developer experience*, *strengthen the ecosystem*, and *enhance the security* of Dapps on Cardano.

## Contract UI Widgets

### *Direct Swap UI Widget*

<Frame>
  <img src="https://mintcdn.com/gomaestroinc/UG-HWhdPHF6WhAJB/images/AqtvK-hV9k5Q12E-Sfpa1-4b0bb9ciIXIRZxYx1OuwK-20241011-055456.gif?s=624d4214af647cbca5565d6f91228c96" alt="" width="800" height="517" data-path="images/AqtvK-hV9k5Q12E-Sfpa1-4b0bb9ciIXIRZxYx1OuwK-20241011-055456.gif" />
</Frame>

For those looking for an end-to-end web integration, Maestro's Contract Widgets provide a no-code option, allowing developers to add full-featured frontend components to any website. All UI widgets are made open source and can be found [here](https://github.com/maestro-org/smart-contract-clients):

**Add your own UI Widget and charge a frontend fee**

Similar to smart contract royalties, front-end developers can contribute their own UI component and charge a *front-end fee* to receive ongoing revenue for their work.

### *Linear Vesting UI Widget*

<Frame>
  <img src="https://mintcdn.com/gomaestroinc/UG-HWhdPHF6WhAJB/images/AqtvK-hV9k5Q12E-Sfpa1-P7JMVskKjjvPbp7zid5-m-20241011-055520.gif?s=aab6cdb506795638532f87e6bff60bab" alt="" width="600" height="388" data-path="images/AqtvK-hV9k5Q12E-Sfpa1-P7JMVskKjjvPbp7zid5-m-20241011-055520.gif" />
</Frame>

This API is only included in subscriptions above the *Artist* tier.

<Note>
  Get to know Maestro subscription details [here](https://www.gomaestro.org/pricing).
</Note>
