Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail with error 'UniswapV2Library: ZERO_ADDRESS' #2

Open
victorleejw opened this issue Oct 12, 2020 · 0 comments
Open

Fail with error 'UniswapV2Library: ZERO_ADDRESS' #2

victorleejw opened this issue Oct 12, 2020 · 0 comments

Comments

@victorleejw
Copy link

victorleejw commented Oct 12, 2020

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

@victorleejw victorleejw changed the title Txs success but operations didn't go through Fail with error 'UniswapV2Library: ZERO_ADDRESS' Oct 12, 2020
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

No branches or pull requests

1 participant