diff --git a/src/masternodes/govvariables/attributes.cpp b/src/masternodes/govvariables/attributes.cpp index 4227294687..2ac0147c87 100644 --- a/src/masternodes/govvariables/attributes.cpp +++ b/src/masternodes/govvariables/attributes.cpp @@ -1215,8 +1215,11 @@ Res ATTRIBUTES::Apply(CCustomCSView & mnview, const uint32_t height) ratio.insert(data.ratio); return true; }); + // No loan schemes, fall back to 100% limit if (ratio.empty()) { - return Res::Err("Set loan scheme before setting collateral factor."); + if (const auto amount = std::get_if(&attribute.second); amount && *amount > COIN) { + return Res::Err("Percentage exceeds 100%%"); + } } const auto factor = std::get_if(&attribute.second); if (!factor) {