-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
388 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# we want to be able to compile the book locally and not push that to the repo | ||
_book/ | ||
_book/ | ||
book/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# Introduction | ||
DeFindex is a protocol where users can define how investment are distributed among multiple DeFi protocols and strategies. | ||
DeFindex is a protocol where users can define how investment are distributed among multiple DeFi protocols and strategies. | ||
|
||
You can find the whitepaper [here](../10-whitepaper/README.md). | ||
and a PDF version [here](https://drive.proton.me/urls/ZGFGQ7JAKC#IzQdqXo8r331). |
This file was deleted.
Oops, something went wrong.
20 changes: 11 additions & 9 deletions
20
apps/docs/10-whitepaper/03-the-defindex-approach/01-design-decisions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
# Design Decisions | ||
We have decided to do: | ||
|
||
## Multi Assets Index. | ||
We think is important to offer diversified Indexes to our users, not only in the platforms or strategies they will be interacting, but also in the assets they will be exposed to. | ||
## Multi Assets Vaults. | ||
We think is important to offer diversified Vaults to our users, not only in the platforms or strategies they will be interacting, but also in the assets they will be exposed to. | ||
|
||
## AMM Liquidity Pool Support | ||
When supporting a AMM Liquity Pool, the underlying asset will be considered as the **AMM LP token**, for example, for a Soroswap USDC-XLM liquidity pool, the underlying asset will be the Soroswap-USDC-XLM-LP token and not the USDC or XLM tokens. | ||
|
||
## User should provide the exact underlying assets | ||
Even if we would provide the best user experience, every Index will only accept the corresponding assets it will be using for its strategies. We can help the user to get these assets before investing in the Index(See Zapper contract). However it is a decision that the Vault will only accept the desired assets in the correct ratio. | ||
Even if we would provide the best user experience, every Vault only accepts the corresponding assets it will be using for its strategies. We can help the user to get these assets before investing in the Vault(See Zapper contract). However it is a decision that the Vault will only accept the desired assets in the correct ratio. | ||
|
||
To understand better why we decide this please check the [Why we can`t swap on deposit](../10-apendix/01-why-we-cant-swap-on-deposit-or-withdraw.md) section. | ||
|
||
## IDLE funds. | ||
- Security: Enables emergency withdrawal | ||
- Performance: Separate high CPU instructions limits tx. | ||
- Transaction Cost: Enable small investment that wont be affected by costly txs. | ||
IDLE funds are funds that are not being used for any strategy. But they are protected by being held inside the DeFindex Smart Contracts. | ||
- Security: Enables emergency withdrawal. This means that if a DeFi protocol gets too risky, the users won't lose their funds because they can be withdrawn from the DeFi protocol to the DeFindex Smart Contracts. | ||
- Performance: Enable multi transaction movements. | ||
- Transaction Cost: Enable small transactions that wont be affected by costly txs. | ||
|
||
## Emergency Withdrawal | ||
- Secutiry. We have roles. | ||
- It allows the Emergency Manager to rescue funds in case of an emergency. These are held in the DeFindex Smart Contracts. Thus, the users won't lose their funds and they will be able to withdraw them anytime. | ||
|
||
## Roles | ||
- Manager | ||
- Emergency | ||
- Manager: Can change the Emergency Manager and the Fee Receiver. Rebalance between strategies to optimize the performance and minimize the risk. | ||
- Emergency Manager: Can rescue funds in case of an emergency. | ||
- Fee Receiver: Receives the fees that the protocol pays to incentivize good management. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# The DeFindex Approach | ||
# The DeFindex Approach | ||
|
||
In this section we will describe the approach we took to build DeFindex. Why we chose the design decisions we made and how we tried to improve the current state of the art, leveraging the Stellar ecosystem. |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# State of the Art | ||
From all types of DeFi protocols that achieve similar goals currently available on different ecosystem, we have selected 2 to define the basic concepts for DeFidex. These are **Yearn.Finance** and **SetProtocol**. | ||
|
||
- [Yearn.Finance](01-yearn-finance.md) | ||
- [SetProtocol](02-set-protocol.md) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Appendix | ||
|
||
- [Why we can't swap on deposit or withdraw](01-why-we-cant-swap-on-deposit-or-withdraw.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# Apendix | ||
# Apendix | ||
|
||
[Why we can't swap on deposit or withdraw](01-why-we-cant-swap-on-deposit-or-withdraw.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,48 @@ | ||
# DeFindex Whitepaper | ||
|
||
This protocol by Palta Labs. | ||
Francisco Catrileo | Joaquin Soza | Esteban Iglesias | ||
|
||
## Abstract | ||
DeFindex is a set of Smart Contracts to Interact better with different Descentralized Finance protocols on the Stellar / Soroban Blockchain | ||
### Introduction | ||
- [Introduction](./01-introduction/README.md) | ||
- [Core Concepts](./01-introduction/02-core-concepts.md) | ||
|
||
|
||
### The DeFindex Approach | ||
- [Overview](./03-the-defindex-approach/README.md) | ||
- [Design Decisions](./03-the-defindex-approach/01-design-decisions.md) | ||
|
||
### Contracts | ||
- [Vault Contract](./03-the-defindex-approach/02-contracts/01-vault-contract.md) | ||
- [Strategy Contract](./03-the-defindex-approach/02-contracts/02-strategy-contract.md) | ||
- [Zapper Contract](./03-the-defindex-approach/02-contracts/02-zapper-contract.md) | ||
|
||
### State of the Art | ||
- [State of the Art](./04-state-of-the-art/README.md) | ||
|
||
### Appendix | ||
- [Appendix](./05-appendix/README.md) | ||
|
||
### Abstract | ||
|
||
DeFindex is a suite of smart contracts designed to facilitate interaction with various Decentralized Finance (DeFi) protocols on the Stellar/Soroban Blockchain. It enables users to create custom strategies, allowing investments to be distributed across multiple DeFi protocols in a streamlined manner. The protocol serves two primary audiences: | ||
|
||
1. **Wallet Users (including Web2 users):** DeFindex provides a simplified interface that wallet developers can integrate into their platforms, enabling users to access DeFi investment services effortlessly. | ||
2. **Expert Users:** For experienced investors, DeFindex offers an efficient way to diversify investments without the complexity of building and managing their own strategies. | ||
|
||
Inspired by projects such as Yearn, Set Protocol, Compound, and YieldYak, DeFindex adapts their core principles to the Stellar ecosystem. | ||
|
||
The protocol comprises three main components: | ||
|
||
1. **Factory:** A smart contract responsible for creating new Vaults. | ||
2. **Vaults:** The primary contracts through which users interact, enabling deposits, withdrawals, and position adjustments. | ||
3. **Strategies:** Contracts that allocate Vault assets across various DeFi protocols. | ||
|
||
To ensure robust functionality and security, DeFindex implements a role-based management system: | ||
|
||
- **Manager:** Oversees strategies and the assets within Vaults. | ||
- **Emergency Manager:** Handles emergency withdrawals. | ||
- **Fee Receiver:** Collects and manages strategy-related fees. | ||
|
||
By combining simplicity for newcomers with advanced features for seasoned users, DeFindex aims to make DeFi more accessible and efficient on the Stellar Blockchain. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Summary | ||
|
||
[DeFindex Whitepaper](./README.md) | ||
|
||
# Introduction | ||
- [Introduction](./01-introduction/README.md) | ||
- [Core Concepts](./01-introduction/02-core-concepts.md) | ||
|
||
# The DeFindex Approach | ||
- [Overview](./03-the-defindex-approach/README.md) | ||
- [Design Decisions](./03-the-defindex-approach/01-design-decisions.md) | ||
|
||
# Contracts | ||
- [Vault Contract](./03-the-defindex-approach/02-contracts/01-vault-contract.md) | ||
- [Strategy Contract](./03-the-defindex-approach/02-contracts/02-strategy-contract.md) | ||
- [Zapper Contract](./03-the-defindex-approach/02-contracts/02-zapper-contract.md) | ||
|
||
# State of the Art | ||
- [State of the Art](./04-state-of-the-art/README.md) | ||
|
||
# Appendix | ||
- [Appendix](./05-appendix/README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[book] | ||
authors = ["Francisco Catrileo", "Joaquin Soza", "Esteban Iglesias"] | ||
language = "en" | ||
multilingual = false | ||
src = "." | ||
title = "DeFindex Whitepaper" | ||
|
||
[output.html] | ||
default-theme = "light" | ||
preferred-dark-theme = "navy" | ||
git-repository-url = "https://github.com/yourusername/yourrepo" | ||
mathjax-support = true | ||
|
||
[preprocessor.katex] | ||
after = ["links"] | ||
|
||
[output.pdf] | ||
optional = true | ||
pdf.links = false | ||
no-links = true |
Oops, something went wrong.