File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed
Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -830,7 +830,7 @@ impl<T: Config> Pallet<T> {
830830 parent_emission = parent_emission. saturating_sub ( child_take) ;
831831 total_child_take = total_child_take. saturating_add ( child_take) ;
832832
833- Self :: burn_subnet_alpha (
833+ Self :: recycle_subnet_alpha (
834834 netuid,
835835 AlphaCurrency :: from ( burn_take. saturating_to_num :: < u64 > ( ) ) ,
836836 ) ;
Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ impl<T: Config> Pallet<T> {
322322 T :: SwapInterface :: is_user_liquidity_enabled ( netuid)
323323 }
324324
325- pub fn burn_subnet_alpha ( netuid : NetUid , amount : AlphaCurrency ) {
325+ pub fn recycle_subnet_alpha ( netuid : NetUid , amount : AlphaCurrency ) {
326326 SubnetAlphaOut :: < T > :: mutate ( netuid, |total| {
327327 * total = total. saturating_sub ( amount) ;
328328 } ) ;
Original file line number Diff line number Diff line change 11use super :: * ;
22use crate :: { Error , system:: ensure_signed} ;
3- use subtensor_runtime_common:: { AlphaCurrency , Currency , NetUid } ;
3+ use subtensor_runtime_common:: { AlphaCurrency , NetUid } ;
44
55impl < T : Config > Pallet < T > {
66 /// Recycles alpha from a cold/hot key pair, reducing AlphaOut on a subnet
@@ -59,9 +59,7 @@ impl<T: Config> Pallet<T> {
5959 ) ;
6060
6161 // Recycle means we should decrease the alpha issuance tracker.
62- SubnetAlphaOut :: < T > :: mutate ( netuid, |total| {
63- * total = total. saturating_sub ( actual_alpha_decrease) ;
64- } ) ;
62+ Self :: recycle_subnet_alpha ( netuid, amount) ;
6563
6664 Self :: deposit_event ( Event :: AlphaRecycled (
6765 coldkey,
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
220220 // `spec_version`, and `authoring_version` are the same between Wasm and native.
221221 // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
222222 // the compatible custom types.
223- spec_version : 312 ,
223+ spec_version : 313 ,
224224 impl_version : 1 ,
225225 apis : RUNTIME_API_VERSIONS ,
226226 transaction_version : 1 ,
You can’t perform that action at this time.
0 commit comments