Skip to content

Commit 1d4c5cf

Browse files
committed
rename burn_tokens -> recycle_tao
1 parent c19acee commit 1d4c5cf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pallets/subtensor/src/subnets/subnet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 {

pallets/subtensor/src/swap/swap_coldkey.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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));

pallets/subtensor/src/utils/misc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)