Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SHAKOTN authored Aug 31, 2023
1 parent 5556039 commit 472bea7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,22 @@ $ forge test --fork-url ${{ env.ALCHEMY_RPC_URL }} --fork-block-number XXX -vv
## List of strategies:

## Flux Strategy
Fkux strategy is operating on top of the Flux Protocol: https://fluxfinance.com/

Flux allows us to lend stablecoins and generate some yield on that

### How does it work in the context of GSquared protocol?

Once strategy is added into GVault strategies, debtRatio is set, it can start harvesting yield.

Now, let's get a closer look on how harvest happens:
This is the [entrypoint](https://github.com/groLabs/gro-strategies-mix/blob/main/src/FluxStrategy.sol#L131) to the harvest. What it does:
1. Pulls out assets from GVault which are denominated in 3CRV
2. Withdraws USDC/USDT/DAI from 3CRV pool, effectively exchanging 3crv to any of those stables
3. And calls `.mint()` on corresponding fToken from Flux Finance protocol

For any other consequent harvest it:
- Compares invested assets from Flux protocol to the strategy debt snapshot in GVault
- Report back profit or loss to GVault
- Divest assets from Flux to return back to gVault
- Invest loose assets back into Flux to farm more yield

0 comments on commit 472bea7

Please sign in to comment.