Lending + Farm User Guide (DAI example)
This step-by-step guide shows a common user flow using DAI as the example asset. It covers two separate activities:
- Borrowing DAI from the Lending page using wrapped Sonic (
wS) as collateral. - Earning PSW rewards by staking psDAI in the Farm (a Vault → Farm flow).
✅ Quick checklist before you start
- Connect your wallet.
- Switch to the correct network used by the app (Sonic Testnet).
- Keep a small amount of native gas token (
S) in your wallet for fees.
Quick Overview
There are two main ways to interact with the platform:
Borrow DAI
Deposit collateral → Borrow DAI → Repay later
Example flow:
- Convert
S→wS(wrapping Sonic token). - Add
wSas collateral on Lending. - Borrow
DAIagainst that collateral. - Repay the loan when ready.
Earn Farming Rewards
Deposit DAI → Receive psDAI → Stake psDAI → Earn PSW rewards
Example flow:
- Deposit
DAIinto thepsDAIvault. - Receive
psDAIshares. - Stake
psDAIin the Farm. - Harvest
PSWrewards.
Token Glossary
- S – Native gas token on Sonic.
- wS – Wrapped Sonic (used as collateral in lending).
- DAI – Stablecoin you can borrow and deposit in vaults.
- psDAI – Vault share token received after depositing DAI.
- PSW – Reward token earned from farming.
Transaction Approvals
Some actions require two wallet transactions:
- Token approval – a one‑time permission for the contract to use your tokens.
- The actual operation – deposit, borrow, swap, stake, etc.
This is normal for ERC‑20 tokens. Always confirm both when prompted.
Get Collateral First (wS)
Borrowing on the Lending page requires wS (Wrapped Sonic) as collateral. If you only hold the native S token, you must wrap it first.
Wrap S → wS
- Open the Swap page (
/swap). - Select the pair
S→wS. - Enter the amount of
Sto convert. This action wraps Sonic rather than performing a market trade.- Fees are minimal.
- Default slippage is usually fine.
- Click Swap and confirm the transaction in your wallet.
Result: your wallet now holds wS, ready for use as collateral.
Part A: How To Borrow DAI
1. Open the Lending page
Navigate to /lending.
2. Select the DAI market
In 01 · SELECT A MARKET:
- Choose the market whose asset is DAI.
- Click Refresh in 02 · MARKET STATS after selecting.
3. Add wS collateral
Collateral is the asset you lock to borrow against.
- Go to 04 · ACTIONS → COLLATERAL tab.
- Enter the amount of wS you want to deposit.
- Click Approve + Add Collateral and confirm the wallet transactions.
Your position will update to show the new collateral.
4. Check how much you can borrow
Look in 03 · YOUR POSITION for Max Borrowable (Est.). This is your safe borrowing limit based on collateral.
5. Borrow DAI
- Open the BORROW tab.
- Enter the amount of
DAIyou want (or press MAX carefully). - Click Borrow DAI and confirm the transaction.
⚠️ Avoid borrowing the maximum. A good beginner rule is to borrow 60–80 % of the estimated max to maintain a safety buffer.
6. Verify borrow success
- Check Borrow Amount in 03 · YOUR POSITION.
- Look at your wallet balance to see the received DAI.
7. Repay later
When you want to reduce or close your debt:
- Switch to the REPAY tab.
- Enter an amount (or press MAX).
- Click Approve + Repay and confirm.
Borrowing Safety Notes
- Borrowing close to your limit increases liquidation risk.
- If collateral value drops, your position may be liquidated.
Best practices:
- Maintain a safety buffer.
- Never borrow 100 % of your limit.
Part B: How To Stake in psDAI Pool (Vault → Farm)
⚠️ Important: You cannot stake DAI directly in the Farm. First convert DAI into psDAI vault shares.
Flow:
- Deposit DAI into Vault → receive psDAI.
- Stake psDAI in Farm.
1. Go to Vaults and get psDAI
- Open
/vaults. - Select the psDAI Vault.
- Deposit the amount of
DAIyou want and confirm wallet transactions.
Result: you will have psDAI vault shares in your wallet.
2. Open Farm page
Navigate to /farm.
3. Select psDAI Pool
In 01 · SELECT A POOL, choose psDAI Pool and click the pool card. Then click Refresh (or wait for auto‑refresh).
4. Stake psDAI
- In 03 · ACTIONS, stay on the Stake tab.
- Enter the amount of
psDAI(or press MAX). - Click Stake and confirm wallet transactions.
5. Track rewards
In 02 · YOUR POSITION you’ll see:
- Staked
- Boosted
- Pending Rewards
Rewards are paid in PSW. Click Harvest to claim.
6. Unstake when needed
Switch to the Unstake tab, enter an amount (or MAX), and click Unstake.
7. Convert psDAI back to DAI (Optional)
To exit completely:
- Return to
/vaults→ psDAI vault. - Withdraw/redeem your shares to receive underlying DAI.
This reverses the initial vault deposit.
Common Issues and Quick Fixes
Wrong Network
Symptoms:
- Missing balances
- Buttons not working
- Transactions failing
Fix: Switch wallet network to Sonic Testnet.
No Borrow Capacity
Symptoms:
- Max borrowable is zero
- Borrow button disabled
Fix: Add more wS collateral.
Cannot Stake in Farm
Symptoms:
- Stake fails
- Balance shows zero
Fix: Ensure you’ve deposited DAI into the psDAI Vault first.
Transaction Keeps Failing
Try smaller amounts, click Refresh, and re‑check balances/approvals.
Recommended Beginner Flow (small test)
- Swap a small amount of
S → wS. - Deposit a small amount of collateral in Lending.
- Borrow a small amount of
DAI. - Repay the
DAI. - Deposit a small amount of
DAIinto the psDAI vault. - Stake a small amount of
psDAIin Farm. - Harvest once.
- Unstake and redeem.
This walkthrough confirms that your wallet, network, and approvals are working before you use larger sums.