Skip to content
Snippets Groups Projects
Commit f9f1ac25 authored by Amar Singh's avatar Amar Singh Committed by GitHub
Browse files

make threshold pub instead of pub crate (#12814)

parent 5eb84f9c
No related merge requests found
......@@ -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)),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment