func ValidateMinStandardAmt(minStandardAmt sdk.Int) error {
	if minStandardAmt.IsNegative() {
		return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, fmt.Sprintf("minimum standard token amount %s can not be negative", minStandardAmt.String()))
	}
	return nil
}
ValidateMinStandardAmt verifies whether the minimum standard amount is legal
package types
import (
	fmt "fmt"
	"strings"
	sdk "github.com/cosmos/cosmos-sdk/types"
	sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
func ValidateInput(input Input) error {
	if !(input.Coin.IsValid() && input.Coin.IsPositive()) {
		return sdkerrors.Wrapf(sdkerrors.ErrInvalidCoins, "invalid input (%s)", input.Coin.String())
	}
	if strings.HasPrefix(input.Coin.Denom, LptTokenPrefix) {
		return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid input denom, should not begin with (%s)", LptTokenPrefix)
	}
	if _, err := sdk.AccAddressFromBech32(input.Address); err != nil {
		return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid input address (%s)", err)
	}
	return nil
}
func ValidateOutput(output Output) error {
	if !(output.Coin.IsValid() && output.Coin.IsPositive()) {
		return sdkerrors.Wrapf(sdkerrors.ErrInvalidCoins, "invalid output (%s)", output.Coin.String())
	}
	if strings.HasPrefix(output.Coin.Denom, LptTokenPrefix) {
		return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid output denom, should not begin with (%s)", LptTokenPrefix)
	}
	if _, err := sdk.AccAddressFromBech32(output.Address); err != nil {
		return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid output address (%s)", err)
	}
	return nil
}
func ValidateDeadline(deadline int64) error {
	if deadline <= 0 {
		return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, fmt.Sprintf("deadline %d must be greater than 0", deadline))
	}
	return nil
}
func ValidateMaxToken(maxToken sdk.Coin) error {
	if !(maxToken.IsValid() && maxToken.IsPositive()) {
		return sdkerrors.Wrapf(sdkerrors.ErrInvalidCoins, "invalid maxToken (%s)", maxToken.String())
	}
	if strings.HasPrefix(maxToken.Denom, LptTokenPrefix) {
		return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "max token must be non-liquidity token")
	}
	return nil
}
func ValidateExactStandardAmt(standardAmt sdk.Int) error {
	if !standardAmt.IsPositive() {
		return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "standard token amount must be positive")
	}
	return nil
}
func ValidateMinLiquidity(minLiquidity sdk.Int) error {
	if minLiquidity.IsNegative() {
		return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "minimum liquidity can not be negative")
	}
	return nil
}
func ValidateMinToken(minToken sdk.Int) error {
	if minToken.IsNegative() {
		return sdkerrors.Wrap(sdkerrors.ErrInvalidCoins, "minimum token amount can not be negative")
	}
	return nil
}
func ValidateWithdrawLiquidity(liquidity sdk.Coin) error {
	if !liquidity.IsValid() || !liquidity.IsPositive() {
		return sdkerrors.Wrapf(sdkerrors.ErrInvalidCoins, "invalid withdrawLiquidity (%s)", liquidity.String())
	}
	if err := ValidateLptDenom(liquidity.Denom); err != nil {
		return err
	}
	return nil
}