docs: Add withdrawal system fixes to copilot instructions

Added recent commit examples to git workflow documentation:
- ATA implementation for USDC withdrawals (c37a9a3)
- MIN_SIGNAL_QUALITY_SCORE variable name fix
- Withdrawal statistics accuracy fix (8d53c4b)

Shows proper commit message format with types (feat, fix, critical)
and detailed descriptions of changes.
This commit is contained in:
mindesbunister
2025-11-19 20:38:11 +01:00
parent c37a9a37d3
commit d28da02089

View File

@@ -2981,8 +2981,23 @@ if (!enabled) {
"
git push
```
- Types: `feat:` (feature), `fix:` (bug fix), `docs:` (documentation), `refactor:` (code restructure)
- Types:
* `feat:` (new feature)
* `fix:` (bug fix)
* `docs:` (documentation)
* `refactor:` (code restructure)
* `critical:` (financial/safety critical fixes)
- This is NOT optional - code exists only when committed and pushed
- **Recent examples:**
* `fix: Implement Associated Token Account for USDC withdrawals` (c37a9a3, Nov 19, 2025)
- Fixed PublicKey undefined, ATA resolution, excluded archive
- Successfully tested $6.58 withdrawal with on-chain confirmation
* `fix: Correct MIN_QUALITY_SCORE to MIN_SIGNAL_QUALITY_SCORE` (Nov 19, 2025)
- Settings UI using wrong ENV variable name
- Quality score changes now take effect
* `critical: Fix withdrawal statistics to use actual Drift deposits` (8d53c4b, Nov 19, 2025)
- Query cumulativeDeposits from Drift ($1,440.61 vs hardcoded $546)
- Created /api/drift/account-summary endpoint
13. **DOCKER MAINTENANCE (AFTER BUILDS):** Clean up accumulated cache to prevent disk full:
```bash
# Remove dangling images (old builds)