Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

The pairs contract does not have a deal but the profit is shown #29

Open
sbrfarhadi opened this issue Jun 13, 2021 · 0 comments
Open

The pairs contract does not have a deal but the profit is shown #29

sbrfarhadi opened this issue Jun 13, 2021 · 0 comments

Comments

@sbrfarhadi
Copy link

I saw a profit several times
But the wrong transaction was made
I checked the pair of contracts to see if the pool has a deal
But I saw that many hours had passed since their last deal

Please help me why this profit has been shown but transaction Fail while no transaction was made in the pairs contract

...
...
...

if (netProfit < config.minimumProfit) {
        return;
      }

      log.info(`Calling flash arbitrage ${pair.symbols}, res profit ${ethers.utils.formatEther(res.profit)} *+* net profit: ${netProfit}`);
      try {
        // lock to prevent tx nonce overlap
        await lock.acquire('flash-bot', async () => {

....
....
...

and console log:

2021-06-13 08:52:53 debug: res Profit LINK-WBNB: 0.226815865945103848 **** net profit: 75.86014960343351
2021-06-13 08:52:53 info: Calling flash arbitrage LINK-WBNB, res profit 0.226815865945103848 *+* net profit: 75.86014960343351
network block skew detected; skipping block events

image

image

image

image

@sbrfarhadi sbrfarhadi changed the title The pool does not have a deal but the profit is shown The pairs contract does not have a deal but the profit is shown Jun 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant