Function cw20_bonding::contract::do_execute[][src]

pub fn do_execute(
    deps: DepsMut<'_>,
    env: Env,
    info: MessageInfo,
    msg: ExecuteMsg,
    curve_fn: CurveFn
) -> Result<Response, ContractError>

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 InstantiateMsg and stored in state, but you may want to use custom math not included - make this easily reusable