mirror of
https://gitlab.com/pezkuwichain/pezkuwi-sdk.git
synced 2026-10-20 18:56:23 +00:00
wallet-android's Bridge screen has always advertised a 1 USDT minimum (MIN_USDT constant), but usdt-bridge's actual min_deposit/min_withdraw defaulted to 10 USDT since the tool's original scaffold commit - nobody had ever reconciled the two. Confirmed live: a real user swap of ~1 USDT landed correctly at the multisig custody address but was silently skipped by listen_deposits (amount < min_deposit), so the user never received wUSDT despite the wallet telling them 1 USDT was a valid amount. Backend now matches the value already promised to users, not the other way around - changing the wallet's displayed minimum after users have already relied on it would be the wrong direction to reconcile this in.
33 lines
3.6 KiB
JSON
33 lines
3.6 KiB
JSON
{
|
|
"polkadot_rpc": "wss://polkadot-asset-hub-rpc.polkadot.io",
|
|
"pezkuwi_rpc": "wss://asset-hub-rpc.pezkuwichain.io",
|
|
"polkadot_usdt_asset_id": 1984,
|
|
"pezkuwi_wusdt_asset_id": 1000,
|
|
"min_deposit": 1000000,
|
|
"min_withdraw": 1000000,
|
|
"fee_basis_points": 10,
|
|
"seed_path": "bridge_seed.json",
|
|
"db_path": "bridge_db.json",
|
|
"custody_multisig_polkadot": "15sF76THfpefUaKomHZSpssayRbsp6Yt6ESgMrLjzJCmpe66",
|
|
"custody_multisig_pezkuwi": "5GvwxmCDp3PC33KHoeWSgj3S7ocE7nzk1jiCCZMPSDBFeNcj",
|
|
"serok_chat_id": 5362991649,
|
|
"ops_chat_id": -5420200114,
|
|
"max_single_tx": 50000000000,
|
|
"auto_pay_daily_cap": 200000000000,
|
|
"circuit_breaker_window_minutes": 30,
|
|
"circuit_breaker_fraction": 0.5,
|
|
"_automation_2026-07-14": {
|
|
"note": "Small/mid swaps auto-pay via the automation key's Assets.transfer_approved allowance - no per-transaction 3-of-5 wait. max_single_tx (50,000 USDT) caps any single auto-paid transaction; auto_pay_daily_cap (200,000 USDT) is a rolling 24h budget tracked separately per leg (deposit wUSDT payouts vs withdrawal USDT payouts), NOT a per-tx ceiling - many sub-50K swaps can clear same-day. circuit_breaker_fraction/circuit_breaker_window_minutes halt all auto-pay if the daily budget is consumed abnormally fast (>=50% within 30 min) until a human runs `reset-circuit-breaker`. Anything over max_single_tx, or that would exceed the remaining daily budget, or while the breaker is tripped, ALWAYS falls back to full manual 3-of-5 review via pwap-web - this never bypasses the multisig, it only decides whether a given event needs it. Requires AUTOMATION_KEY_MNEMONIC env var to be set (see res/bridge_automation_key.json) - if unset, behavior is 100% manual, unchanged from before this feature.",
|
|
"requires_on_chain_action": "The automation key's actual Assets.approve_transfer allowance is renewed by PezbridgeBot's 3-of-5-signed renewal flow (pezbridge_bot_config.json's renewal_threshold/topup_amount) - those were bumped alongside this to top up to a size that supports the new daily cap. The NEXT renewal signers approve via pwap-web will lift the real on-chain ceiling; until then, auto-pay is bounded by whatever allowance already exists on-chain today, which is smaller. This is a fail-safe direction: if the on-chain allowance runs out, the system simply falls back to manual, never fails open."
|
|
},
|
|
"_custody_migration_2026-07-13": {
|
|
"note": "Custody is no longer a single hot key. wUSDT (asset 1000) owner/issuer/admin/freezer on Pezkuwi Asset Hub is now the 3-of-5 multisig below - seed_path/BRIDGE_SEED_MNEMONIC in this file is stale and must not be used to mint/burn/transfer_ownership going forward. listen_deposits/listen_withdrawals in src/main.rs were updated the same day: they now only detect events and record status=pending_multisig_approval - actual mint/burn/release requires 3 of the 5 signatories to approve via pwap-web's multisig UI (shared/lib/multisig.ts, shared/lib/usdt.ts).",
|
|
"multisig_threshold": 3,
|
|
"multisig_signatories": 5,
|
|
"multisig_account_pezkuwi_prefix42": "5GvwxmCDp3PC33KHoeWSgj3S7ocE7nzk1jiCCZMPSDBFeNcj",
|
|
"multisig_account_polkadot_prefix0": "15sF76THfpefUaKomHZSpssayRbsp6Yt6ESgMrLjzJCmpe66",
|
|
"pezkuwi_side_status": "live - owns wUSDT asset 1000, seeded with 1,000,000 wUSDT (tx 0xd5dc550c5cf04f323e5c1d9c13f2056acafc9f56404c657b9743c15ff3a3aacb)",
|
|
"polkadot_side_status": "address computed, zero balance - no real USDT has ever been deposited by this ecosystem on Polkadot Asset Hub; needs at least existential DOT + real USDT deposits to become useful",
|
|
"details_doc": "/home/myhez/res/validators-tiki.md"
|
|
}
|
|
} |