Repository navigation
Conversation
autofill charged VaultCreate one owner reserve (reserve_inc, 2 XRP on Mainnet), like AccountDelete and AMMCreate. rippled stopped charging VaultCreate an owner reserve in 3.2.0 (XRPLF/rippled#5954), so it now pays the reference fee like any other transaction. Same fix as XRPLF/xrpl.js#3430. DGE-8227 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 45 minutes. View limit detailsLimit details: You’ve used all 2 included reviews currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Small, well-scoped fix removing VAULT_CREATE from the owner-reserve fee branch so VaultCreate autofills with the base fee instead of a 2 XRP reserve, matching rippled 3.2.0+ behavior and the equivalent xrpl.js fix. The code change is minimal and correct; the new unit test file properly verifies AccountDelete/AMMCreate still pay the owner reserve while VaultCreate pays the base fee. No issues found in the actual diff.
High Level Overview of Change
autofillnow givesVaultCreatethe network base fee instead of one owner reserve.Jira: DGE-8227
Context of Change
_calculate_fee_per_transaction_typetreatedVaultCreatelikeAccountDeleteandAMMCreate, and charged itreserve_inc: 0.2 XRP on Mainnet, compared with a base fee of 10 drops. rippled stopped chargingVaultCreatean owner reserve in 3.2.0 (XRPLF/rippled#5954). Today onlyAccountDeleteandAMMCreateoverridecalculateBaseFeewithcalculateOwnerReserveFee. So every autofilledVaultCreateoverpaid by about 2 XRP, which is destroyed with the fee.The owner-reserve fee for
VaultCreatedates from #814, which added Single Asset Vault support. xrpl.js had the same overcharge and fixed it in XRPLF/xrpl.js#3430. This PR makes the same change here.Type of Change
There is one side effect for callers who set
VaultCreate.feeto the old 2 XRP by hand and submit withcheck_fee=True._check_feenow treats that fee like any other ordinary transaction's: it is higher than both the calculated fee and the 0.1 XRP ceiling, so it is refused as too high.Did you update CHANGELOG.md?
Test Plan
tests/unit/asyn/transaction/test_owner_reserve_fee.py:VaultCreatepays the base fee.AccountDeleteandAMMCreatestill pay the owner reserve.VaultCreatetest fails onmainand passes with the fix.VaultCreate, which now pays the base fee, and rippled accepts it. They ran againstrippleci/xrpld:develop --standalone(xrpld 3.4.0-rc1):vault_info, lending and lending V1_1 suitessugar/test_transaction.pymypy --strictpass.🤖 Generated with Claude Code