File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ impl<T: Config> Pallet<T> {
511511 Ok ( ( position, tao, alpha) )
512512 }
513513
514- /// Remove liquidity and return the tao and alpha amounts .
514+ /// Remove liquidity and credit balances back to (coldkey_account_id, hotkey_account_id) stake .
515515 /// Removing is allowed even when user liquidity is enabled.
516516 ///
517517 /// Account ID and Position ID identify position in the storage map
@@ -878,6 +878,7 @@ impl<T: Config> Pallet<T> {
878878 rm. alpha . saturating_add ( rm. fee_alpha ) ;
879879
880880 // ---------------- USER: refund τ and convert α → stake ----------------
881+
881882 // 1) Refund τ principal directly.
882883 if rm. tao > TaoCurrency :: ZERO {
883884 T :: BalanceOps :: increase_balance ( & owner, rm. tao ) ;
@@ -943,8 +944,6 @@ impl<T: Config> Pallet<T> {
943944 }
944945
945946 /// Clear **protocol-owned** liquidity and wipe all swap state for `netuid`.
946- /// # Returns
947- /// * `(TaoCurrency, AlphaCurrency)` - The amount of TAO and ALPHA burned
948947 pub fn do_clear_protocol_liquidity ( netuid : NetUid ) -> DispatchResult {
949948 let protocol_account = Self :: protocol_account_id ( ) ;
950949
You can’t perform that action at this time.
0 commit comments