From 45e0cf31854a4c911e37a8e64640bb0d82c821b9 Mon Sep 17 00:00:00 2001 From: Alin Cruceat Date: Fri, 4 Oct 2024 13:57:11 +0300 Subject: [PATCH] price aggregator upgrade --- contracts/price-aggregator/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contracts/price-aggregator/src/lib.rs b/contracts/price-aggregator/src/lib.rs index 1c502cfb..e2936365 100644 --- a/contracts/price-aggregator/src/lib.rs +++ b/contracts/price-aggregator/src/lib.rs @@ -47,6 +47,11 @@ pub trait PriceAggregator: self.set_paused(true); } + #[upgrade] + fn upgrade(&self) { + self.set_paused(true); + } + #[only_owner] #[endpoint(changeAmounts)] fn change_amounts(&self, staking_amount: BigUint, slash_amount: BigUint) {