Comments (3)
This means the arbitrage logic has failed in between acquiring and repaying the flashloan. Could be anything ranging from what you used as the Sushiswap Router02 address to the ERC20 you're using in this trade, or flashamount was less than amountToTrade...erc
To keep things simple try a fresh deployment to ropsten, with the following parameters:
-
On deployment:
_AAVELENDINGPOOL: 0x1c8756FD2B28e9426CDBDcC7E3c4d64fa9A54728
_UNISWAPV2ROUTER: 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
_SUSHISWAPV2ROUTER: 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D -
Send 0.2 ETH to your contract
-
On execution:
_flashAsset: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
_flashAmount: 1000000000000000000
_daiTokenAddress: 0xf80A32A835F79D7787E8a8ee5721D0fEaFd78108
_amountToTrade: 1000000000000000000
_tokensOut: 1
I tried it out just then and it worked fine.
https://ropsten.etherscan.io/tx/0x4c63d2230995782e006d3ca9dc9f011134c04a5c773387f8a603b8f23dd9b3a4
from flash-arb-trader.
Yes, I redeployed a contract , repeat your process. It shows interesting result: 5 transactions , 3 are reverted, 2 are all success...
https://ropsten.etherscan.io/address/0x002951299cbd9a373cc9f8e96661858031d332b6
I think contract of uniswap or sushi in ropsten net might be not working reliably
I have deployed a contract again. https://ropsten.etherscan.io/address/0x5c10db9cba048620c10c1bc224e8f476fd706bd7. It is worked normally at first and second transact.
I found the new deployed contract could be worked completely twice. After that, it will shows reverted. May be it is effected by balance of contract ?
May be not....
I have been withdraw all balance in contract , and resend 0.2eth in this contract. But still not work.... Why it is just worked fine twice??
from flash-arb-trader.
I had a transaction "Success" but 2 executions were reverted. I followed @fifikobayashi instructions above precisely. I'm not finding any hints in the transaction log on etherscan nor the remix logs. The contract still have plenty of ether left. Tried 2 times with same result:
https://ropsten.etherscan.io/tx/0x83d344a3f6ce8122fe2ab8d4cda2e4326c6a3fc1ba791f7f0b556cc16da697e6
https://ropsten.etherscan.io/tx/0x00182d3a84fb3968c346e2bd09c34984878c0e643bca7bf0ae584cdaa227a8fc
Mind having a look?
from flash-arb-trader.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flash-arb-trader.