Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
make threshold pub instead of pub crate (#12814)
Browse files Browse the repository at this point in the history
  • Loading branch information
4meta5 authored Dec 5, 2022
1 parent 2bde8c1 commit 62a85fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frame/referenda/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down

0 comments on commit 62a85fb

Please sign in to comment.