AssetBucket.consume#
- AssetBucket.consume(assets, amounts)[source]
Consume the amount of the asset from the asset.
- Parameters:
assets (dict[str, Any]) – The asset to consume from.
amounts (dict[str, Any]) – The amount to consume.
- Returns:
The remaining assets after the consumption.
- Return type:
dict[str, Any]