forta-network / starter-kits

MIT License
62 stars 37 forks source link

Update entity cluster bot to cluster highly suspicious contract creations #649

Open poupou-web3 opened 3 months ago

poupou-web3 commented 3 months ago

Listen to the contract https://app.forta.network/bot/0x9aaa5cd64000e8ba4fa2718a467b90055b70815d60351914cc1cbe89fe1c404c

If the alert for contract creation is high: it will cluster the contract address and contract creator address, and try to merge that cluster with an existing cluster in memory. Then it also adds the sender address to that cluster if CLUSTER_SENDERis true and the sender is different from the contract creator. It returns a finding if the cluster is created.