Skip to content

feat: update ETH swap contract to SafeERC20 and enable USDT trading#1675

Merged
ca333 merged 1 commit intomasterfrom
feat/usdt-enable-trading
Feb 11, 2026
Merged

feat: update ETH swap contract to SafeERC20 and enable USDT trading#1675
ca333 merged 1 commit intomasterfrom
feat/usdt-enable-trading

Conversation

@shamardy
Copy link

@shamardy shamardy commented Feb 4, 2026

Summary

  • Update ethereum/ETH swap contract to the new SafeERC20-enabled EtomicSwap V1 (applies to all ETH-chain coins)
  • Remove wallet_only from USDT-ERC20 in the master coins file to enable atomic swaps

Changes

ethereum/ETH

Field Before After
swap_contract_address 0x24ABE4c71FC658C91313b6552cd40cD808b3Ea80 0x61EEC68Cf64d1b31e41EA713356De2563fB6D3F1
fallback_swap_contract 0x8500AFc0bc5214728082163326C2FF0C73f4a871 0x24ABE4c71FC658C91313b6552cd40cD808b3Ea80

coins

  • Removed "wallet_only": true from USDT-ERC20

Why?

USDT's transfer/transferFrom don'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

  • Address: 0x61EEC68Cf64d1b31e41EA713356De2563fB6D3F1
  • Verified: etherscan.io
  • Deployed via CREATE2 (same address on all EVM chains)

Related

@shamardy shamardy changed the title feat: enable USDT-ERC20 trading with SafeERC20 swap contract feat: update all ETH-chain coins to SafeERC20 swap contract 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>
@shamardy shamardy force-pushed the feat/usdt-enable-trading branch from 10bd806 to b474354 Compare February 4, 2026 03:24
@shamardy shamardy changed the title feat: update all ETH-chain coins to SafeERC20 swap contract feat: update ETH swap contract to SafeERC20 and enable USDT trading Feb 4, 2026
Copy link
Collaborator

@cipig cipig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

also tested DAI-ERC20 with an old maker, so that fallback_swap_contract was used

@ca333 ca333 merged commit e8f2f44 into master Feb 11, 2026
@shamardy shamardy deleted the feat/usdt-enable-trading branch February 11, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants