func (rs *reserveState) change(oldv, newv *big.Int, oldDepth, newDepth uint8) (int64, uint8) {
	oldTier := rs.tier(oldv)
	newTier := rs.setLimits(newv, rs.tier(newv))

	oldSize := rs.size(oldDepth, oldTier)
	newSize := rs.size(newDepth, newTier)

	availableCapacityChange := oldSize - newSize
	reserveRadius := rs.radius(newTier)

	return availableCapacityChange, reserveRadius
}
// change calculates info relevant to the value change from old to new value and old and new depth
// returns the change in capacity and the radius of reserve
change calculates info relevant to the value change from old to new value and old and new depth
returns the change in capacity and the radius of reserve
// change calculates info relevant to the value change from old to new value and old and new depth // returns the change in capacity and the radius of reserve
func (rs *reserveState) change(oldv, newv *big.Int, oldDepth, newDepth uint8) (int64, uint8) {
	oldTier := rs.tier(oldv)
	newTier := rs.setLimits(newv, rs.tier(newv))
	oldSize := rs.size(oldDepth, oldTier)
	newSize := rs.size(newDepth, newTier)
	availableCapacityChange := oldSize - newSize
	reserveRadius := rs.radius(newTier)
	return availableCapacityChange, reserveRadius
}
func ( rs * reserveState ) change ( oldv , newv * big . Int , oldDepth , newDepth uint8 ) ( int64 , uint8 ) { oldTier := rs . tier ( oldv ) newTier := rs . setLimits ( newv , rs . tier ( newv ) ) oldSize := rs . size ( oldDepth , oldTier ) newSize := rs . size ( newDepth , newTier ) availableCapacityChange := oldSize - newSize reserveRadius := rs . radius ( newTier ) return availableCapacityChange , reserveRadius }
change calculates info relevant to the value change from old to new value and old and new depth
returns the change in capacity and the radius of reserve
change calculates info relevant to the value change from old to new value and old and new depth returns the change in capacity and the radius of reserve