This document is a security audit report performed by danbogd, where Euro Token (SREUR) has been reviewed.
Сommit hash 662ec938265d2756943f306266e378f4de46ae88.
In total, 3 issues were reported including:
- 2 low severity issues.
- 1 minor observation.
No critical security issues were found.
-
It is possible to double withdrawal attack. More details here.
-
Lack of transaction handling mechanism issue. WARNING! This is a very common issue and it already caused millions of dollars losses for lots of token users! More details here.
Add into a function transfer(address _to, ... )
following code:
require( _to != address(this) );
decreaseAllowance throw in case if the value to be subtracted is higher than the amount that is allowed, if the address owner wants to change the value allowed by reducing it and the spender withdraw a part of it, the function might throw and give more chances for the spender to take the rest of the allowed value.
https://github.com/SocialRemit/SOL/blob/662ec938265d2756943f306266e378f4de46ae88/SREUR.sol#L236-L249
The contracts use solidity version 0.4.25. It is suggested to use the latest version and fix all compiler warnings that arise. Compiler version should be fixed to avoid any potential discrepancies in smart contract behavior caused by different versions of compiler.
Check if the value allowed is higher or equal to the value to be subtracted if not then set the allowed value to zero.
The audited smart contract is safe to deploy. Only low severity issues were found during the audit.