Problem
The useYieldStream.ts hook is entirely mocked with setTimeout delays and hardcoded strings, making the frontend completely disconnected from the actual Soroban testnet environment.
Expected behavior
The hook instantiates the YieldStreamClient from @yieldstream/sdk, using it to perform real getTVL, getExchangeRate, deposit, and withdraw calls using the connected Freighter wallet.
Files to update
src/hooks/useYieldStream.ts
package.json
Project relevance
This is the core integration task that bridges the Next.js UI with the Rust smart contracts via the protocol's official middleware.
Acceptance criteria
Problem
The
useYieldStream.tshook is entirely mocked withsetTimeoutdelays and hardcoded strings, making the frontend completely disconnected from the actual Soroban testnet environment.Expected behavior
The hook instantiates the
YieldStreamClientfrom@yieldstream/sdk, using it to perform realgetTVL,getExchangeRate,deposit, andwithdrawcalls using the connected Freighter wallet.Files to update
src/hooks/useYieldStream.tspackage.jsonProject relevance
This is the core integration task that bridges the Next.js UI with the Rust smart contracts via the protocol's official middleware.
Acceptance criteria
@yieldstream/sdkis installed and instantiated inside the hook