exclude SRI from is_allowed check

This commit is contained in:
akildemir
2024-08-02 13:18:37 +03:00
parent bb5fd3781c
commit dd9aeb160b

View File

@@ -159,7 +159,7 @@ pub mod pallet {
///
/// Errors if any amount overflows.
pub fn mint(to: Public, balance: Balance) -> Result<(), Error<T, I>> {
if !T::AllowMint::is_allowed(&balance) {
if balance.coin != Coin::Serai && !T::AllowMint::is_allowed(&balance) {
Err(Error::<T, I>::MintNotAllowed)?;
}