Function funding_trading_bridge_smart_contract::util::provenance_utils::check_account_has_enough_denom
source · pub fn check_account_has_enough_denom<S1: Into<String>, S2: Into<String>>(
deps: &Deps<'_>,
account: S1,
denom: S2,
required_amount: u128
) -> Result<(), ContractError>
Expand description
Ensures that the target account holds enough of the target denom name by verifying their balances in the bank module.
§Parameters
deps
A dependencies object provided by the cosmwasm framework. Allows access to useful resources like contract internal storage and a querier to retrieve blockchain objects.account
The bech32 address of the account for which to verify balances.denom
The coin denomination for which balances are to be checked.required_amount
The minimum amount of coin that the target account must hold for the given denom to be considered valid.