Fail with error 'UniswapV2Library: ZERO_ADDRESS'
victorleejw opened this issue · 0 comments
I have tried various methods but not sure if this is the gas fees issue. Tried several times and successful but unable to complete the transaction after 'execute arbitrage' operation. Can anyone show some light? Thanks. Fail with error 'UniswapV2Library: ZERO_ADDRESS'
https://ropsten.etherscan.io/tx/0xed0129e15af3cbca228281505c2f9255b3f2b0f57d289bcbbbfe6d72f0f2ec31
I saw this 2 errors in the compiler (potential issue)?
browser/FlashArbitrageTrader.sol:129:9: Warning: Return value of low-level calls not used. msg.sender.call{ value: address(this).balance }(""); ^-------------------------------------------------^
browser/FlashArbitrageTrader.sol:63:9: Warning: Unused function parameter. Remove or comment out the variable name to silence this warning. bytes calldata _params ^--------------------^
I tried exactly this parameters:
On deployment:
_AAVELENDINGPOOL: 0x1c8756FD2B28e9426CDBDcC7E3c4d64fa9A54728
_UNISWAPV2ROUTER: 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
_SUSHISWAPV2ROUTER: 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Send 0.1 ETH to the deployed contract.
On 'execution arbitrage':
_flashAsset: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
_flashAmount: 1000000000000000000
_daiTokenAddress: 0xf80A32A835F79D7787E8a8ee5721D0fEaFd78108
_amountToTrade: 1000000000000000000
_tokensOut: 1