Initial commit: simple frontend helper for mortgageFi, basic debt repayment and debt viewing functionality works, tested for both cbbtc and wbtc and not weth

This commit is contained in:
Siavash Sameni
2025-08-25 16:51:24 +04:00
parent f72b337fab
commit 2dd0983883
14 changed files with 7761 additions and 191 deletions

22
app/readme/page.tsx Normal file
View File

@@ -0,0 +1,22 @@
import { promises as fs } from 'fs';
import path from 'path';
export const dynamic = 'force-static';
export default async function ReadmePage() {
const filePath = path.join(process.cwd(), 'README.md');
let content = 'README not found.';
try {
content = await fs.readFile(filePath, 'utf-8');
} catch (e) {
content = 'README not found.';
}
return (
<div className="max-w-3xl mx-auto p-6">
<h1 className="text-2xl font-semibold mb-4">README</h1>
<pre className="whitespace-pre-wrap text-sm leading-6 bg-white rounded border p-4">
{content}
</pre>
</div>
);
}