swap_contract