UBU Finance (Universal Binance Union) - is a platform that combines the most advanced DEFI applications on Binance Smart Chain
ERC20.constructor(string,string).name (#455) shadows:
- ERC20.name() (#464-466) (function)
ERC20.constructor(string,string).symbol (#455) shadows:
- ERC20.symbol() (#472-474) (function)
Rename the local variables that shadow another component.
Additional information: link
UBUToken.setFeeAddr(address)._feeaddr (#877) lacks a zero-check on :
- feeaddr = _feeaddr (#878)
Check that the address is not zero.
Additional information: link
Address.isContract(address) (#287-296) uses assembly
- INLINE ASM (#294)
Address._functionCallWithValue(address,bytes,uint256,string) (#380-401) uses assembly
- INLINE ASM (#393-396)
Do not use evm assembly.
Additional information: link
UBUToken._transfer(address,address,uint256) (#825-833) compares to a boolean constant:
-transferFeeRate > 0 && _transactionFee[recipient] == true && recipient != address(0) && feeaddr != address(0) (#826)
Remove the equality to the boolean constant.
Additional information: link
Different versions of Solidity is used:
- Version used: ['0.6.12', '^0.6.0', '^0.6.2']
- ^0.6.0 (#1)
- ^0.6.0 (#26)
- ^0.6.0 (#104)
- ^0.6.2 (#264)
- ^0.6.0 (#406)
- ^0.6.0 (#709)
- 0.6.12 (#777)
Use one Solidity version.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#380-401) is never used and should be removed
Address.functionCall(address,bytes) (#340-342) is never used and should be removed
Address.functionCall(address,bytes,string) (#350-352) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#365-367) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#375-378) is never used and should be removed
Address.isContract(address) (#287-296) is never used and should be removed
Address.sendValue(address,uint256) (#314-320) is never used and should be removed
Context._msgData() (#18-21) is never used and should be removed
ERC20._setupDecimals(uint8) (#686-688) is never used and should be removed
SafeMath.div(uint256,uint256) (#204-206) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#220-226) is never used and should be removed
SafeMath.mod(uint256,uint256) (#240-242) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#256-259) is never used and should be removed
SafeMath.mul(uint256,uint256) (#178-190) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.6.0 (#1) allows old versions
Pragma version^0.6.0 (#26) allows old versions
Pragma version^0.6.0 (#104) allows old versions
Pragma version^0.6.2 (#264) allows old versions
Pragma version^0.6.0 (#406) allows old versions
Pragma version^0.6.0 (#709) allows old versions
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
Low level call in Address.sendValue(address,uint256) (#314-320):
- (success) = recipient.call{value: amount}() (#318)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#380-401):
- (success,returndata) = target.call{value: weiValue}(data) (#384)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter UBUToken.mint(address,uint256)._to (#836) is not in mixedCase
Parameter UBUToken.mint(address,uint256)._amount (#836) is not in mixedCase
Parameter UBUToken.addTransferFeeAddress(address)._transferFeeAddress (#869) is not in mixedCase
Parameter UBUToken.removeTransferBurnAddress(address)._transferFeeAddress (#873) is not in mixedCase
Parameter UBUToken.setFeeAddr(address)._feeaddr (#877) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#19)" inContext (#13-22)
Remove redundant statements if they congest code but offer no value.
Additional information: link
UBUToken.constructor() (#881-884) uses literals with too many digits:
- _mint(msg.sender,6000000 * 10 ** 18) (#883)
UBUToken.slitherConstructorVariables() (#780-886) uses literals with too many digits:
- _cap = 60000000e18 (#781)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
UBUToken._cap (#781) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
name() should be declared external:
- ERC20.name() (#464-466)
symbol() should be declared external:
- ERC20.symbol() (#472-474)
decimals() should be declared external:
- ERC20.decimals() (#489-491)
balanceOf(address) should be declared external:
- ERC20.balanceOf(address) (#503-505)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#515-518)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#534-537)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#551-555)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#569-572)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#588-591)
owner() should be declared external:
- Ownable.owner() (#740-742)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#759-762)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#768-772)
capfarm() should be declared external:
- UBUToken.capfarm() (#792-794)
mint(address,uint256) should be declared external:
- UBUToken.mint(address,uint256) (#836-838)
burn(uint256) should be declared external:
- UBUToken.burn(uint256) (#845-848)
burnFrom(address,uint256) should be declared external:
- UBUToken.burnFrom(address,uint256) (#861-867)
addTransferFeeAddress(address) should be declared external:
- UBUToken.addTransferFeeAddress(address) (#869-871)
removeTransferBurnAddress(address) should be declared external:
- UBUToken.removeTransferBurnAddress(address) (#873-875)
setFeeAddr(address) should be declared external:
- UBUToken.setFeeAddr(address) (#877-879)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract ownership is semi-renounced (passed to a contract)
Unable to find whitepaper link on the website
Token is not listed at Mobula.Finance
Additional information: link
Token has relatively low CoinGecko rank
Last post in Twitter was more than 180 days ago
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account