diff --git a/contracts/staking_rewards/src/lib.rs b/contracts/staking_rewards/src/lib.rs index 9241561..7fc7fe0 100644 --- a/contracts/staking_rewards/src/lib.rs +++ b/contracts/staking_rewards/src/lib.rs @@ -1,7 +1,14 @@ #![no_std] use soroban_sdk::{contract, contractimpl, contracttype, token, Address, Env, String, Vec, vec}; -use emergency_guard::{DefaultEmergencyGuard, PauseType}; +use emergency_guard::{DefaultEmergencyGuard, GuardError, PauseType}; + +impl From for ContractError { + fn from(_: GuardError) -> Self { + ContractError::Paused + } +} + pub use Perigee_error_codes::ContractError; use Perigee_math::Fixed;