> For the complete documentation index, see [llms.txt](https://build.sovryn.com/builder-portal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://build.sovryn.com/builder-portal/smart-contracts.md).

# Smart Contracts

- [Overview](https://build.sovryn.com/builder-portal/smart-contracts/overview.md): The Sovryn product suite consists of different interconnected protocols.
- [AMM](https://build.sovryn.com/builder-portal/smart-contracts/amm.md): The automatic market maker offers swaps between tokens on one or multiple conversion pools.
- [Liquidity](https://build.sovryn.com/builder-portal/smart-contracts/amm/liquidity.md): How to manage the liquidity on a Converter without the RBTCWrapperProx.
- [V1 Converters](https://build.sovryn.com/builder-portal/smart-contracts/amm/liquidity/v1-converters.md): On V1 Converters, the same value of both reserve assets need to be provided or removed. One LP token corresponds to a share of both reserve assets.
- [V2 Converters](https://build.sovryn.com/builder-portal/smart-contracts/amm/liquidity/v2-converters.md): V2 Converters allow for one-sided liquidity provision and removal. There is one LP token per reserve asset.
- [Conversion](https://build.sovryn.com/builder-portal/smart-contracts/amm/conversion.md): Swaps happen according to the provided conversion path and can involve one or multiple liquidity pools.
- [Wrapper](https://build.sovryn.com/builder-portal/smart-contracts/amm/wrapper.md): The wrapper contract is a utility contract which can be used to perform multiple actions within a single transactions.
- [V1 liquidity](https://build.sovryn.com/builder-portal/smart-contracts/amm/wrapper/v1-liquidity.md): Providing liquidity with the wrapper has the benefit that RBTC is automatically wrapped to WRBTC and the pool tokens are automatically deposited at the liquidity mining contract.
- [V2 liquidity](https://build.sovryn.com/builder-portal/smart-contracts/amm/wrapper/v2-liquidity.md): Providing liquidity with the wrapper has the benefit that RBTC is automatically wrapped to WRBTC and the pool tokens are automatically deposited at the liquidity mining contract.
- [Swaps](https://build.sovryn.com/builder-portal/smart-contracts/amm/wrapper/swaps.md): The wrapper contract can be used to directly swap to or from RBTC without requiring an additional transaction to wrap or unwrap WRBTC.
- [Sovryn Protocol](https://build.sovryn.com/builder-portal/smart-contracts/lending-and-margin-trading-protocol.md): This is the lending, borrowing and margin trading protocol. It connects to the loan tokens (aka lending pools) and the AMM.
- [Lending](https://build.sovryn.com/builder-portal/smart-contracts/lending-and-margin-trading-protocol/lending.md): Users may provide funds to the lending pool in order to earn interest.
- [Mint](https://build.sovryn.com/builder-portal/smart-contracts/lending-and-margin-trading-protocol/lending/mint.md): Users may provide funds to the lending pool in exchange for iTokens, which represent shares in the pool.
- [Burn](https://build.sovryn.com/builder-portal/smart-contracts/lending-and-margin-trading-protocol/lending/burn.md): Users may burn their iTokens to retrieve the underlying assets. One cannot withdraw more assets than are currently available in the pool.
- [Borrowing](https://build.sovryn.com/builder-portal/smart-contracts/lending-and-margin-trading-protocol/borrowing.md): Funds are borrowed from the loan token contracts and repaid to the Sovryn Protocol.
- [Borrow](https://build.sovryn.com/builder-portal/smart-contracts/lending-and-margin-trading-protocol/borrowing/borrow.md): How to borrow funds from a lending pool.
- [Repay](https://build.sovryn.com/builder-portal/smart-contracts/lending-and-margin-trading-protocol/borrowing/repay.md): How to close a position on the Sovryn Protocol.
- [Margin Trading](https://build.sovryn.com/builder-portal/smart-contracts/lending-and-margin-trading-protocol/margin-trading.md): Margin trades are opened on the loan token contracts and closed on the Sovryn Protocol.
- [Open](https://build.sovryn.com/builder-portal/smart-contracts/lending-and-margin-trading-protocol/margin-trading/open.md): How to open a margin trade.
- [Close](https://build.sovryn.com/builder-portal/smart-contracts/lending-and-margin-trading-protocol/margin-trading/close.md): How to close a margin tarde.
- [Collateral Management](https://build.sovryn.com/builder-portal/smart-contracts/lending-and-margin-trading-protocol/collateral-management.md): The user may add or remove collateral to / from an open position.
- [Liquidity Mining](https://build.sovryn.com/builder-portal/smart-contracts/liquidity-mining.md): The liquidity mining contract pays ongoing rewards to the depositors of LP tokens.
- [Deposit](https://build.sovryn.com/builder-portal/smart-contracts/liquidity-mining/deposit.md): Deposit tokens to the liquidity mining contract in order to start accumulating rewards.
- [Withdraw](https://build.sovryn.com/builder-portal/smart-contracts/liquidity-mining/withdraw.md): How to withdraw pool tokens from the Liquidity Mining contract.
- [Rewards](https://build.sovryn.com/builder-portal/smart-contracts/liquidity-mining/rewards.md): It is possible to claim rewards for specific pools or all of them at once.
- [FastBTC](https://build.sovryn.com/builder-portal/smart-contracts/fastbtc.md): This is the service that facilitates fast transfers from BTC to rBTC and vice versa.
- [RSK->BTC](https://build.sovryn.com/builder-portal/smart-contracts/fastbtc/rsk-to-btc.md): Fast rBTC to BTC transfers
- [Bitocracy](https://build.sovryn.com/builder-portal/smart-contracts/bitocracy.md): Bitocracy is the heart the Sovryn's protocol. It is the mechanism that enables the governance of its code and the incentive to maintain the system through the distribution of dividends.
- [Staking](https://build.sovryn.com/builder-portal/smart-contracts/bitocracy/staking.md): Staking contract allows SOV owners to put their assets in a locked position, commiTted until a given date.
- [Governor](https://build.sovryn.com/builder-portal/smart-contracts/bitocracy/governor.md): The GovernorAlpha contract is an adapted clone of Compound’s governance model.
- [Fee Sharing](https://build.sovryn.com/builder-portal/smart-contracts/bitocracy/feesharing.md): The FeeSharingCollector contract. This contract withdraws fees to be paid to SOV Stakers from the protocol. Stakers call withdraw() to get their share of the fees.
- [Vesting](https://build.sovryn.com/builder-portal/smart-contracts/bitocracy/vesting.md): Vesting contracts allows contributors and users that participate in certain programs like farming, to earn SOV assets in a programmed way.
- [Zero](https://build.sovryn.com/builder-portal/smart-contracts/zero.md): Zero is a collateralized debt platform. Users can lock up collateral (RBTC), issue stablecoins (ZUSD) to their own RSK address, and subsequently transfer those stablecoins to any other RSK address.
- [Borrower operations](https://build.sovryn.com/builder-portal/smart-contracts/zero/borrower_operations.md): When a user borrows from their Line of Credit, ZUSD tokens are minted to their own address, and a debt is recorded on the Line of Credit.
- [Trove Manager](https://build.sovryn.com/builder-portal/smart-contracts/zero/trove_manager.md): Redemptions burn ZUSD from the redeemer’s balance, and reduce the debt of the Line of Credit redeemed against.
- [Satability Pool](https://build.sovryn.com/builder-portal/smart-contracts/zero/stability_pool.md): Liquidations that involve a Stability Pool offset burn ZUSD from the Stability Pool’s balance, and reduce the ZUSD debt of the liquidated Line of Credit.
- [Rewards](https://build.sovryn.com/builder-portal/smart-contracts/zero/rewards.md): We use a highly scalable method of tracking deposits and RBTC rewards that has O(1) complexity.
- [Mynt & DLLR](https://build.sovryn.com/builder-portal/smart-contracts/mynt.md): Mynt is a stablecoin aggregator based on BabelFish. The stablecoins that Mynt supports are exclusively backed by BTC.
- [Basset to Masset Conversion](https://build.sovryn.com/builder-portal/smart-contracts/mynt/basset-to-masset.md): Basic assets that are validated in the Basket Manager storage, and are aggregated to be converted 1:1 into the meta-asste token, the Sovryn Dollar or "DLLR".
- [Masset to Basset Conversion](https://build.sovryn.com/builder-portal/smart-contracts/mynt/masset-to-basset.md): The meta-asset token can be converted back to any of its baking assets.
- [MOC Integration Conversion](https://build.sovryn.com/builder-portal/smart-contracts/mynt/moc-integration.md): In order to do the converion of DLLR into rBTC via Money-on-Chain protocol (MOC), we implemented an integrator: the MocIntergration contract.
