adds VaultDepositBlock flag#469
Conversation
|
I'm surprised this isn't a regulatory issue. |
|
@dangell7 could you elaborate further please? |
The core issue is that this flag can be toggled unilaterally by the vault operator at any time, with no governance process, no advance disclosure, and no investor consent mechanism at the protocol layer. In traditional finance, selectively blocking new deposits while existing investors can still exit (a "soft close") is legal, but it must be disclosed upfront and cannot be deployed opportunistically. A safer design would be to make this flag immutable after vault creation, set once, known to all investors before they ever deposit. |
Do you mean similar to |
Feel free to ignore this PR for now. |
Can we switch it to a draft PR then? |
ximinez
left a comment
There was a problem hiding this comment.
Forgot to post this yesterday along with XRPLF/rippled#6361
| 4. `MPToken(MPTokenIssuanceID, AccountID).MPTAmount` < `Amount` (insufficient balance). (`tecINSUFFICIENT_FUNDS`) | ||
|
|
||
| 9. The `Asset` is an `IOU`: | ||
| 1. `lsfDefaultRipple` flag is not set on either the issuer or the depositor. (`terNO_RIPPLE`) |
There was a problem hiding this comment.
It's incorrect to check the default ripple flag during a transfer. You need to check the "no ripple" flag on the relevant trustlines.
This PR updates the VaultDeposit transaction logic with the following features:
tfVaultDonateflag, which allows the Vault Owner to donate assets into a Vault.Motivation
Blocking
There are situations where a Vault Owner may need to block incoming deposits to protect users—for example, if a vault becomes insolvent.
Donation
Once the Vault becomes insolvent, the donation feature provides a method for the Vault Owner to make the depositors whole.
Implementation
tfVaultDonateflag to the VaultDeposit transaction.High Level Overview of Change
Context of Change
Type of Change