shuail0 / SyncSwapbot

24 stars 18 forks source link

swap usdt to eth has some problems #1

Open 600849155 opened 1 year ago

600849155 commented 1 year ago

I swap eth for usdt go works fine, but when i swap usdt for eth it appear some error :

正在打开钱包文件... 获取Pool合约地址... 成功获取Pool合约地址:0x768d6EE2E65b1c4Eb948d40a8196BC243Bcb967f 开始循环... 开始查询USDC余额... 查询成功,USDC余额:995602988523,开始授权... 授权成功,哈希: 0xa565825764699d0ad1094106be102ea0527c2e42127d98435767a2a4ef3f4d32 暂停1分钟后继续 使用USDC买入ETH... Waiting for the debugger to disconnect... D:\code-repository\SyncSwapbot\node_modules\@ethersproject\logger\lib\index.js:238 var error = new Error(message); ^ Error: timeout (requestBody="{\"method\":\"eth_gasPrice\",\"params\":[],\"id\":64,\"jsonrpc\":\"2.0\"}", requestMethod="POST", timeout=120000, url="https://testnet.era.zksync.dev", code=TIMEOUT, version=web/5.7.1) at Logger.makeError (D:\code-repository\SyncSwapbot\node_modules\@ethersproject\logger\lib\index.js:238:21) at Timeout._onTimeout (D:\code-repository\SyncSwapbot\node_modules\@ethersproject\web\lib\index.js:187:35) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) { reason: 'timeout', code: 'TIMEOUT', requestBody: '{"method":"eth_gasPrice","params":[],"id":64,"jsonrpc":"2.0"}', requestMethod: 'POST', timeout: 120000, url: 'https://testnet.era.zksync.dev' } Node.js v18.16.0

Maybe you can help me?