DIA (Decentralised Information Asset) is an open-source data and oracle platform for the DeFi ecosystem. DIA leverages crypto-economic incentives to drive supply, share and use transparent, crowd-verified price data and oracles on financial and digital assets.
BEP20DIA.allowance(address,address).owner (#856) shadows:
- Ownable.owner() (#643-645) (function)
BEP20DIA._approve(address,address,uint256).owner (#1027) shadows:
- Ownable.owner() (#643-645) (function)
Rename the local variables that shadow another component.
Additional information: link
AccessControl._setRoleAdmin(bytes32,bytes32) (#594-597) is never used and should be removed
BEP20DIA._burnFrom(address,uint256) (#1041-1044) is never used and should be removed
Context._msgData() (#115-118) is never used and should be removed
SafeMath.div(uint256,uint256) (#214-216) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#229-236) is never used and should be removed
SafeMath.mod(uint256,uint256) (#249-251) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#264-267) is never used and should be removed
SafeMath.mul(uint256,uint256) (#189-201) is never used and should be removed
Strings.toHexString(uint256) (#304-315) is never used and should be removed
Strings.toString(uint256) (#279-299) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version0.7.4 (#3) allows old versions
solc-0.7.4 is not recommended for deployment
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Constant Strings.alphabet (#274) is not in UPPER_CASE_WITH_UNDERSCORES
Variable BEP20DIA._decimals (#781) is not in mixedCase
Variable BEP20DIA._symbol (#782) is not in mixedCase
Variable BEP20DIA._name (#783) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#116)" inContext (#106-119)
Remove redundant statements if they congest code but offer no value.
Additional information: link
grantRole(bytes32,address) should be declared external:
- AccessControl.grantRole(bytes32,address) (#532-534)
revokeRole(bytes32,address) should be declared external:
- AccessControl.revokeRole(bytes32,address) (#545-547)
renounceRole(bytes32,address) should be declared external:
- AccessControl.renounceRole(bytes32,address) (#563-567)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#662-665)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#671-673)
increaseAllowance(address,uint256) should be declared external:
- BEP20DIA.increaseAllowance(address,uint256) (#902-905)
decreaseAllowance(address,uint256) should be declared external:
- BEP20DIA.decreaseAllowance(address,uint256) (#921-924)
mint(uint256) should be declared external:
- BEP20DIA.mint(uint256) (#934-937)
burn(uint256) should be declared external:
- BEP20DIA.burn(uint256) (#942-945)
pause() should be declared external:
- BEP20DIA.pause() (#947-949)
unpause() should be declared external:
- BEP20DIA.unpause() (#951-953)
Use the external attribute for functions never called from the contract.
Additional information: link
Unable to find audit link on the website
Unable to find whitepaper link on the website
Last post in Twitter was more than 30 days ago