You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the orchestrator relays transactions from cosmos to Ethereum and batch_market feature is enabled, the orchestrator gets the swap price of "bridging ERC20/WETH" using "quoteExactInputSingle(address,address,uint24,uint256,uint160)" on uniswap3 (Quoter.sol) and might fails with the output:
[2021-09-27T06:55:33Z INFO relayer::batch_relaying] Unable to determine swap price of token 0x73bA9F88bEbCc8c86E602c0dfAA7268389AEd5e0 for WETH due to communication error Some(ContractCallError("Bad response from swap price")) - Will not be relaying batch TransactionBatch { nonce: 1, batch_timeout: 4594, transactions: [BatchTransaction { id: 1, sender: onomy15dw6lgy4ver2qqgcladvmvtgvd0v3uqju9xa75, destination: 0xBf660843528035a5A4921534E156a27e64B231fE, erc20_token: Erc20Token { amount: Uint256(1000000000000000000000), token_contract_address: 0x73bA9F88bEbCc8c86E602c0dfAA7268389AEd5e0 }, erc20_fee: Erc20Token { amount: Uint256(1), token_contract_address: 0x73bA9F88bEbCc8c86E602c0dfAA7268389AEd5e0 } }], total_fee: Erc20Token { amount: Uint256(1), token_contract_address: 0x73bA9F88bEbCc8c86E602c0dfAA7268389AEd5e0 }, token_contract: 0x73bA9F88bEbCc8c86E602c0dfAA7268389AEd5e0 }
[2021-09-27T06:55:33Z INFO relayer::batch_relaying] Not relaying batch due to it not being profitable: TransactionBatch { nonce: 1, batch_timeout: 4594, transactions: [BatchTransaction { id: 1, sender: onomy15dw6lgy4ver2qqgcladvmvtgvd0v3uqju9xa75, destination: 0xBf660843528035a5A4921534E156a27e64B231fE, erc20_token: Erc20Token { amount: Uint256(1000000000000000000000), token_contract_address: 0x73bA9F88bEbCc8c86E602c0dfAA7268389AEd5e0 }, erc20_fee: Erc20Token { amount: Uint256(1), token_contract_address: 0x73bA9F88bEbCc8c86E602c0dfAA7268389AEd5e0 } }], total_fee: Erc20Token { amount: Uint256(1), token_contract_address: 0x73bA9F88bEbCc8c86E602c0dfAA7268389AEd5e0 }, token_contract: 0x73bA9F88bEbCc8c86E602c0dfAA7268389AEd5e0 }
And there are two reasons for it.
WETH is different on different networks (Ropsten; Kovan; Rinkeby; Goerli, Mainnet).
The swap pair doesn't exist on uniswap
Expected resolution
Make WETH address configurable for the orchestrator/gbt
Improve gbt/client to check whether the pair exists on uniswap before the transaction submission.
The text was updated successfully, but these errors were encountered:
The component:
Orchestrator
Description
When the orchestrator relays transactions from cosmos to Ethereum and batch_market feature is enabled, the orchestrator gets the swap price of "bridging ERC20/WETH" using "quoteExactInputSingle(address,address,uint24,uint256,uint160)" on uniswap3 (Quoter.sol) and might fails with the output:
And there are two reasons for it.
Expected resolution
The text was updated successfully, but these errors were encountered: