Skip to content

Commit cf0e7f3

Browse files
authored
Merge pull request #2357 from opentensor/revert-2240-voting-power-feature
Revert "Voting Power EMA"
2 parents 3d528d2 + 8a1e018 commit cf0e7f3

File tree

16 files changed

+3
-1699
lines changed

16 files changed

+3
-1699
lines changed

contract-tests/src/contracts/votingPower.ts

Lines changed: 0 additions & 104 deletions
This file was deleted.

contract-tests/test/votingPower.precompile.test.ts

Lines changed: 0 additions & 226 deletions
This file was deleted.

pallets/admin-utils/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,6 @@ pub mod pallet {
145145
Leasing,
146146
/// Address mapping precompile
147147
AddressMapping,
148-
/// Voting power precompile
149-
VotingPower,
150148
}
151149

152150
#[pallet::type_value]

pallets/subtensor/src/epoch/run_epoch.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ pub struct EpochTerms {
2222
pub validator_trust: u16,
2323
pub new_validator_permit: bool,
2424
pub bond: Vec<(u16, u16)>,
25-
pub stake: u64,
2625
}
2726

2827
pub struct EpochOutput<T: frame_system::Config>(pub BTreeMap<T::AccountId, EpochTerms>);
@@ -989,10 +988,6 @@ impl<T: Config> Pallet<T> {
989988
.iter()
990989
.map(|xi| fixed_proportion_to_u16(*xi))
991990
.collect::<Vec<u16>>();
992-
let raw_stake: Vec<u64> = total_stake
993-
.iter()
994-
.map(|s| s.saturating_to_num::<u64>())
995-
.collect::<Vec<u64>>();
996991

997992
for (_hotkey, terms) in terms_map.iter_mut() {
998993
terms.dividend = cloned_dividends.get(terms.uid).copied().unwrap_or_default();
@@ -1017,7 +1012,6 @@ impl<T: Config> Pallet<T> {
10171012
.get(terms.uid)
10181013
.copied()
10191014
.unwrap_or_default();
1020-
terms.stake = raw_stake.get(terms.uid).copied().unwrap_or_default();
10211015
let old_validator_permit = validator_permits
10221016
.get(terms.uid)
10231017
.copied()

0 commit comments

Comments
 (0)