<?php

namespace App\Http\Controllers;

use App\Models\CollateralAsset;
use Illuminate\Http\Request;

class EarnController extends Controller
{
    public function index()
    {
        $assets = CollateralAsset::query()
            ->where('is_active', true)
            ->orderBy('symbol')
            ->get(['id', 'symbol', 'name', 'staking_apr']);

        return view('earn.index', [
            'assets' => $assets,
        ]);
    }
}
