mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-29 00:08:10 +00:00
feat: Add a new closed ended vault to extend SAV (#7921)
Co-authored-by: Vito Tumas <5780819+Tapanito@users.noreply.github.com>
This commit is contained in:
@@ -28,6 +28,12 @@ Vault::create(CreateArgs const& args) const
|
||||
jv[jss::Asset] = toJson(args.asset);
|
||||
if (args.flags)
|
||||
jv[jss::Flags] = *args.flags;
|
||||
if (args.vaultKind)
|
||||
jv[sfVaultKind] = *args.vaultKind;
|
||||
if (args.subscriptionDate)
|
||||
jv[sfSubscriptionDate] = *args.subscriptionDate;
|
||||
if (args.redemptionDate)
|
||||
jv[sfRedemptionDate] = *args.redemptionDate;
|
||||
return {jv, keylet};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user