mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-02 00:15:50 +00:00
Combine XChainBridge Amendments (#523)
This commit is contained in:
@@ -80,7 +80,7 @@ namespace detail {
|
||||
// Feature.cpp. Because it's only used to reserve storage, and determine how
|
||||
// large to make the FeatureBitset, it MAY be larger. It MUST NOT be less than
|
||||
// the actual number of amendments. A LogicError on startup will verify this.
|
||||
static constexpr std::size_t numFeatures = 108;
|
||||
static constexpr std::size_t numFeatures = 107;
|
||||
|
||||
/** Amendments that this server supports and the default voting behavior.
|
||||
Whether they are enabled depends on the Rules defined in the validated
|
||||
|
||||
@@ -46,7 +46,6 @@ XRPL_FIX (ReducedOffersV2, Supported::yes, VoteBehavior::DefaultNo
|
||||
XRPL_FEATURE(NFTokenMintOffer, Supported::yes, VoteBehavior::DefaultNo)
|
||||
XRPL_FIX (AMMv1_1, Supported::yes, VoteBehavior::DefaultNo)
|
||||
XRPL_FIX (PreviousTxnID, Supported::yes, VoteBehavior::DefaultNo)
|
||||
XRPL_FIX (XChainRewardRounding, Supported::yes, VoteBehavior::DefaultNo)
|
||||
XRPL_FEATURE(PriceOracle, Supported::yes, VoteBehavior::DefaultNo)
|
||||
XRPL_FIX (AMMOverflowOffer, Supported::yes, VoteBehavior::DefaultYes)
|
||||
XRPL_FIX (InnerObjTemplate, Supported::yes, VoteBehavior::DefaultNo)
|
||||
|
||||
@@ -678,10 +678,7 @@ finalizeClaimHelper(
|
||||
// if the transfer failed, distribute the pool for "OnTransferFail"
|
||||
// cases (the attesters did their job)
|
||||
STAmount const share = [&] {
|
||||
auto const round_mode =
|
||||
innerSb.rules().enabled(fixXChainRewardRounding)
|
||||
? Number::rounding_mode::downward
|
||||
: Number::getround();
|
||||
auto const round_mode = Number::rounding_mode::downward;
|
||||
saveNumberRoundMode _{Number::setround(round_mode)};
|
||||
|
||||
STAmount const den{rewardAccounts.size()};
|
||||
|
||||
Reference in New Issue
Block a user