multiversx_sc_modules::bonding_curve::curves::curve_function

Trait CurveFunction

Source
pub trait CurveFunction<M: ManagedTypeApi> {
    // Required method
    fn calculate_price(
        &self,
        token_start: &BigUint<M>,
        amount: &BigUint<M>,
        arguments: &CurveArguments<M>,
    ) -> BigUint<M>;
}

Required Methods§

Source

fn calculate_price( &self, token_start: &BigUint<M>, amount: &BigUint<M>, arguments: &CurveArguments<M>, ) -> BigUint<M>

Implementors§