Fix silent cap on transferred alpha amount by lock-available#2829
Fix silent cap on transferred alpha amount by lock-available#2829lorismoulin wants to merge 2 commits into
Conversation
18cfe63 to
f14085b
Compare
🛡️ AI Review — Skeptic (security review)VERDICT: SAFE Baseline scrutiny: established write-permission contributor with extensive substantive subtensor history; no Gittensor association found. Branch Static review found no malicious code, supply-chain changes, trusted review-file modifications, runtime panic source, authorization bypass, or exploitable economic inconsistency. The removed cap is followed by FindingsNo findings. Prior-comment reconciliation
ConclusionThe change removes silent partial fulfillment while preserving stake-availability validation, and the added tests cover insufficient stake and alpha-fee depletion. No security vulnerability was found. 📜 Previous run (superseded)
🔍 AI Review — Auditor (domain review)VERDICT: 👍 Gittensor association: UNKNOWN. Established contributor with extensive Subtensor contribution and review history; full domain scrutiny applied. The change is narrowly scoped: it removes silent capping while retaining PR #2891 overlaps only in the transaction-fee test module and addresses a different extrinsic, so it is not duplicate work. FindingsNo findings. ConclusionThe implementation matches the substantive PR description and provides appropriate regression coverage. No blocking domain issues were found. |
|
🔄 AI review updated — Skeptic: VULNERABLE |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
🔄 AI review updated — Skeptic: SAFE Auditor: 👍 |
|
Superseded by #2898 (v431 release): these changes were reviewed and integrated there. |
Description
Note: This is a good PR for the community to discuss and possibly vote.
When transferring alpha between subnets, the extrinsics currently silently cap transfer amount by available alpha: If more alpha is requested to transfer, the extrinsic transfers only what's available and succeeds. There are two concurrent and conflicting issues:
Type of Change
Breaking Change
Some clients may be broken if they request transfer amounts above the unlocked alpha.
Checklist
./scripts/fix_rust.shto ensure my code is formatted and linted correctly