Skip to content

Commit

Permalink
Merge pull request #11 from nfmelendez/nft-arbitrage
Browse files Browse the repository at this point in the history
NFT Arbitrage
  • Loading branch information
nfmelendez committed Mar 31, 2024
2 parents 537f260 + 50a7bb9 commit e3ada63
Show file tree
Hide file tree
Showing 31 changed files with 2,992 additions and 49 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ This bot detects MEV bots that uses different strategies to extract value from a
- Metadata:
- `sandwicher_address`: attacker address
- `block_builder`: Name of the block builder(ex Flashbots) or None
- `profit_amount`: Profit amount extracted by the attacker
- `profit_token_address`: Profit asset
- `profits`: it s a list of
- `profit_amount`: Profit amount extracted by the attacker
- `profit_token_address`: Profit asset
- `assets`: list of assets involved in the sandwich
- `flashloan`: true if arbitrage used a flashloan
- `evidence`
Expand Down Expand Up @@ -84,7 +85,8 @@ This bot detects MEV bots that uses different strategies to extract value from a
- `block_builder`: Name of the block builder(ex Flashbots) or None
- `profit_amount`: Profit amount extracted by the attacker
- `profit_token_address`: Profit asset
- `assets`: list of assets involved in the arbitrage
- `assets`: list of assets involved in the arbitrage, can be tokens or NFTs with their token id
- `asset_types`: which type of assets are involved in the arbitrage, cab be: TOKEN, NFT or TOKEN-NFT
- `evidence`
- `start_amount`: Amount of profit token when started the swap chain
- `end_amount`: Amount of profit token when finished the swap chain
Expand Down
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mev-bot",
"displayName": "Forta MEV bot detector",
"version": "0.0.26",
"version": "0.0.27",
"description": "This bot detects MEV bots that uses different strategies to extract value from a protocol by adding, removing or reordening transactions in a block",
"longDescription": "Detects Arbitrage, Sandwich and Liquidation. Also usage of Block builders and Flashloans",
"repository": "https://github.com/nfmelendez/forta-mev-bot",
Expand Down Expand Up @@ -54,8 +54,14 @@
"maker-flashloan": "forta-agent run --block 19111847,19111848",
"balancer-flashloan": "forta-agent run --block 18413144,18413145",
"dodo-flahloan": "forta-agent run --block 12000102,12000103",
"curvefi-bug": "forta-agent run --block 19114225,19114226"

"curvefi-bug": "forta-agent run --block 19114225,19114226",
"simple-nft-arbitrage": "forta-agent run --block 19437044,19437045",
"buy-nft-opensea-weth": "forta-agent run --block 19469204,19469205",
"buy-nft-sudoswap-eth": "forta-agent run --block 19343006,19343007",
"buy-nft-opensea-eth": "forta-agent run --block 17776789,17776790",
"double-arbitrage": "forta-agent run --block 19322205,19322206",
"sandwich-2-victims": "forta-agent run --block 19270423,19270424",
"nftx-opensea-arb": "forta-agent run --block 19441386,19441387"



Expand All @@ -67,3 +73,5 @@
"nodemon": "^2.0.8"
}
}


1 change: 1 addition & 0 deletions publish.log
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ Mon, 11 Dec 2023 12:45:08 GMT: successfully updated agent id 0xbdf836f1368100064
Mon, 11 Dec 2023 18:21:56 GMT: successfully updated agent id 0x5bb675492f3accba1d35e7f59f584b6fae11df919f13223f3056a69dc5686b4b with manifest QmWJWXHX3SZq5kD4Uz4792unwVJViizh5bioRtaGy4uYGG
Fri, 15 Dec 2023 14:34:14 GMT: successfully updated agent id 0x5bb675492f3accba1d35e7f59f584b6fae11df919f13223f3056a69dc5686b4b with manifest QmPgFKPNy92LTzC8nExk6BHCMDRW5t349KcLKDfyi5RghL
Tue, 30 Jan 2024 13:53:53 GMT: successfully updated agent id 0x5bb675492f3accba1d35e7f59f584b6fae11df919f13223f3056a69dc5686b4b with manifest QmbyaS8wsXzyraeGW9nyprzbgVYmRhbqZVAogHCvdJxn2Q
Thu, 28 Mar 2024 15:43:50 GMT: successfully updated agent id 0x5bb675492f3accba1d35e7f59f584b6fae11df919f13223f3056a69dc5686b4b with manifest QmeCScDayerHe82Sf5HS75MPTntpcYKkRuDYQMukYykcnW
28 changes: 28 additions & 0 deletions src/abis/ERC721.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
}

]
Loading

0 comments on commit e3ada63

Please sign in to comment.