// Copyright 2019-2022 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0, MIT
use fvm_shared::METHOD_CONSTRUCTOR;
use num_derive::FromPrimitive;
pub use self::logic::*;
pub use self::state::{Reward, State, VestingFunction};
pub use types::*;
pub(crate) mod expneg;
mod logic;
mod state;
mod types;
/// `PenaltyMultiplier` is the factor miner penalties are scaled up by
pub const PENALTY_MULTIPLIER: u64 = 3;
/// Reward actor methods available
#[derive(FromPrimitive)]
#[repr(u64)]
pub enum Method {
Constructor = METHOD_CONSTRUCTOR,
AwardBlockReward = 2,
ThisEpochReward = 3,
UpdateNetworkKPI = 4,
}