The Latest Crypto News
Monday, 23 November 2026 BTC -- / --
🔍

X7 Finance loses over 6.7 ETH due to reward bug

X7 Finance logo beside a red falling chart and Ethereum coin
X7 Finance logo beside a red falling chart and Ethereum coin

Security firm SlowMist has discovered a critical bug in the X7 Finance smart contract. An attacker was able to steal over 6.7 ETH (approximately €17.000) by exploiting a flaw in the reward distribution function.

In brief:

  • Attacker steals 6.78 ETH from X7 Finance smart contract
  • Bug lies in the claimRewards function, which miscalculates rewards
  • The error arises because lastETHBalance is not always updated

How the attack worked

In the claimRewards function, the total reward amount is calculated by taking the contract’s current balance minus the last recorded balance. The problem: lastETHBalance is only updated when there are actually rewards to be paid out.

The attacker called the function with an empty array, so no rewards were paid out. As a result, lastETHBalance was not updated. On subsequent calls, the unprocessed amounts were repeatedly added to the total, causing the per-token reward to rise artificially.

The perpetrator also first donated ETH to the contract to make the difference larger and thus be able to claim more funds.

Details of the incident

The hacked contract X7Pioneer is located at address 0x70000299ee8910ccacd97b1bb560e34f49c9e4f7. The attacker used address 0xc79352119a7cf6efbfabbd7e6b013b79687bacf2 for the attack. SlowMist has documented the transaction on Etherscan.

Such errors in smart contracts can prove costly. X7 Finance will likely need to patch or disable the contract.

Summarize this article with AI

Not financial advice. The Latest Crypto News provides educational and informational content only. Crypto-assets are highly volatile and you can lose your entire investment. Always do your own research. Read our full disclaimer.

Affiliate disclosure. Some links on this site are affiliate links. If you sign up with a partner through one of them, we may earn a commission at no extra cost to you. This never influences our reporting. See our editorial guidelines.

More Scam News

More news ›