# About

Institutional DeFi Asset Management

Locust is a highly customizable, high performance framework for automating Institutional DeFi Asset Management.&#x20;

Locust automates strategies for common challenges faced by DAOs, Foundations and Protocols including:

* Treasury Management
* Liquidity Management
* Arbitrage

Locust is used by major Foundations and DAOs to manage liquidity positions, market make, hedge treasuries and drive efficient pricing through arbitrage.

Locust integrates fully with multi-signature wallets, allowing governance to maintain full transparency over the allocation and deployment of funds into strategies.&#x20;


# Deposits

Users may deposit funds into strategies via <https://trade.margined.io/>. The vault overview page offers a sortable view of strategies with indicative APRs.

<figure><img src="/files/Zkf0C0iT3xtIOCkLDxTq" alt=""><figcaption><p>Figure 1: Vaults Overview Page</p></figcaption></figure>

To deposit into a strategy first connect your wallet in the top right of the screen and then click Deposit for the strategy that you wish to deposit into.&#x20;

The strategy view shows detailed information on a strategy as well as a link to strategy documentation. To deposit enter the amount you wish to deposit and then sign the transaction.&#x20;

<figure><img src="/files/CbsGw5hnjKSvtKhlUU7i" alt=""><figcaption><p>Figure 2: The Deposit Page</p></figcaption></figure>

\
Strategies are grouped by Network. Switching network will show available strategies on corresponding networks.

<figure><img src="/files/TNZlJ2xStRMc61fgJO97" alt=""><figcaption><p>Figure 2: The Network Switcher</p></figcaption></figure>


# Withdrawals

The Withdraw funds from a strategy first connect your wallet at <https://trade.margined.io/>. For any deposits you have you will see "Manage Deposit" on the strategy.&#x20;

<figure><img src="/files/nrr4eFWmcF93mI1jV0H8" alt=""><figcaption><p>Figure 1: Managing a deposit</p></figcaption></figure>

Click "Manage Deposit" and you will see the Strategy page. Under Vault action click with Withdraw and enter the amount you wish to withdraw. <br>

<figure><img src="/files/fde0WwEPMFcs6BvkFy1w" alt=""><figcaption><p>Figure 2: Withdrawing funds</p></figcaption></figure>

Finally sign the transaction.&#x20;

