Trait abstract_sdk::cw_helpers::fees::Chargeable
source · pub trait Chargeable {
// Required methods
fn charge_fee(&mut self, fee: Fee) -> AbstractSdkResult<Uint128>;
fn charge_usage_fee(&mut self, fee: UsageFee) -> AbstractSdkResult<CosmosMsg>;
}Expand description
Indicates that the implementing type can be charged fees.
Required Methods§
sourcefn charge_fee(&mut self, fee: Fee) -> AbstractSdkResult<Uint128>
fn charge_fee(&mut self, fee: Fee) -> AbstractSdkResult<Uint128>
Charge a fee on the asset and returns the amount charged.
sourcefn charge_usage_fee(&mut self, fee: UsageFee) -> AbstractSdkResult<CosmosMsg>
fn charge_usage_fee(&mut self, fee: UsageFee) -> AbstractSdkResult<CosmosMsg>
Charge a fee on the asset and returns the fee transfer message.