pub fn may_pay<T>(
info: &MessageInfo,
denom: &Denom<T>,
) -> Result<AmountU128<T>, MonetaryError>Expand description
Similar to must_pay, but it any payment is optional. Returns an error if a different
denom was sent. Otherwise, returns the amount of denom sent, or 0 if nothing sent.