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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user