Open code423n4 opened 2 years ago
Contracts should be deployed with the same compiler version and flags that they have been tested the most with.
https://consensys.net/blog/developers/solidity-best-practices-for-smart-contract-security/
Instances include: https://github.com/code-423n4/2022-05-aura/blob/4989a2077546a5394e3650bf3c224669a0f7e690/contracts/AuraLocker.sol#L2
solution: pragma solidity 0.8.11;
https://github.com/code-423n4/2022-05-aura/blob/4989a2077546a5394e3650bf3c224669a0f7e690/contracts/Aura.sol#L28
uint256 public constant EMISSIONS_MAX_SUPPLY = 5e25; // 50m
5e25 not egal 50m 5e25 = 5,000,000,000,000,000,000,000,000
Following function mint() show operations with 5e25, therefore I think it is just a typo in comment.
5e25 = 5e7 * 1e18 5e7 = 50 000 000 or 50m
Contracts should be deployed with the same compiler version and flags that they have been tested the most with.
https://consensys.net/blog/developers/solidity-best-practices-for-smart-contract-security/
Instances include: https://github.com/code-423n4/2022-05-aura/blob/4989a2077546a5394e3650bf3c224669a0f7e690/contracts/AuraLocker.sol#L2
solution: pragma solidity 0.8.11;
https://github.com/code-423n4/2022-05-aura/blob/4989a2077546a5394e3650bf3c224669a0f7e690/contracts/Aura.sol#L28
5e25 not egal 50m 5e25 = 5,000,000,000,000,000,000,000,000
Following function mint() show operations with 5e25, therefore I think it is just a typo in comment.