Skip to content

Commit

Permalink
Merge pull request #110 from multiversx/price-aggregator-upgrade
Browse files Browse the repository at this point in the history
price aggregator upgrade
  • Loading branch information
alyn509 authored Oct 4, 2024
2 parents 12274ab + 45e0cf3 commit 9ba2b0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contracts/price-aggregator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9ba2b0a

Please sign in to comment.