feat: update ETH swap contract to SafeERC20 and enable USDT trading#1675
Merged
feat: update ETH swap contract to SafeERC20 and enable USDT trading#1675
Conversation
This was referenced Feb 4, 2026
Update ethereum/ETH swap_contract_address to the new EtomicSwap V1 with SafeERC20 support (0x61EEC68Cf64d1b31e41EA713356De2563fB6D3F1). Move previous contract to fallback_swap_contract. Remove wallet_only from USDT-ERC20 to enable atomic swaps. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
10bd806 to
b474354
Compare
cipig
approved these changes
Feb 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
ethereum/ETHswap contract to the new SafeERC20-enabled EtomicSwap V1 (applies to all ETH-chain coins)wallet_onlyfrom USDT-ERC20 in the mastercoinsfile to enable atomic swapsChanges
ethereum/ETHswap_contract_address0x24ABE4c71FC658C91313b6552cd40cD808b3Ea800x61EEC68Cf64d1b31e41EA713356De2563fB6D3F1fallback_swap_contract0x8500AFc0bc5214728082163326C2FF0C73f4a8710x24ABE4c71FC658C91313b6552cd40cD808b3Ea80coins"wallet_only": truefrom USDT-ERC20Why?
USDT's
transfer/transferFromdon't return a boolean, which caused the old V1 contract to revert. The new contract uses OpenZeppelin SafeERC20 to handle non-standard ERC20 tokens correctly. It is fully backward compatible with standard ERC20 tokens.New Contract
0x61EEC68Cf64d1b31e41EA713356De2563fB6D3F1Related