Function cw20_bonding::contract::do_query[][src]

pub fn do_query(
    deps: Deps<'_>,
    _env: Env,
    msg: QueryMsg,
    curve_fn: CurveFn
) -> StdResult<Binary>

We pull out logic here, so we can import this from another contract and set a different Curve. This contacts sets a curve with an enum in InstantitateMsg and stored in state, but you may want to use custom math not included - make this easily reusable