Professional Documents
Culture Documents
DGR Security Audit
DGR Security Audit
Reordering attack
No Risk : There is no Racing in this contract between users.
Release difference
Warning: Block.timestamp was used to determine the release time
of the admin locked funds. This can be influenced by Miners, and
will not be on the exact 2 months mark. This is not an issue as the
range is not second specific, therefore it will release on the day but
not on the exact second.
Gas infinite
Warning: Some functions have infinite gas warnings, this can be
safely ignored as requirements have been implemented to
mitigate such problems of not being able to transact.
Gas Deployment
Contract has ERC20 functionality and can be deployed,
recommended amount of gas needed is 5000000 to deploy this
contract.
Admin Release
A custom function was implemented in the smart contract to be
able to test the functionality of the RELEASE() by setting the time
to ZERO once a locked transaction is sent. It was then released
into the Admin Account proving functionality works. This
function is removed from the final contract as it is untrustworthy
to have such a function.
Functionality
The core functionality of the contract is tested and proved to be
secure.
Fig 1. Passing all the tests proving that the core functionality works.
Note that this audit isn’t a legal document that verifies that the
code is secure. Nobody can 100% assure that the code won’t have
future bugs or vulnerabilities. It’s a guarantee that your code has
been revised by an expert and it’s secure.