# Phase 2: Prime Brokerage

## Theory:&#x20;

We believe that the key to expanding undercollateralized credit in DeFi post [Phase 1](/asgard-finance/credit-layer-for-defi/phase-1-credit-synthesizer.md) lies in creating a "borrowing in a bubble" environment. &#x20;

This concept allows us to simulate undercollateralized credit while maintaining technical overcollateralization by retaining ultimate control of the assets.

In traditional finance, prime brokers provide leverage, market access, and other benefits to clients while executing trades and transactions on their behalf. We can replicate this model on-chain by defining clear boundaries and executing transactions within a controlled environment.

<figure><img src="/files/xgH1gU6R5zBIbnNuga2F" alt=""><figcaption></figcaption></figure>

The core idea is to issue funds to a restricted account that only allows a well-defined set of commands and smart contract interactions. This approach ensures that borrowed funds can be put to productive use & funds cannot be freely transferred to an unrestricted, self-custodial wallet

### Algorithmic Security:&#x20;

By implementing this "algorithmic security," we create a system where:

* You can't default, because the code won't let you
* The protocol retains control while giving users significant flexibility
* Risk is contained within predefined parameters

This model allows us to offer higher LTV's => hence higher leverage ratios => hence borrowers get increased capital efficiency while maintaining the security standards necessary in a trustless environment.

Key Components:

1. **Credit Accounts:** Smart contract wallets that hold both user collateral and borrowed funds, with restrictions on withdrawals and interactions.
2. **Whitelisted Protocols:** A carefully curated list of Defi protocols and assets that Credit Accounts can interact with, balancing opportunity with risk management.
3. **Risk Assessment Engine:** A sophisticated system for evaluating the risk of various assets and protocol interactions in real-time.
4. **Liquidation Mechanisms:** Automated processes to ensure positions remain overcollateralized from the protocol's perspective, even as users access undercollateralized leverage.

***

## Technical Overview:&#x20;

Refer to this section -> [What goes underneath the hood?](/asgard-finance/credit-layer-for-defi/phase-2-prime-brokerage/what-goes-underneath-the-hood.md)<br>

***

## Usecases

Refer to this section -> [What can you do? ](/asgard-finance/credit-layer-for-defi/phase-2-prime-brokerage/what-can-you-do.md)

***

&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://asgard-2.gitbook.io/asgard-finance/credit-layer-for-defi/phase-2-prime-brokerage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
