Dollar-pegged stablecoins are an essential component of the crypto world. Traders can use them for a variety of transactions, knowing that the same quantity of stablecoin will have the same purchasing strength no matter what day it is. However, this is a misperception. With the US government and the Federal Reserve control over the US currency, the relentless printing of money happening these recent years certainly make the US dollar's value to fall, resulting in an obvious depreciation of stablecoins.
Our Solution
Dios Finance aims to address this issue by establishing a token backed by a diverse amount of assets and focused on supply expansion as well as control. We believe that DIOS token can maintain its purchasing power in the face of market volatility.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
DIOSToken.recoverUnsupported(address,uint256,address) (contracts/DIOSToken.sol#902-905) ignores return value by IERC20(_token).transfer(_to,_amount) (contracts/DIOSToken.sol#904)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
VaultOwned.setVault(address) (contracts/DIOSToken.sol#855-859) should emit an event for:
- _vault = vault_ (contracts/DIOSToken.sol#856)
Emit an event for critical parameter changes.
Additional information: link
VaultOwned.setVault(address).vault_ (contracts/DIOSToken.sol#855) lacks a zero-check on :
- _vault = vault_ (contracts/DIOSToken.sol#856)
Check that the address is not zero.
Additional information: link
ERC20Permit.permit(address,address,uint256,uint256,uint8,bytes32,bytes32) (contracts/DIOSToken.sol#783-804) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp <= deadline,Permit: expired deadline) (contracts/DIOSToken.sol#792)
Avoid relying on block.timestamp.
Additional information: link
ERC20Permit.constructor() (contracts/DIOSToken.sol#766-781) uses assembly
- INLINE ASM (contracts/DIOSToken.sol#768-770)
Do not use evm assembly.
Additional information: link
ERC20.ERC20TOKEN_ERC1820_INTERFACE_ID (contracts/DIOSToken.sol#605) is never used in DIOSToken (contracts/DIOSToken.sol#872-908)
Remove unused state variables.
Additional information: link
symbol() should be declared external:
- ERC20.symbol() (contracts/DIOSToken.sol#635-637)
decimals() should be declared external:
- ERC20.decimals() (contracts/DIOSToken.sol#639-641)
totalSupply() should be declared external:
- ERC20.totalSupply() (contracts/DIOSToken.sol#643-645)
balanceOf(address) should be declared external:
- ERC20.balanceOf(address) (contracts/DIOSToken.sol#647-649)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (contracts/DIOSToken.sol#651-654)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (contracts/DIOSToken.sol#660-663)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (contracts/DIOSToken.sol#665-669)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (contracts/DIOSToken.sol#671-674)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (contracts/DIOSToken.sol#676-679)
permit(address,address,uint256,uint256,uint8,bytes32,bytes32) should be declared external:
- ERC20Permit.permit(address,address,uint256,uint256,uint8,bytes32,bytes32) (contracts/DIOSToken.sol#783-804)
nonces(address) should be declared external:
- ERC20Permit.nonces(address) (contracts/DIOSToken.sol#806-808)
owner() should be declared external:
- Ownable.owner() (contracts/DIOSToken.sol#830-832)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (contracts/DIOSToken.sol#839-842)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (contracts/DIOSToken.sol#844-848)
vault() should be declared external:
- VaultOwned.vault() (contracts/DIOSToken.sol#861-863)
burn(uint256) should be declared external:
- DIOSToken.burn(uint256) (contracts/DIOSToken.sol#883-885)
burnFrom(address,uint256) should be declared external:
- DIOSToken.burnFrom(address,uint256) (contracts/DIOSToken.sol#887-889)
Use the external attribute for functions never called from the contract.
Additional information: link
Counters.decrement(Counters.Counter) (contracts/DIOSToken.sol#736-738) is never used and should be removed
EnumerableSet._add(EnumerableSet.Set,bytes32) (contracts/DIOSToken.sol#29-39) is never used and should be removed
EnumerableSet._at(EnumerableSet.Set,uint256) (contracts/DIOSToken.sol#105-108) is never used and should be removed
EnumerableSet._contains(EnumerableSet.Set,bytes32) (contracts/DIOSToken.sol#84-86) is never used and should be removed
EnumerableSet._getValues(EnumerableSet.Set) (contracts/DIOSToken.sol#110-112) is never used and should be removed
EnumerableSet._insert(EnumerableSet.Set,uint256,bytes32) (contracts/DIOSToken.sol#119-125) is never used and should be removed
EnumerableSet._length(EnumerableSet.Set) (contracts/DIOSToken.sol#91-93) is never used and should be removed
EnumerableSet._remove(EnumerableSet.Set,bytes32) (contracts/DIOSToken.sol#47-79) is never used and should be removed
EnumerableSet.add(EnumerableSet.AddressSet,address) (contracts/DIOSToken.sol#268-270) is never used and should be removed
EnumerableSet.add(EnumerableSet.Bytes32Set,bytes32) (contracts/DIOSToken.sol#201-203) is never used and should be removed
EnumerableSet.add(EnumerableSet.Bytes4Set,bytes4) (contracts/DIOSToken.sol#137-139) is never used and should be removed
EnumerableSet.add(EnumerableSet.UInt256Set,uint256) (contracts/DIOSToken.sol#394-396) is never used and should be removed
EnumerableSet.add(EnumerableSet.UintSet,uint256) (contracts/DIOSToken.sol#342-344) is never used and should be removed
EnumerableSet.at(EnumerableSet.AddressSet,uint256) (contracts/DIOSToken.sol#306-308) is never used and should be removed
EnumerableSet.at(EnumerableSet.Bytes32Set,uint256) (contracts/DIOSToken.sol#239-241) is never used and should be removed
EnumerableSet.at(EnumerableSet.Bytes4Set,uint256) (contracts/DIOSToken.sol#175-177) is never used and should be removed
EnumerableSet.at(EnumerableSet.UInt256Set,uint256) (contracts/DIOSToken.sol#432-434) is never used and should be removed
EnumerableSet.at(EnumerableSet.UintSet,uint256) (contracts/DIOSToken.sol#380-382) is never used and should be removed
EnumerableSet.contains(EnumerableSet.AddressSet,address) (contracts/DIOSToken.sol#285-287) is never used and should be removed
EnumerableSet.contains(EnumerableSet.Bytes32Set,bytes32) (contracts/DIOSToken.sol#218-220) is never used and should be removed
EnumerableSet.contains(EnumerableSet.Bytes4Set,bytes4) (contracts/DIOSToken.sol#154-156) is never used and should be removed
EnumerableSet.contains(EnumerableSet.UInt256Set,uint256) (contracts/DIOSToken.sol#411-413) is never used and should be removed
EnumerableSet.contains(EnumerableSet.UintSet,uint256) (contracts/DIOSToken.sol#359-361) is never used and should be removed
EnumerableSet.getValues(EnumerableSet.AddressSet) (contracts/DIOSToken.sol#314-323) is never used and should be removed
EnumerableSet.getValues(EnumerableSet.Bytes32Set) (contracts/DIOSToken.sol#243-251) is never used and should be removed
EnumerableSet.getValues(EnumerableSet.Bytes4Set) (contracts/DIOSToken.sol#179-185) is never used and should be removed
EnumerableSet.insert(EnumerableSet.AddressSet,uint256,address) (contracts/DIOSToken.sol#325-327) is never used and should be removed
EnumerableSet.insert(EnumerableSet.Bytes32Set,uint256,bytes32) (contracts/DIOSToken.sol#253-255) is never used and should be removed
EnumerableSet.insert(EnumerableSet.Bytes4Set,uint256,bytes4) (contracts/DIOSToken.sol#187-189) is never used and should be removed
EnumerableSet.length(EnumerableSet.AddressSet) (contracts/DIOSToken.sol#292-294) is never used and should be removed
EnumerableSet.length(EnumerableSet.Bytes32Set) (contracts/DIOSToken.sol#225-227) is never used and should be removed
EnumerableSet.length(EnumerableSet.Bytes4Set) (contracts/DIOSToken.sol#161-163) is never used and should be removed
EnumerableSet.length(EnumerableSet.UInt256Set) (contracts/DIOSToken.sol#418-420) is never used and should be removed
EnumerableSet.length(EnumerableSet.UintSet) (contracts/DIOSToken.sol#366-368) is never used and should be removed
EnumerableSet.remove(EnumerableSet.AddressSet,address) (contracts/DIOSToken.sol#278-280) is never used and should be removed
EnumerableSet.remove(EnumerableSet.Bytes32Set,bytes32) (contracts/DIOSToken.sol#211-213) is never used and should be removed
EnumerableSet.remove(EnumerableSet.Bytes4Set,bytes4) (contracts/DIOSToken.sol#147-149) is never used and should be removed
EnumerableSet.remove(EnumerableSet.UInt256Set,uint256) (contracts/DIOSToken.sol#404-406) is never used and should be removed
EnumerableSet.remove(EnumerableSet.UintSet,uint256) (contracts/DIOSToken.sol#352-354) is never used and should be removed
SafeMath.average(uint256,uint256) (contracts/DIOSToken.sol#586-589) is never used and should be removed
SafeMath.bondingCurve(uint256,uint256) (contracts/DIOSToken.sol#595-597) is never used and should be removed
SafeMath.div(uint256,uint256) (contracts/DIOSToken.sol#540-542) is never used and should be removed
SafeMath.div(uint256,uint256,string) (contracts/DIOSToken.sol#544-550) is never used and should be removed
SafeMath.mod(uint256,uint256) (contracts/DIOSToken.sol#552-554) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (contracts/DIOSToken.sol#556-559) is never used and should be removed
SafeMath.mul(uint256,uint256) (contracts/DIOSToken.sol#528-538) is never used and should be removed
SafeMath.percentageAmount(uint256,uint8) (contracts/DIOSToken.sol#574-576) is never used and should be removed
SafeMath.percentageOfTotal(uint256,uint256) (contracts/DIOSToken.sol#582-584) is never used and should be removed
SafeMath.quadraticPricing(uint256,uint256) (contracts/DIOSToken.sol#591-593) is never used and should be removed
SafeMath.sqrrt(uint256) (contracts/DIOSToken.sol#561-572) is never used and should be removed
SafeMath.substractPercentage(uint256,uint8) (contracts/DIOSToken.sol#578-580) is never used and should be removed
Remove unused functions.
Additional information: link
Variable ERC20._balances (contracts/DIOSToken.sol#608) is not in mixedCase
Variable ERC20._allowances (contracts/DIOSToken.sol#611) is not in mixedCase
Variable ERC20._totalSupply (contracts/DIOSToken.sol#614) is not in mixedCase
Variable ERC20._name (contracts/DIOSToken.sol#617) is not in mixedCase
Variable ERC20._symbol (contracts/DIOSToken.sol#620) is not in mixedCase
Variable ERC20._decimals (contracts/DIOSToken.sol#623) is not in mixedCase
Variable ERC20Permit.DOMAIN_SEPARATOR (contracts/DIOSToken.sol#764) is not in mixedCase
Variable Ownable._owner (contracts/DIOSToken.sol#821) is not in mixedCase
Variable VaultOwned._vault (contracts/DIOSToken.sol#853) is not in mixedCase
Function DIOSToken._burnFrom(address,uint256) (contracts/DIOSToken.sol#891-900) is not in mixedCase
Parameter DIOSToken.recoverUnsupported(address,uint256,address)._token (contracts/DIOSToken.sol#902) is not in mixedCase
Parameter DIOSToken.recoverUnsupported(address,uint256,address)._amount (contracts/DIOSToken.sol#902) is not in mixedCase
Parameter DIOSToken.recoverUnsupported(address,uint256,address)._to (contracts/DIOSToken.sol#902) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token/project description on the website or on BscScan, CoinMarketCap
Unable to find token contract audit
Unable to verify token contract address on the website
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Token has relatively low CoinMarketCap rank
Last post in Twitter was more than 30 days ago