mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 02:21:14 +00:00
make threshold pub instead of pub crate (#12814)
This commit is contained in:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user