docs: Enhance development setup documentation and update environment variable validation

- Added a new section in CURRENT_STATUS.md detailing prerequisites and quick start instructions for development setup.
- Updated environment variable validation to include defaults for missing variables in env.ts.
- Improved error handling in errorHandler.ts for better validation feedback.
- Made various code adjustments across services to ensure robustness and clarity.
This commit is contained in:
defiQUG
2025-11-05 19:00:46 -08:00
parent c872168d23
commit 14dfd3c9bf
18 changed files with 311 additions and 27 deletions

View File

@@ -115,9 +115,9 @@ export function checkStepDependencies(steps: PlanStep[]): ValidationResult {
function getStepOutput(step: PlanStep): { asset: string; amount: number } | null {
switch (step.type) {
case "borrow":
return { asset: step.asset, amount: step.amount };
return step.asset ? { asset: step.asset, amount: step.amount } : null;
case "swap":
return { asset: step.to, amount: step.amount };
return step.to ? { asset: step.to, amount: step.amount } : null;
default:
return null;
}