Open bekauz opened 7 months ago
currently there are some cases in v2 contracts where we return StdError variants for no particular reason.
StdError
e.g. the following example could easily deserve its own enum variant of UnauthorizedDenomDistribution or something along those lines:
UnauthorizedDenomDistribution
if explicit_denoms.contains(&denom) { return Err(NeutronError::Std(StdError::generic_err( "unauthorized denom distribution", ))); }
currently there are some cases in v2 contracts where we return
StdError
variants for no particular reason.e.g. the following example could easily deserve its own enum variant of
UnauthorizedDenomDistribution
or something along those lines: