MCPcopy Create free account
hub / github.com/akash-network/node / validatePositiveCoin

Function validatePositiveCoin

x/verification/keeper/msg.go:1749–1754  ·  view source on GitHub ↗
(coin sdk.Coin)

Source from the content-addressed store, hash-verified

1747}
1748
1749func validatePositiveCoin(coin sdk.Coin) error {
1750 if !coin.IsValid() || !coin.IsPositive() {
1751 return moduletypes.ErrInsufficientDeposit
1752 }
1753 return nil
1754}
1755
1756func validateMsgTier(tier vtypes.VerificationTier) error {
1757 switch tier {

Callers 3

PostAuditorBondMethod · 0.85
PostProviderBondMethod · 0.85
WithdrawProviderBondMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected