Update type of CoverRate fields

This commit is contained in:
Ed Hennis
2025-03-31 17:53:47 -04:00
parent f77d435fdc
commit abf5f08297
2 changed files with 3 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ std::uint16_t constexpr maxFeeRate = 10'000;
loss capital operations are between 0 and 100000 inclusive. A value of 1 is
equivalent to 1/10 bps or 0.001%.
*/
std::uint16_t constexpr maxCoverRate = 100'000;
std::uint32_t constexpr maxCoverRate = 100'000;
/** The maximum length of a URI inside an NFT */
std::size_t constexpr maxTokenURILength = 256;

View File

@@ -60,8 +60,6 @@ TYPED_SFIELD(sfHookExecutionIndex, UINT16, 19)
TYPED_SFIELD(sfHookApiVersion, UINT16, 20)
TYPED_SFIELD(sfLedgerFixType, UINT16, 21)
TYPED_SFIELD(sfManagementFeeRate, UINT16, 22)
TYPED_SFIELD(sfCoverRateMinimum, UINT16, 23)
TYPED_SFIELD(sfCoverRateLiquidation, UINT16, 24)
TYPED_SFIELD(sfInterestRate, UINT16, 25)
TYPED_SFIELD(sfLateInterestRate, UINT16, 26)
TYPED_SFIELD(sfCloseInterestRate, UINT16, 27)
@@ -127,6 +125,8 @@ TYPED_SFIELD(sfPreviousPaymentDate, UINT32, 55)
TYPED_SFIELD(sfNextPaymentDueDate, UINT32, 56)
TYPED_SFIELD(sfPaymentRemaining, UINT32, 57)
TYPED_SFIELD(sfPaymentTotal, UINT32, 58)
TYPED_SFIELD(sfCoverRateMinimum, UINT32, 59)
TYPED_SFIELD(sfCoverRateLiquidation, UINT32, 60)
// 64-bit integers (common)
TYPED_SFIELD(sfIndexNext, UINT64, 1)