File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
pallets/subtensor/src/staking Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ! (
You can’t perform that action at this time.
0 commit comments