Fix issues

This commit is contained in:
JCW
2026-07-14 20:02:10 +01:00
parent 31f1d5ff50
commit d5bb723e04
8 changed files with 454 additions and 45 deletions

View File

@@ -1052,7 +1052,7 @@ TRANSACTION(ttLOAN_SET, 80, LoanSet,
TRANSACTION(ttLOAN_DELETE, 81, LoanDelete,
Delegation::NotDelegable,
featureLendingProtocol,
NoPriv, ({
MayModifyVault, ({
{sfLoanID, SoeRequired},
}))

View File

@@ -96,6 +96,7 @@ class ValidVault
Number principalOutstanding = 0;
Number totalValueOutstanding = 0;
Number managementFeeOutstanding = 0;
uint32_t flags = 0;
// Interest booked to the vault at loan creation: the portion of the
// total value owed that is neither principal nor broker management fee.

View File

@@ -24,9 +24,11 @@ class LoanSet : public Transactor
private:
static std::uint32_t
getStartDate(ReadView const& view, STTx const& tx);
static bool
isTwoStepFlowEnabled(Rules const& rules);
/* Returns true if the transaction is using the two-step flow. */
static bool
isTwoStepFlow(STTx const& tx, Rules const& rules);
isTwoStepFlow(STTx const& tx);
/* Returns true if the transaction is using the one-step flow. */
static bool
isOneStepFlow(STTx const& tx);