diff --git a/static/js/index.js b/static/js/index.js
index 47a6368..684541f 100644
--- a/static/js/index.js
+++ b/static/js/index.js
@@ -286,34 +286,6 @@ window.app = Vue.createApp({
}
},
- // Test Client Creation (temporary for testing)
- async createTestClient() {
- try {
- const testData = {
- user_id: this.g.user.id,
- wallet_id: this.g.user.wallets[0].id,
- username: this.g.user.username || `user_${this.g.user.id.substring(0, 8)}`,
- dca_mode: 'flow'
- }
-
- const { data: newClient } = await LNbits.api.request(
- 'POST',
- '/satmachineadmin/api/v1/dca/clients',
- this.g.user.wallets[0].adminkey,
- testData
- )
-
- this.dcaClients.push(newClient)
-
- this.$q.notify({
- type: 'positive',
- message: 'Test client created successfully!',
- timeout: 5000
- })
- } catch (error) {
- LNbits.utils.notifyApiError(error)
- }
- },
// Quick Deposit Methods
async sendQuickDeposit() {
diff --git a/templates/satmachineadmin/index.html b/templates/satmachineadmin/index.html
index 297407b..1d8df50 100644
--- a/templates/satmachineadmin/index.html
+++ b/templates/satmachineadmin/index.html
@@ -95,15 +95,6 @@
No DCA clients registered yet. Clients must first install and configure the DCA client extension.
-
-
-
diff --git a/views_api.py b/views_api.py
index 119a300..da143ed 100644
--- a/views_api.py
+++ b/views_api.py
@@ -12,7 +12,6 @@ from starlette.exceptions import HTTPException
from .crud import (
# DCA CRUD operations
- create_dca_client,
get_dca_clients,
get_dca_client,
update_dca_client,
@@ -36,7 +35,6 @@ from .crud import (
)
from .models import (
# DCA models
- CreateDcaClientData,
DcaClient,
UpdateDcaClientData,
CreateDepositData,
@@ -85,14 +83,6 @@ async def api_get_dca_client(
# Admin extension only reads existing clients and manages their deposits
-# TEMPORARY: Test client creation endpoint (remove in production)
-@satmachineadmin_api_router.post("/api/v1/dca/clients", status_code=HTTPStatus.CREATED)
-async def api_create_test_dca_client(
- data: CreateDcaClientData,
- wallet: WalletTypeInfo = Depends(require_admin_key),
-) -> DcaClient:
- """Create a test DCA client (temporary for testing)"""
- return await create_dca_client(data)
@satmachineadmin_api_router.get("/api/v1/dca/clients/{client_id}/balance")