feat: collect addreess

This commit is contained in:
hashbro
2026-09-21 00:17:35 +08:00
parent b916e8b50d
commit 7651f6a589
4 changed files with 17 additions and 24 deletions
@@ -46,9 +46,6 @@ class SystemSettingsController extends Controller
'auto_transfer_threshold_trx' => ['nullable', 'numeric', 'min:0'],
'auto_transfer_threshold_eth' => ['nullable', 'numeric', 'min:0'],
'auto_transfer_threshold_btc' => ['nullable', 'numeric', 'min:0'],
'transfer_to_address' => ['nullable', 'string', 'max:128'],
'transfer_to_address_eth' => ['nullable', 'string', 'max:128'],
'transfer_to_address_btc' => ['nullable', 'string', 'max:128'],
'transfer_fee_address_tron' => ['nullable', 'string', 'max:128'],
'transfer_fee_private_key_tron' => ['nullable', 'string', 'max:255'],
'transfer_fee_topup_trx' => ['nullable', 'numeric', 'min:0.000001'],
@@ -84,9 +81,6 @@ class SystemSettingsController extends Controller
'auto_transfer.threshold_trx' => $threshold($data['auto_transfer_threshold_trx'] ?? null) ?? '',
'auto_transfer.threshold_eth' => $threshold($data['auto_transfer_threshold_eth'] ?? null) ?? '',
'auto_transfer.threshold_btc' => $threshold($data['auto_transfer_threshold_btc'] ?? null) ?? '',
'transfer.to_address' => $threshold($data['transfer_to_address'] ?? null) ?? '',
'transfer.to_address_eth' => $threshold($data['transfer_to_address_eth'] ?? null) ?? '',
'transfer.to_address_btc' => $threshold($data['transfer_to_address_btc'] ?? null) ?? '',
'transfer.fee_address_tron' => $threshold($data['transfer_fee_address_tron'] ?? null) ?? '',
'transfer.fee_private_key_tron' => $threshold($data['transfer_fee_private_key_tron'] ?? null),
'transfer.fee_topup_trx' => $threshold($data['transfer_fee_topup_trx'] ?? null) ?? '20',