Skip to content

Commit 2feceb8

Browse files
committed
update comments
1 parent 3e05878 commit 2feceb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pallets/subtensor/src/staking/stake_utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ impl<T: Config> Pallet<T> {
707707
let protocol_tao_after = Self::get_protocol_tao(netuid);
708708
// This should decrease as we are removing TAO from the protocol.
709709
let protocol_tao_delta: TaoCurrency = protocol_tao.saturating_sub(protocol_tao_after);
710-
// Clamp the protocol TAO delta to the received TAO
710+
// Use max to overstate the TAO flow from the protocol.
711711
let tao_flow = protocol_tao_delta.max(swap_result.amount_paid_out.into());
712712

713713
// Refund the unused alpha (in case if limit price is hit)
@@ -786,7 +786,7 @@ impl<T: Config> Pallet<T> {
786786

787787
// This should increase as we are adding TAO to the protocol.
788788
let protocol_tao_delta: TaoCurrency = protocol_tao_after.saturating_sub(protocol_tao);
789-
// Clamp the protocol TAO delta to the stated input
789+
// Use min to understate the TAO flow into the protocol.
790790
let tao_flow = protocol_tao_delta.min(tao);
791791

792792
ensure!(

0 commit comments

Comments
 (0)