mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-10 05:09:22 +00:00
Restore AllowMint to serai-validator-sets-pallet and reorganize TODOs
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
use borsh::{BorshSerialize, BorshDeserialize};
|
||||
|
||||
use serai_primitives::network_id::ExternalNetworkId;
|
||||
use serai_primitives::{
|
||||
network_id::ExternalNetworkId,
|
||||
balance::{Amount, ExternalBalance},
|
||||
};
|
||||
|
||||
/// An event from economic security.
|
||||
#[derive(Clone, PartialEq, Eq, Debug, BorshSerialize, BorshDeserialize)]
|
||||
@@ -14,7 +17,10 @@ pub enum Event {
|
||||
|
||||
/// A trait representing access to the information on economic security.
|
||||
pub trait EconomicSecurity {
|
||||
/// If am external network has _ever_ achieved economic security.
|
||||
/// If an external network has _ever_ achieved economic security.
|
||||
#[must_use]
|
||||
fn achieved_economic_security(network: ExternalNetworkId) -> bool;
|
||||
|
||||
/// The security oracle's valuation of this balance in SRI.
|
||||
fn sri_value(balance: ExternalBalance) -> Amount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user