penumbra_sdk_community_pool/component/state_key.rs
1use penumbra_sdk_asset::asset;
2
3pub fn community_pool_params() -> &'static str {
4 "community_pool/params"
5}
6
7pub fn balance_for_asset(asset_id: asset::Id) -> String {
8 format!("community_pool/asset/{asset_id}")
9}
10
11pub fn all_assets_balance() -> &'static str {
12 // note: this must be the prefix of the above.
13 "community_pool/asset/"
14}