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 'SafeERC20: low-level call failed' #33

Open
adedade opened this issue Feb 23, 2022 · 3 comments
Open

Fail with error 'SafeERC20: low-level call failed' #33

adedade opened this issue Feb 23, 2022 · 3 comments

Comments

@adedade
Copy link

adedade commented Feb 23, 2022

Describe the bug

Two arbitrage opportunities have been logged but failed with error Fail with error 'SafeERC20: low-level call failed'

The transactions are:

  • 0x14986633cd0901dc74987cd6e9e3ef3d75a42e9e70f4830bf53a441a66b4e25f
  • 0xe091044cfc55130d4855526cb9b99aaa7954c8a7284071b648c0cffd53bd76c9

I suspect there might be a bug with the contract, or maybe with these specific pairs?

@adedade
Copy link
Author

adedade commented Feb 26, 2022

@yuichiroaoki do you happen to know why this would fail?

@yuichiroaoki
Copy link
Owner

That error message is ambiguous, but it happens when you try to borrow more tokens than the dodo pool has.

@rolandweb3
Copy link

  • 0x14986633cd0901dc74987cd6e9e3ef3d75a42e9e70f4830bf53a441a66b4e25f

How can I customize it to borrow minimum from the pool? if I run this command npx hardhat run scripts/flashloan.ts it will always print the same address from the terminal, also the txn hash is not found on polygon scan but when I run npx hardhat run scripts/flashloan.ts --network polygon I will get this error massage Fail with error 'SafeERC20: low-level call failed

That error message is ambiguous, but it happens when you try to borrow more tokens than the dodo pool has.
please help on how to customize it
Screenshot (30)

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

3 participants