File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ impl<T: Config> Pallet<T> {
194194 SubnetOwnerHotkey :: < T > :: insert ( netuid_to_register, hotkey. clone ( ) ) ;
195195
196196 if actual_tao_lock_amount_less_pool_tao > TaoCurrency :: ZERO {
197- Self :: burn_tokens ( actual_tao_lock_amount_less_pool_tao) ;
197+ Self :: recycle_tao ( actual_tao_lock_amount_less_pool_tao) ;
198198 }
199199
200200 if actual_tao_lock_amount > TaoCurrency :: ZERO && pool_initial_tao > TaoCurrency :: ZERO {
Original file line number Diff line number Diff line change @@ -62,10 +62,10 @@ impl<T: Config> Pallet<T> {
6262 Error :: <T >:: NotEnoughBalanceToPaySwapColdKey
6363 ) ;
6464
65- // 7. Remove and burn the swap cost from the old coldkey's account
65+ // 7. Remove and recycle the swap cost from the old coldkey's account
6666 let actual_burn_amount =
6767 Self :: remove_balance_from_coldkey_account ( old_coldkey, swap_cost. into ( ) ) ?;
68- Self :: burn_tokens ( actual_burn_amount) ;
68+ Self :: recycle_tao ( actual_burn_amount) ;
6969
7070 // 8. Update the weight for the balance operations
7171 weight. saturating_accrue ( T :: DbWeight :: get ( ) . reads_writes ( 1 , 1 ) ) ;
Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ impl<T: Config> Pallet<T> {
372372 // ========================
373373 // === Token Management ===
374374 // ========================
375- pub fn burn_tokens ( amount : TaoCurrency ) {
375+ pub fn recycle_tao ( amount : TaoCurrency ) {
376376 TotalIssuance :: < T > :: put ( TotalIssuance :: < T > :: get ( ) . saturating_sub ( amount) ) ;
377377 }
378378 pub fn increase_issuance ( amount : TaoCurrency ) {
You can’t perform that action at this time.
0 commit comments