-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
24a995b
commit 44daf47
Showing
1 changed file
with
16 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# [Lulo](https://lulo.fi) Example CPI Integration | ||
|
||
This program is an example of User Vaults. | ||
|
||
Users can deposit to vaults and can transfer the amount to [Lulo](https://lulo.fi) via CPI to earn interest. | ||
|
||
Users can withdraw from their Vault, if the vault has enought amount it sends directly to the user. Otherwise it needs to requests to [Lulo](https://lulo.fi) via CPI which will send the withdraw amount later in a async operation. | ||
|
||
This idea can be adapted to a Protocol Reserve/Vault where only the program admin can deposit, transfer to [Lulo](https://lulo.fi) and withdraw back to the program. | ||
|
||
### Run | ||
|
||
1. Setup Rust >= 1.73, Solana CLI >= 1.16 and Anchor CLI >= 0.28.0 | ||
2. `git clone xx` | ||
3. `yarn` | ||
4. `anchor test` |