def strat_of
import cswap-bend-cli@0.1.0.0/profile.bend as Profileimport Base
import cswap-bend-cli@0.1.0.0/policy/safe.bend as SF
220# `best` keeps the engine strategy of the settings (best or consume-first);
221# any other strategy replaces it.
222def strat_of(+algo: SF.Algo, +st: String) -> String:
223 match algo:
224 case SF.ABest{}:
225 st
226 case o:
227 SF.name(o)