From f9f1ac25155960514cd1edde0898e81570410e85 Mon Sep 17 00:00:00 2001
From: Amar Singh <asinghchrony@protonmail.com>
Date: Mon, 5 Dec 2022 07:14:43 -0500
Subject: [PATCH] make threshold pub instead of pub crate (#12814)

---
 substrate/frame/referenda/src/types.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/substrate/frame/referenda/src/types.rs b/substrate/frame/referenda/src/types.rs
index a97faca3bbf..3d5fa753f53 100644
--- a/substrate/frame/referenda/src/types.rs
+++ b/substrate/frame/referenda/src/types.rs
@@ -409,7 +409,7 @@ impl Curve {
 	}
 
 	/// Determine the `y` value for the given `x` value.
-	pub(crate) fn threshold(&self, x: Perbill) -> Perbill {
+	pub fn threshold(&self, x: Perbill) -> Perbill {
 		match self {
 			Self::LinearDecreasing { length, floor, ceil } =>
 				*ceil - (x.min(*length).saturating_div(*length, Down) * (*ceil - *floor)),
-- 
GitLab