mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-14 23:19:24 +00:00
exclude SRI from is_allowed check
This commit is contained in:
@@ -159,7 +159,7 @@ pub mod pallet {
|
|||||||
///
|
///
|
||||||
/// Errors if any amount overflows.
|
/// Errors if any amount overflows.
|
||||||
pub fn mint(to: Public, balance: Balance) -> Result<(), Error<T, I>> {
|
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)?;
|
Err(Error::<T, I>::MintNotAllowed)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user