{% hint style="info" %}
Note that withdrawals are limited to an amount that is available to withdraw on the contract so a full withdrawal may not be possible in a single transaction. A withdrawal queue feature will be shipping soon to make this process more transparent. For assistance please join our [Discord channel](https://discord.gg/fVGY3BKpJj).&#x20;
{% endhint %}


# High Level Architecture

Locust integrates on-chain smart contracts with an off-chain executor. This architecture delivers a DeFi native product with high levels of customization, flexible strategies, and excellent performance.

**Core Components**

1. **Fund Contract (Vault):**
   * **User Interactions:** Users deposit funds into the Fund Contract and redeem them when needed.
   * **Purpose:** It acts as a secure vault for storing user assets and serves as the central repository for fund management.
2. **Strategy Contract:**
   * **Fund Withdrawal:** The Strategy Contract periodically withdraws funds from the Fund Contract to implement specific investment strategies.
   * **Periodic Repayment:** To support ongoing user redemptions and ensure accurate accounting, the Strategy Contract periodically repays a portion of the funds back to the Fund Contract.
   * **Authz Grants:** This contract issues authorization (Authz) grants to the off-chain Locust executor, defining what actions the executor is permitted to perform.
3. **Locust Off-Chain Executor:**
   * **Management Role:** It manages the funds held within the Strategy Contract, executing strategy-specific operations.
   * **Security via Authz:** The executor is only authorized to sign messages on behalf of the Strategy Contract when it holds the appropriate Authz permissions. This design ensures that every action taken is explicitly permitted and verificable on-chain.

<figure><img src="/files/hN986oGTqZCcZT0EBia1" alt=""><figcaption><p>Figure 1: High Level Locust Architecture</p></figcaption></figure>

{% file src="/files/1rErjHZiyQnPvq1rCs9n" %}


# Security Risks

Refer to the [High Level Architecture](/design/high-level-architecture) for an overview of the components of the Locust Product.&#x20;

Locust exposes users to the following risks

* Smart contract compromise
* Smart contract admin account compromise
* Bugs in the off-chain executor
* The off-chain executor is offline
* Infrastructure is offline
* The off-chain executor account is compromised&#x20;

### Smart contract compromise

The Locust Vault Framework includes the **Fund Contract** and the **Strategy Contract**. Although the surface of these contracts is small, users are still exposed to smart contract risk and potential loss of funds.&#x20;

The Locust Vault Framework has received a full audit from [Oak Security](https://www.oaksecurity.io/) and the audit will be published on completion of the audit. Furthermore the Locust Vault Framework will be open sourced under and [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0.txt) on completion of the audit. &#x20;

### Smart Contract Admin Account Compromise

The admin of a smart contract may change configuration parameters and migrate contracts. In a benign case this could lead to a misconfiguration of contract parameters leading to a bug and potential loss of funds. In a malign case a bad actor who is able to compromise the Admin account private key can migrate the smart contract, change Authz permissions and steal all funds.

The mitigation is that the admin account is limited to team members and will transition to a multi-signature wallet.&#x20;

{% hint style="info" %}
Authz permissions and the account that is authorized are viewable in the config query endpoint of a strategy contract&#x20;
{% endhint %}

To verify Authz permissions get the strategy contract address from the [contracts](/resources/contracts) page. Then query the config.

<pre class="language-sh"><code class="lang-sh"><strong>neutrond query wasm \ 
</strong><strong>    contract-state smart \
</strong>    neutron1me4fuchq3pgle46dvdxsgvpz02z605gkr0sgs6uwew25cpgg3ydsfg8zms \
    '{"config": {}}'  | jq .
</code></pre>

View the `controller`key which is the account that may manage funds. Also the `grants`key which specifies the grants issued.&#x20;

```json
{
  "data": {
    "admin": "neutron1ha2hjlce7sqp59g8xhxz2jds97x8fdw9k9wngp",
    "controller": "neutron1nz852flh6np9xlg9ju3ka6w5txezsxt0j4lypn",
    "vault": "neutron17fyzkafg4scrd6xu0sp9llrl6hazegza7yer4erlea0kvk30yxsqk2xqfd",
    "token0": "ibc/78F7404035221CD1010518C7BC3DD99B90E59C2BA37ABFC3CE56B0CFB7E8901B",
    "token1": "ibc/B559A80D62249C8AA07A380E2A2BEA6E5CA9A6F079C912C3A9E9B494105E4F81",
    "grants": [
      "/neutron.dex.MsgCancelLimitOrder",
      "/neutron.dex.MsgDeposit",
      "/neutron.dex.MsgPlaceLimitOrder",
      "/neutron.dex.MsgWithdrawFilledLimitOrder",
      "/neutron.dex.MsgWithdrawal"
    ],
    "pool_info": {
      "slinky": {
        "base": "BTC",
        "quote": "USD",
        "timeout": 900
      }
    },
    "name": "crates.io:strategy",
    "version": "0.0.4"
  }
}

```

For a canonical understanding of the permissions the executor has query the Authz module.&#x20;

<pre class="language-sh"><code class="lang-sh">neutrond query authz grants \
    neutron1me4fuchq3pgle46dvdxsgvpz02z605gkr0sgs6uwew25cpgg3ydsfg8zms \ 
<strong>    neutron1nz852flh6np9xlg9ju3ka6w5txezsxt0j4lypn | jq .
</strong></code></pre>

Verify that the json response matches the permissions specified in the contact

```
{
  "grants": [
    {
      "authorization": {
        "type": "cosmos-sdk/GenericAuthorization",
        "value": {
          "msg": "/neutron.dex.MsgCancelLimitOrder"
        }
      }
    },
    {
      "authorization": {
        "type": "cosmos-sdk/GenericAuthorization",
        "value": {
          "msg": "/neutron.dex.MsgDeposit"
        }
      }
    },
    {
      "authorization": {
        "type": "cosmos-sdk/GenericAuthorization",
        "value": {
          "msg": "/neutron.dex.MsgPlaceLimitOrder"
        }
      }
    },
    {
      "authorization": {
        "type": "cosmos-sdk/GenericAuthorization",
        "value": {
          "msg": "/neutron.dex.MsgWithdrawFilledLimitOrder"
        }
      }
    },
    {
      "authorization": {
        "type": "cosmos-sdk/GenericAuthorization",
        "value": {
          "msg": "/neutron.dex.MsgWithdrawal"
        }
      }
    }
  ],
  "pagination": {
    "total": "5"
  }
}

```

### Bugs in the off-chain executor

The off-chain executor manages funds on behalf of the strategy contract. The messages that it can sign on behalf of the the strategy contract are limited in scope via [Authz](https://docs.cosmos.network/v0.46/modules/authz/) permissions, which are verifiable on-chain.&#x20;

Users are exposed to bugs in the off-chain executor which may in an extreme case cause partial or full loss of funds. The worst case is that messages are created incorrectly, causing positions to be created incorrectly and the strategy failing.

This is mitigated in part by formal code reviews and alerts on errors in running strategies.&#x20;

### The off-chain executor is offline

Users are exposed to the risk of the off-chain executor being offline. This can occur due to server failure or the process crashing and not restarting. In this case market conditions may move unfavorably against existing positions causing a strategy to become unprofitable. In extreme cases it can result in partial or full loss of funds.&#x20;

This is mitigated in part by fault tolerant infrastructure and high levels of monitoring and alerting.

### Infrastructure is offline

Strategies rely on interrogating APIs and services for current market conditions in order to build and sign messages. These include RPC servers, third-party APIs and data feeds. In the case that a service is unavailable market conditions may move unfavorably against existing positions causing a strategy to become unprofitable. In extreme cases it can result in partial or full loss of funds.&#x20;

This is mitigated in part by having fail over instances in the case of RPCs and limiting the reliance on single point of failure APIs.&#x20;

### The off-chain executor account is compromised

In the case that the off-chain executor account is compromised an attacker could create and sign transactions for message types that the account has Authz permissions for. This would allow an attacker to potentially steal some or all funds.&#x20;

This is mitigated in part by the use of Authz which limits the scope of an attack.


# LendLease

Lending Aggregator Strategy

**LendLease** is a lending strategy that connects to multiple decentralized lending platforms (e.g., Aave, Compound, Mars, Umee). Its core function is to **optimize yield** by intelligently allocating capital across integrated lending markets.

The aggregator continuously monitors lending rates across platforms and **periodically rebalances** supplied assets to ensure they are deposited in the market offering the **highest yield** at any given time.

**Key Features:**

* 🔄 **Automated Rebalancing**: Periodically shifts funds to the highest-yielding market.
* 🧠 **Rate Intelligence**: Aggregates and compares APYs in real-time.
* 📦 **Asset Support**: Works with a variety of tokens (e.g., USDC, ATOM, ETH).
* ⚙️ **Composable**: Can be used as a yield source by other DeFi apps or strategies.

#### Overview

Lendlease accepts deposits and performs frequent rebalancing between market analysing the impact of moving funds between markets.\
\
Users are able to deposit **instantly** however **redemptions** are only processed every 24 hours. This ensures that all deposits earn positive balance and cannot be attacked via continuous deposit and withdrawals.\
\
Earnt interest is repaid also every 24hrs ensuring that users always receive the interest earnt over the duration of their deposit.

#### Key Configuration Parameters

1. Rebalancing Frequency:
   1. Purpose: Determines how often the strategy adjusts its asset allocations across different markets.
   2. Impact: Frequent rebalancing can help maintain optimal asset distribution and respond to market changes, but may incur higher transaction costs.
2. Repayment Window:
   1. Purpose: Specifies the time frame within which borrowed assets must be repaid.
   2. Impact: A shorter repayment window can reduce risk exposure but may limit flexibility in managing positions.
3. Interest Rate Threshold:
   1. Purpose: Sets a minimum acceptable interest rate for lending assets.
   2. Impact: Ensures that assets are only lent out when the returns meet or exceed the specified threshold, optimizing profitability.
4. Diversification Limits:
   1. Purpose: Defines the maximum exposure to any single market or asset.
   2. Impact: Helps mitigate risk by preventing over-concentration in a particular market or asset.
5. Liquidity Buffer:
   1. Purpose: Maintains a reserve of liquid assets to meet unexpected withdrawals or market opportunities.
   2. Impact: Provides flexibility and security, ensuring the strategy can respond to sudden changes without disrupting operations.

These parameters are crucial for tailoring the lendlease strategy to specific risk appetites and market conditions, balancing the need for returns with risk management and operational efficiency.

| Strategy Name | Info                            |
| ------------- | ------------------------------- |
| USDC Noble    | <https://info.margined.io/usdc> |


# Concentrated Liquidity

Concentrated Liquidity Market Making and Liquidity Management

### Initial Use-Case LSDs

The initial use case for Locust is the provision of liquidity for LSD pools. LSD tokens, both rebasing and non-rebasing, centre around a **Redemption Rate** which moves only slowly with time.

#### Problem: Single LP Position

In a typical single position LP strategy liquidity will typically be placed at a wide range either side of the redemption price. However, to stay in range most of the time liquidity is supplied **wide** and **thin** which is capital inefficient.

<img src="https://hackmd.io/_uploads/HJLdECSEA.png" alt="Alt text" width="60%">

In order to remain in range as much as possible LPers will buy and sell assets at the market price regardless of the discount with respect to the actual redemption price.

Not only does this cause liquidity to be thin but also means that LPers are likely to experience Impermanent Loss (IL). Not only this but for the redemption and market prices to be restored the same amount of liquidity will need to be traded in the opposite direction.

Furthermore, IL is not truly permanent as with the change in redemption rate a previously held *"peg"* may not be restored.

Locust does **not** take this approach, rather it utilises the limit-orderbook feature of CL pools and actively manages positions for LPers. The LSD strategy takes the view that the assets held should be sold for the right price and not rely on pure arbitrage to return the peg if we can do better.

#### Solution: Locust LP Position

The Locust strategy can be simplified to **"Buy low, sell high"** as the strategy minimises the assets being sold at a discount. For example in **Scenario A** below the strategy removes all liquidity between the redemption rate and the market price.

The LP positions thus only buy for the cheaper price and sell for the higher. This has a number of consequences:

* Reduction in amount of liquidity required to return to peg
* Ability to deploy liquidity in a more capital efficient manner
* Increased profitability

Further the Locust strategy listens to all pool events and reallocates assets, meaning that assets bought at the market price are then immediately redeployed to the higher price position.

This also enables liquidity to be provided **concentrated** and **deep**.

<img src="https://hackmd.io/_uploads/HkLdE0H4R.png" alt="Alt text" width="60%">

As there is much less liquidity between the redemption and market prices **Scenario B** will be achieved much more easily.

<img src="https://hackmd.io/_uploads/HyvuEABVR.png" alt="Alt text" width="60%">

#### Conclusion

In conclusion we should how Locust reactive vault strategies can improve the efficiency of LPing LSDs. However, the same tools and techniques can be applied to other markets.

#### Worked Example

Given we wanted to create an LP position for the CL pool of lsdASSET<>ASSET in market defined:

* Market Price: 1.0
* Redemption Price: 1.1

Position is fixed with 10%:

* Position:
  * Lower Bound: 0.9
  * Upper Bound: 1.1
  * Asset 0: 100
  * Asset 1: 100

In this scenario in order to return the market to the the redemption price you would need to sell 100 asset 1 at a clearing price of 1.05 thus incurring a 5% loss as compared to redeeming the assets directly.

Additionally the liquidity needed to return the price to the redemption price would be \~105 asset 1.

Now consider a Locust strategy as follows:

* Strategy:
  * Spread: 2%
  * Discount 1%
* Quote Position:
  * Lower Bound: 0.98
  * Upper Bound: 1.0
  * Asset 0: 0
  * Asset 1: 100
* Base Position:
  * Lower Bound: 1.09
  * Upper Bound: 1.11
  * Asset 0: 100
  * Asset 1: 0

Thus in order to return the peg negigible assets are required. Furthermore, any liquidity sold would be done so at a maximum discount of 1%, which is a considerable saving over the fixed width vault strategy above.

Furthermore any liquidity sold at could then be placed into the base position and sold at a profit of \~9%.


# Redemption Rate Arbitrage

**Locust** offers a vault strategy focused on **Redemption Rate Arbitrage**, allowing users to profit from discrepancies in the redemption rates of liquid staked assets. This strategy is particularly effective in environments where there is a temporary misalignment between the market price and the underlying redemption value of the assets.

**Redemption Rate Arbitrage** is a trading strategy used to capitalize on the difference between the market price of a liquid staked asset and its underlying redemption value. By acquiring assets at a discount and redeeming them for their full value, traders can lock in a profit.

**Key Concepts**

1. **Redemption Rate**
   * The redemption rate is the value at which a liquid staked asset can be exchanged back into the underlying asset, typically after an unbonding period.
2. **Market Price**
   * The current price at which the liquid staked asset is being traded in the market. This price can sometimes deviate from the redemption rate.
3. **Arbitrage Opportunity**
   * Occurs when the market price of a liquid staked asset falls below its redemption rate, allowing traders to purchase the asset at a discount and redeem it later for a profit.
4. **Unbonding Period**
   * The period during which the asset is locked before it can be redeemed at the redemption rate. This is a crucial factor in determining the profitability of the arbitrage.

**How Redemption Rate Arbitrage Works**

1. **Identifying the Opportunity:**
   * A trader monitors the market for liquid staked assets that are trading below their redemption rate, signaling a potential arbitrage opportunity.
2. **Acquisition:**
   * The trader purchases the asset at the discounted market price.
3. **Unbonding:**
   * The trader initiates the unbonding process to redeem the asset at its full value, typically requiring a waiting period.
4. **Profit Capture:**
   * Once the unbonding period is complete, the asset is redeemed at the higher redemption rate, allowing the trader to capture the difference as profit.

**Example**

Consider a scenario where a liquid staked asset is trading at a market price of $95, while its redemption rate is $100.

1. **Acquisition:**
   * The trader purchases the asset at $95.
2. **Unbonding:**
   * The trader initiates the unbonding process.
3. **Redemption:**
   * After the unbonding period, the trader redeems the asset at $100, realizing a $5 profit per unit.

**Advantages**

* **Low-Risk Arbitrage:** By taking advantage of price discrepancies, this strategy can offer relatively low-risk profits compared to more volatile trading strategies.
* **Market Efficiency:** This strategy helps in correcting market inefficiencies by aligning the market price with the redemption value.
* **Predictable Returns:** Unlike speculative strategies, redemption rate arbitrage offers more predictable returns based on the known redemption rate.

**Disadvantages**

* **Unbonding Risk:** The profitability of the strategy is dependent on the unbonding period, during which market conditions could change.
* **Market Slippage:** Large trades can cause market slippage, reducing potential profits.
* **Opportunity Cost:** Capital is tied up during the unbonding period, limiting its availability for other opportunities.

#### **Conclusion**

Redemption Rate Arbitrage is an effective strategy for traders looking to capitalize on discrepancies between the market price and redemption value of liquid staked assets. By purchasing assets at a discount and redeeming them at a higher rate, traders can achieve consistent profits. However, it’s essential to carefully manage the risks associated with the unbonding period and market fluctuations.


# Funding Rate

Levana

Levana’s Funding Rate Strategy is designed to profit from the dynamics of funding fees in Levana markets. By opening a delta neutral position, the strategy earns funding income while mitigating exposure to market price movements. It actively monitors funding rate conditions and closes positions if the rates turn unfavorable, thereby aiming to protect capital while capturing consistent yields.

**Key Concepts**

* **Funding Rate:**\
  This is the periodic payment exchanged between long and short positions on perpetual swap contracts. When funding rates are positive, longs pay shorts, and vice versa for negative rates. The strategy targets favorable funding conditions to generate income.
* **Delta Neutral Position:**\
  By simultaneously holding offsetting long and short positions, the strategy minimizes directional market risk. This allows the trader to focus on the funding income rather than market price movements.
* **Leverage:**\
  The strategy employs leverage to enhance the gains from accrued funding fees. However, leveraging positions increases the potential for liquidation if market movements become adverse.
* **Liquidation Risk:**\
  Due to the leveraged nature of the positions, there is an inherent risk of liquidation if the market moves significantly against the hedged positions. Effective risk management is crucial to mitigate this exposure.

**How the Funding Rate Arbitrage Works**

1. **Identifying the Opportunity:**\
   The strategy continuously monitors funding rate trends across targeted markets to spot conditions where the funding fees are favorable.
2. **Establishing a Delta Neutral Position:**\
   Once a favorable funding environment is identified, a balanced long and short position is established. This hedge ensures that the strategy’s returns are driven primarily by the funding rate rather than market volatility.
3. **Earning Funding Income:**\
   As long as the funding rate remains favorable, the strategy accrues regular funding fees, providing a predictable revenue stream independent of the underlying asset’s price movements.
4. **Risk Management & Position Closure:**\
   Should the funding rate shift to an unfavorable level or market conditions deteriorate, the strategy will close the position to avoid losses from adverse funding payments or liquidation risks.

**Advantages**

* **Minimized Market Exposure:**\
  The delta neutral setup significantly reduces risk from market fluctuations.
* **Consistent Income:**\
  Regular funding fee accrual offers predictable returns in a favorable funding environment.
* **Potential for Enhanced Returns:**\
  Leveraging the position can amplify the gains derived from funding fees, increasing overall profitability.

**Disadvantages**

* **Increased Leverage Risk:**\
  The use of leverage heightens the risk of liquidation if market conditions turn adverse.
* **Funding Rate Volatility:**\
  Sudden or unexpected changes in funding rates can diminish profits or result in losses.
* **Execution Risk:**\
  Delays, slippage, or issues in trade execution can impact the strategy’s efficiency.
* **Capital Lock-Up:**\
  Funds committed to the hedged position are not available for alternative opportunities, representing an opportunity cost.

**Conclusion**

The Levana Funding Rate Strategy offers a disciplined approach to capturing funding fee income while keeping market exposure minimal through a delta neutral setup. While the potential for steady returns is attractive, the inherent risks—particularly those associated with leverage and funding rate volatility—necessitate careful monitoring and robust risk management. This balanced approach makes the strategy well-suited for traders seeking predictable funding income in a managed-risk framework.


# Coinhedge

Providing Hedged USD Liquidity to Blue-Chip DeFi Token Holders

### Overview

Coinhedge is an innovative strategy that enables users to access USD liquidity while using their cryptocurrency holdings as collateral. The strategy provides a secure way to unlock the value of crypto assets without selling them, by creating a hedged position that protects against price volatility.

### Core Functionality

#### Purpose

* Enables users to access USD liquidity using their crypto assets as collateral
* Maintains price exposure protection through automated hedging
* Provides a non-custodial solution for accessing liquidity

#### How It Works

1. **Collateral Management**
   * Users deposit their crypto assets (e.g., ATOM) into the vault
   * The strategy accepts these deposits as collateral
   * Assets are securely held in a non-custodial manner
2. **Liquidity Generation**
   * Collateral is swapped to USD through integrated DEXs:
     * Osmosis
     * Duality
     * Any Skip API integrated venue
   * USD is then made available to the user
3. **Risk Management**
   * Exposure is hedged on dYdX using perpetual futures
   * Automated rebalancing maintains the hedge ratio
   * Price movements are offset between spot and futures positions

### Strategy Lifecycle

1. **Deposit Phase**
   * User deposits their crypto assets into the vault
   * Strategy verifies and accepts the collateral
   * Initial position setup begins
2. **Hedge Phase**
   * Strategy establishes the hedge on dYdX
   * Maintains the hedge through market movements
   * Monitors and adjusts positions as needed
3. **USD Distribution**
   * Generated USD is made available to the user
   * User can access the liquidity while maintaining their crypto exposure
   * Strategy continues to manage the hedge
4. **Repayment Phase**
   * User repays the borrowed USD
   * Strategy unwinds the hedge position
   * Collateral is returned to the user

### Key Features

* **Non-custodial**: Users maintain control of their assets
* **Automated**: Strategy manages all aspects of the hedge
* **Cross-chain**: Utilizes multiple blockchain networks for optimal execution
* **Risk-managed**: Continuous monitoring and adjustment of positions
* **Liquidity-focused**: Provides access to USD liquidity without selling assets

### Technical Implementation

The strategy operates across multiple chains and protocols:

* **Neutron**: Primary chain for vault and strategy contracts
* **dYdX**: Hedging venue for perpetual futures
* **Osmosis/Duality**: Liquidity venues for spot trading
* **Skip API**: Integration for optimal routing and execution

### Benefits

1. **Liquidity Access**
   * Users can access USD without selling their crypto assets
   * Maintains exposure to potential price appreciation
2. **Risk Management**
   * Automated hedging protects against price volatility
   * Continuous monitoring and adjustment of positions
3. **Flexibility**
   * Multiple DEX integration for optimal execution
   * Cross-chain functionality for broader asset support
4. **Security**
   * Non-custodial design
   * Automated risk management
   * Transparent operations


# Contracts

### Addresses

#### Locust

<table><thead><tr><th width="138.33333333333331">Type</th><th width="172">Name</th><th width="357">Address</th></tr></thead><tbody><tr><td>LSD</td><td></td><td></td></tr><tr><td></td><td>stOSMO</td><td><code>osmo16s3sxs5886p42kteunp6370pken2n5ukzszz0trkr39epqtawn2qk4r9l5</code></td></tr><tr><td></td><td>stTIA</td><td><code>osmo1q3w9kedgtc8sdh7xlcr77ydv3qu7fs2e3q6xznysp2lrdfyz9xyqv26yqv</code></td></tr><tr><td></td><td>ampOSMO</td><td><code>osmo1cztgw4e467vjljd0s2flz8asu3x3wg9q0ttga9t6kzmpyaauxxrs2gjshq</code></td></tr><tr><td>CLMM</td><td></td><td></td></tr><tr><td></td><td>BTC&#x3C;>USDC</td><td><code>osmo193kjx80ag4tck2enuxcprxnrcusemmh5mun5k87c96d7swz6y2dqf39rxe</code></td></tr><tr><td></td><td>DOGE&#x3C;>USDC</td><td><code>osmo15gqhlr4tem7s3qanhqwy28mm2maxrpha9acelldr4m73ujv6lclqg3s37j</code></td></tr><tr><td></td><td>ETH&#x3C;>BTC</td><td><code>osmo1xugxhp2knsyvxelghc340gq886kdwgv36sr0afwu6egeds3aafgsy4n2g4</code></td></tr><tr><td>Redemption</td><td></td><td></td></tr><tr><td></td><td>OSMO</td><td><code>osmo15fqmdl8lfl9h0qflljd63ufw9j2m7xmsk3hu5vsn8xpta4hk5chqt7mddc</code></td></tr><tr><td></td><td>TIA</td><td><code>osmo1reyz7pwu7y9e7lmzqg6j4h7jcv32du7n7jhnk2lz93a9lxr56ess2qtgzl</code></td></tr><tr><td></td><td>ATOM</td><td><code>osmo1hvl5kj4xzdj4udxjv2dzk2zfqhzkd9afqygwq3t84tn53e0250zqrltj48</code></td></tr><tr><td>Redemption Queue</td><td>Osmosis</td><td><code>osmo1g63cnjmq2spfagpp03et04xpgklnfllzzc23xqm953huqhrgr7dsaytq8k</code></td></tr><tr><td></td><td>Neutron</td><td><code>neutron1rl7key2jr285vwz79hgkusgtw3ylcgateux5p8ajkk4rya067dkserkva8</code></td></tr><tr><td>Structured</td><td></td><td></td></tr><tr><td></td><td>NTRN</td><td><code>neutron13h4jzme5880knnc23xvwu9gytynnxu5cc0fek6fndmjyctzznj9sd5yhhy</code></td></tr></tbody></table>


# API

### GraphQL

We expose certain on-chain data through a GraphQL interface, both interactive and non-interactive.

* <https://vaults.margined.io/api/v1/graphql>
* <https://vaults.margined.io/api/v1/graphiql>


# Assets

Margined Protocol logos, brand and word marks in PNG and SVG formats:

* <https://github.com/margined-protocol/margined-assets>


# Links

* [Discord](https://discord.com/invite/fVGY3BKpJj)
* [X](https://x.com/margined_io)
* [Github](https://github.com/margined-protocol)


