Implement LoanBrokerCoverClawback and many test cases

- Not all tests are passing yet
This commit is contained in:
Ed Hennis
2025-07-17 20:01:20 -04:00
parent e4480569f7
commit c46d894192
8 changed files with 648 additions and 36 deletions

View File

@@ -426,6 +426,16 @@ coverWithdraw(
return jv;
}
Json::Value
coverClawback(AccountID const& account, std::uint32_t flags)
{
Json::Value jv;
jv[sfTransactionType] = jss::LoanBrokerCoverClawback;
jv[sfAccount] = to_string(account);
jv[sfFlags] = flags;
return jv;
}
} // namespace loanBroker
/* Loan */