Smart swaps