Skip to content

sprtd/rake-scam-token-forta-detection-bot

Repository files navigation

Rake Scam Token Detection Bot

Description

This bot detects rake scam tokens that significantly take an additional swap fee (rake) on decentralized exchanges that implement Uniswap V2 logic. The rake recipient is the rake token contract. The rake accumulates over time; when it reaches a specific threshold, it is swapped for ETH and eventually transferred to EOA specified as the recipient(s) in the rake token contract

Supported Chains

  • Ethereum
  • Polygon
  • Arbitrum
  • Optimism
  • Avalanche
  • Fantom
  • BNBChain

Alerts

Describe each of the type of alerts fired by this agent

  • RAKE-TOKEN-CONTRACT-1
    • Fired when a token takes significant percentage fee on Uniswap V2 Router and transfers it to an EOA
    • Severity is always set to "low"
    • Type is always set to "info"
    • Metadata contains the following fields:
      • rakeTokenAddress: address of the rake token
      • pairAddress: address of the created uniswap tokens pair
      • from: address of the user initiating the swap transaction on Uniswap
      • totalAmountTransferred: total amount of scam tokens transferred to Uniswap Router contract
      • actualAmountReceived: amount received by the user executing the swap following the deduction of swap fee
      • rakedFee: total fee taken by scam token contract
      • rakedFeePercentage: percentage of the fee raked in by the scam token contract
      • feeRecipient: address of the rake token contract which takes the rake
      • attackerRakeTokenDeployer: address of the rake token contract deployer
      • rakeTokenDeployTxHash: transaction hash of the deployed rake token contract
      • anomalyScore: total finding count divided by total unique rake token addresses detected
      • ethTransferredAfterRakeMetadata: captures:
        • amount: amount of ETH transferred after rake fee has reached a specific threshold
        • EOA: address to which the ETH is transferred after the total rake fee has reached a specific threshold
    • Labels contain:
      • entity: rake token deployer
      • entityType: type of the entity, always set to "Address"
      • label: type of the label, always set to "Attacker"
      • confidence: confidence level of the detected transaction, always set to 0.6
      • remove: boolean indicating whether the label is removed. always set to false

Test Data

The bot behaviour can be verified with the following transactions:

About

Rake Scam Token Detection Bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published