Skip to content

Commit

Permalink
Create readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielkoerich committed Jun 14, 2024
1 parent 24a995b commit 44daf47
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions readme.md
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`

0 comments on commit 44daf47

Please sign in to comment.