Skip to content

Commit

Permalink
fix: treasury paying for update, rm only admin
Browse files Browse the repository at this point in the history
  • Loading branch information
mustermeiszer committed Dec 20, 2023
1 parent 547f181 commit ad43788
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions pallets/liquidity-pools/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -804,22 +804,14 @@ pub mod pallet {
Error::<T>::TrancheNotFound
);

ensure!(
T::Permission::has(
PermissionScope::Pool(pool_id),
who,
Role::PoolRole(PoolRole::PoolAdmin)
),
Error::<T>::NotPoolAdmin
);
let investment_id = Self::derive_invest_id(pool_id, tranche_id)?;
let metadata = T::AssetRegistry::metadata(&investment_id.into())
.ok_or(Error::<T>::TrancheMetadataNotFound)?;
let token_name = vec_to_fixed_array(metadata.name);
let token_symbol = vec_to_fixed_array(metadata.symbol);

T::OutboundQueue::submit(
T::TreasuryAccount::get(),
who,
domain,
Message::UpdateTrancheTokenMetadata {
pool_id,
Expand Down

0 comments on commit ad43788

Please sign in to comment.