> For the complete documentation index, see [llms.txt](https://duce.gitbook.io/duce/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://duce.gitbook.io/duce/getting-started/duce-aggregated-reserve-mechanism.md).

# Duce Aggregated Reserve Mechanism

**Deposit Lifecycle**

Investor deposits are securely recorded in an encrypted ledger using FHE. These deposits, combined with the reserve, form a consolidated investment pool. This aggregated reserve is dynamically managed by smart contracts that determine how funds are allocated to the investment strategy.

**Blind Investment Strategy**

Duce employs a blind investment strategy where the aggregated funds are deployed without revealing individual deposit details. This strategy is executed through FHE circuits that:

* Process encrypted data to determine optimal investment allocation.
* Compute yield outcomes in real time.

<figure><img src="https://mermaid.ink/img/pako:eNp1VGtzojAU_SuZ9OOqRRBEZqc7PEQ7-6ij3afuhxSiZA0JE0JbK_73jYBKu7PhC9xzzs09995hDyMeY-jANeVPUYKEBPfBigF18uJhI1CWgABnPCcSzBKU4xo7Hnd5yx5xLrk4Md4_iOubcDrujlkkdpnEMbhlWSF_X0Te0t1sBN4gSTgDPmdSoKgWvmy7iy_u_CP4hgVZExy3ZP5yxjlV-eY4x-IRV4IFVoF3p8vzho5ZvGJvHNSFpphJMGYbwlougqVHCYvBQhUi8WYHxs84Ko7VndwAn4iouFxwPOPlxeJPgmmsrKTKKToLpzxVj8gSEoG7DIsKaacI9_uTksXkrFsUIqNFfr1IuJBrROmHw-H_xmZox4t_JjNZzrEsBAMByaUgD5Ud8IlvSFTdEewYSlVdbvynaNoyE1zyiNNWgdPly_YY52swwaxxUOmPXilBLMLAT3C0bYluL0vxncgkFugJ0UrU7-nPalanrt0V8rIZLWsu6HZvykt373-UwKshr4I-Y7GlGMw5l-BrFquhlcCvCf4brY8yIhEtQbPRQYUfR6psRTjPFSdAEpVgXBPGbxKobSuoLEFYw2EFNxMqweRV9DSvc3xSxdVWzzmlRQY8JKOkBNManVboHev6CSKs2fmo6nEJbs-Dljvl1QVrQqlzNfDd0NQ6aqZ8i50rw7bHht8meg1R74-s0DgT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UvNgk0FGdzdVXUQ08IEitf3qOZoj94vzVN3T28Bk6hm71LMse2Hbf1A3N1DtwB53uwNZ7mmFYporrxmg4NA4d-FKl0HvGwNJMUzMGumaPzP7hL_VfoNM)" alt=""><figcaption></figcaption></figure>

#### **Algorithmic Overview of Duce** Dynamic Adjustment Protocol

A dynamic adjustment protocol ensures that the distributed yield meets the guaranteed 1.2× return.  (see Sample code below) outlines how the system:

* Monitors yield accrual.
* Adjusts bonus distribution in real time if the aggregate yield is temporarily insufficient.
* Ensures that each investor receives at least their principal, with any additional bonus proportionally adjusted.

```solidity
function distributeYield() internal {
    uint totalYield = computeYield(); // FHE-based yield computation
    for (uint i = 0; i < investorCount; i++) {
        uint idealReturn = investors[i].deposit * 120 / 100;
        if (totalYield >= idealReturn) {
            payInvestor(investors[i], idealReturn);
            totalYield -= idealReturn;
        } else if (totalYield >= investors[i].deposit) {
            payInvestor(investors[i], totalYield);
            totalYield = 0;
        } else {
            break; // Insufficient funds: wait for additional yield accrual
        }
    }
}

```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://duce.gitbook.io/duce/getting-started/duce-aggregated-reserve-mechanism.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.
