rwadurian/backend/mpc-system/services
hailin fd5f4d10ed fix(transfer): MAX button now deducts gas fee from balance
Both Electron and Android apps now calculate the maximum transferable
amount by subtracting estimated gas fees from the balance:

Electron (Home.tsx):
- Added calculateMaxAmount() async function that fetches gas price
- Uses 21000 gas limit for simple transfers
- Shows loading state while calculating

Android (TransferScreen.kt):
- Added calculateMaxTransferAmount() in TransactionUtils
- Uses coroutine to fetch gas price asynchronously
- Shows "..." while calculating, falls back to balance on error

Both implementations:
- Add 10% buffer to gas price for safety
- Round down to 6 decimal places
- Show error if balance insufficient for gas

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 03:08:01 -08:00
..
account Revert "fix(co-keygen): convert threshold at storage time to match tss-lib convention" 2025-12-31 10:24:25 -08:00
message-router fix(message-router): 修复 JoinSession 代理未转发 Status 字段 2025-12-30 09:20:15 -08:00
server-party feat(server-party): add ExecuteWithSessionInfo for co-managed keygen 2025-12-30 00:43:09 -08:00
server-party-api fix(context): use parent context instead of Background() to allow proper cancellation 2025-12-06 06:36:34 -08:00
server-party-co-managed fix(server-party-co-managed): use session_started event for participants list 2025-12-30 00:52:28 -08:00
service-party-android fix(transfer): MAX button now deducts gas fee from balance 2026-01-01 03:08:01 -08:00
service-party-app fix(transfer): MAX button now deducts gas fee from balance 2026-01-01 03:08:01 -08:00
session-coordinator fix(session): distinguish keygen vs sign in CanStart() and AllPartiesReady() 2025-12-31 08:34:40 -08:00
tss-wasm fix(tss): convert threshold to tss-lib format (threshold-1) in all keygen and signing 2025-12-31 12:19:58 -08:00