Defactor is expediting the onboarding process for real world assets in DeFi. It is a bridge between decentralised finance and traditional businesses. Real world assets can be turned into NFT’s and the NFT can be used to receive funding from the liquidity available in the crypto space. This is a difficult process for traditional businesses that don’t have the infrastructure or knowledge to understand how to do this. This is how Defactor will be the bridge between DeFi and Traditional Business. Defactor will make this an easy process that is accessible to all.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
BlockwellQuill.setUint256(BlockwellQuill.Data,address,uint256) (_BlockwellQuill.sol#65-71) is never used and should be removed
BlockwellQuill.set(BlockwellQuill.Data,address,bytes) (_BlockwellQuill.sol#19-26) is never used and should be removed
TokenGroups._addAttorney(address) (_TokenGroups.sol#71-73) is never used and should be removed
BlockwellQuill.setAddress(BlockwellQuill.Data,address,address) (_BlockwellQuill.sol#92-98) is never used and should be removed
BlockwellQuill.getUint256(BlockwellQuill.Data,address) (_BlockwellQuill.sol#78-85) is never used and should be removed
BlockwellQuill.getAddress(BlockwellQuill.Data,address) (_BlockwellQuill.sol#105-112) is never used and should be removed
BlockwellQuill.get(BlockwellQuill.Data,address) (_BlockwellQuill.sol#33-36) is never used and should be removed
Remove unused functions.
Additional information: link
Locks.totalUnlockable(address) (_Locks.sol#174-199) performs a multiplication on the result of a division:
-value = (lock.value / lock.periods) * periodsPassed (_Locks.sol#190)
Locks._unlock(address) (_Locks.sol#68-113) performs a multiplication on the result of a division:
-value = (lock.value / lock.periods) * periodsPassed (_Locks.sol#98)
Consider ordering multiplication before division.
Additional information: link
Voting.votesUsedTotal(address) (_Voting.sol#124-134) uses timestamp for comparisons
Dangerous comparisons:
- list[i].expiration > block.timestamp (_Voting.sol#128)
Voting._vote(address,uint256,uint256,string) (_Voting.sol#173-195) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(sugg.expiration == 0 || sugg.expiration > block.timestamp) (_Voting.sol#183)
Voting.getAllActiveSuggestions() (_Voting.sol#98-117) uses timestamp for comparisons
Dangerous comparisons:
- i < suggestions.length (_Voting.sol#100)
- suggestions[i].expiration > block.timestamp (_Voting.sol#101)
- i_scope_0 < suggestions.length (_Voting.sol#109)
- suggestions[i_scope_0].expiration > block.timestamp (_Voting.sol#110)
Locks._unlock(address) (_Locks.sol#68-113) uses timestamp for comparisons
Dangerous comparisons:
- lock.expiration < block.timestamp (_Locks.sol#76)
- periodsPassed >= lock.periods (_Locks.sol#89)
Locks.totalUnlockable(address) (_Locks.sol#174-199) uses timestamp for comparisons
Dangerous comparisons:
- lock.expiration < block.timestamp (_Locks.sol#179)
- periodsPassed > lock.periods (_Locks.sol#186)
Staking.unstake(uint256) (_Staking.sol#60-103) uses timestamp for comparisons
Dangerous comparisons:
- it.expiration <= block.timestamp (_Staking.sol#70)
Voting._cleanUsedVotes(address) (_Voting.sol#197-216) uses timestamp for comparisons
Dangerous comparisons:
- used.expiration < block.timestamp (_Voting.sol#205)
Avoid relying on block.timestamp.
Additional information: link
BlockwellQuill.getUint256(BlockwellQuill.Data,address) (_BlockwellQuill.sol#78-85) uses assembly
- INLINE ASM (_BlockwellQuill.sol#81-83)
BlockwellQuill.getAddress(BlockwellQuill.Data,address) (_BlockwellQuill.sol#105-112) uses assembly
- INLINE ASM (_BlockwellQuill.sol#108-110)
ErrorCodes.expect(bool,bytes2) (_ErrorCodes.sol#40-47) uses assembly
- INLINE ASM (_ErrorCodes.sol#42-45)
Do not use evm assembly.
Additional information: link
Different versions of Solidity are used:
- Version used: ['>=0.4.25', '>=0.6.10', '^0.8.9']
- ^0.8.9 (CrosschainPrime.sol#2)
- ^0.8.9 (LicenseRef-Blockwell-Smart-License.sol#231)
- >=0.6.10 (_BlockwellQuill.sol#2)
- ^0.8.9 (_ChainSwap.sol#2)
- >=0.4.25 (_ErrorCodes.sol#2)
- >=0.6.10 (_Groups.sol#2)
- ^0.8.9 (_Locks.sol#2)
- ^0.8.9 (_MultiTransfer.sol#2)
- ^0.8.9 (_Pausable.sol#2)
- ^0.8.9 (_PrimeToken.sol#2)
- ^0.8.9 (_Staking.sol#2)
- ^0.8.9 (_Token.sol#2)
- ^0.8.9 (_TokenGroups.sol#2)
- >=0.4.25 (_Type.sol#2)
- ^0.8.9 (_Voting.sol#2)
- ^0.8.9 (_VotingPrime.sol#2)
- >=0.6.10 (__Erc20.sol#2)
Use one Solidity version.
Additional information: link
Pragma version^0.8.9 (_Voting.sol#2) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
Pragma version^0.8.9 (CrosschainPrime.sol#2) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
Pragma version^0.8.9 (_Locks.sol#2) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
Pragma version^0.8.9 (_Staking.sol#2) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
Pragma version^0.8.9 (_Pausable.sol#2) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
Pragma version^0.8.9 (_VotingPrime.sol#2) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
Pragma version>=0.4.25 (_Type.sol#2) allows old versions
Pragma version^0.8.9 (_PrimeToken.sol#2) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
Pragma version^0.8.9 (_TokenGroups.sol#2) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
Pragma version>=0.4.25 (_ErrorCodes.sol#2) allows old versions
Pragma version^0.8.9 (LicenseRef-Blockwell-Smart-License.sol#231) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
Pragma version>=0.6.10 (__Erc20.sol#2) allows old versions
Pragma version>=0.6.10 (_BlockwellQuill.sol#2) allows old versions
Pragma version^0.8.9 (_Token.sol#2) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
Pragma version^0.8.9 (_ChainSwap.sol#2) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
Pragma version^0.8.9 (_MultiTransfer.sol#2) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
Pragma version>=0.6.10 (_Groups.sol#2) allows old versions
solc-0.8.9 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
Variable ErrorCodes.ERROR_BAD_PARAMETER_1 (_ErrorCodes.sol#37) is too similar to ErrorCodes.ERROR_BAD_PARAMETER_2 (_ErrorCodes.sol#38)
Prevent variables from having similar names.
Additional information: link
ErrorCodes.ERROR_BAD_PARAMETER_2 (_ErrorCodes.sol#38) is never used in CrosschainPrime (CrosschainPrime.sol#11-30)
ErrorCodes.ERROR_ZERO_VALUE (_ErrorCodes.sol#16) is never used in CrosschainPrime (CrosschainPrime.sol#11-30)
ErrorCodes.ERROR_PAYMENT (_ErrorCodes.sol#36) is never used in CrosschainPrime (CrosschainPrime.sol#11-30)
ErrorCodes.ERROR_MATH (_ErrorCodes.sol#13) is never used in CrosschainPrime (CrosschainPrime.sol#11-30)
ErrorCodes.ERROR_RESERVED2 (_ErrorCodes.sol#12) is never used in CrosschainPrime (CrosschainPrime.sol#11-30)
ErrorCodes.ERROR_LOCKED (_ErrorCodes.sol#30) is never used in CrosschainPrime (CrosschainPrime.sol#11-30)
ErrorCodes.ERROR_WRONG_TIME (_ErrorCodes.sol#18) is never used in CrosschainPrime (CrosschainPrime.sol#11-30)
ErrorCodes.ERROR_VALUE_MISMATCH (_ErrorCodes.sol#33) is never used in CrosschainPrime (CrosschainPrime.sol#11-30)
ErrorCodes.ERROR_NOT_PAUSED (_ErrorCodes.sol#26) is never used in CrosschainPrime (CrosschainPrime.sol#11-30)
ErrorCodes.ERROR_RESERVED (_ErrorCodes.sol#11) is never used in CrosschainPrime (CrosschainPrime.sol#11-30)
ErrorCodes.ERROR_INDEX_RANGE (_ErrorCodes.sol#35) is never used in CrosschainPrime (CrosschainPrime.sol#11-30)
ErrorCodes.ERROR_PAUSED (_ErrorCodes.sol#25) is never used in CrosschainPrime (CrosschainPrime.sol#11-30)
ErrorCodes.ERROR_ERC721_CHECK (_ErrorCodes.sol#24) is never used in CrosschainPrime (CrosschainPrime.sol#11-30)
ErrorCodes.ERROR_OWNER_MISMATCH (_ErrorCodes.sol#29) is never used in CrosschainPrime (CrosschainPrime.sol#11-30)
Remove unused state variables.
Additional information: link
multiTransfer(address[],uint256[]) should be declared external:
- MultiTransfer.multiTransfer(address[],uint256[]) (_MultiTransfer.sol#17-35)
allowance(address,address) should be declared external:
- Token.allowance(address,address) (_Token.sol#60-62)
multiFreeze(address[]) should be declared external:
- TokenGroups.multiFreeze(address[]) (_TokenGroups.sol#237-243)
removeFromWhitelist(address) should be declared external:
- TokenGroups.removeFromWhitelist(address) (_TokenGroups.sol#183-185)
votesUsed(address) should be declared external:
- Voting.votesUsed(address) (_Voting.sol#141-143)
removeAttorney(address) should be declared external:
- TokenGroups.removeAttorney(address) (_TokenGroups.sol#89-91)
getVotes(uint256) should be declared external:
- Voting.getVotes(uint256) (_Voting.sol#54-56)
multiUnfreeze(address[]) should be declared external:
- TokenGroups.multiUnfreeze(address[]) (_TokenGroups.sol#250-256)
removeBundler(address) should be declared external:
- TokenGroups.removeBundler(address) (_TokenGroups.sol#141-143)
payment(address,uint256,uint256) should be declared external:
- PrimeToken.payment(address,uint256,uint256) (_PrimeToken.sol#99-108)
removeDelegate(address) should be declared external:
- TokenGroups.removeDelegate(address) (_TokenGroups.sol#273-275)
increaseAllowance(address,uint256) should be declared external:
- Token.increaseAllowance(address,uint256) (_Token.sol#111-123)
totalSupply() should be declared external:
- Token.totalSupply() (_Token.sol#46-48)
multiTransferFrom(address,address[],uint256[]) should be declared external:
- MultiTransfer.multiTransferFrom(address,address[],uint256[]) (_MultiTransfer.sol#45-63)
removeAdmin(address) should be declared external:
- TokenGroups.removeAdmin(address) (_TokenGroups.sol#117-119)
addBwAdmin(address) should be declared external:
- TokenGroups.addBwAdmin(address) (_TokenGroups.sol#197-199)
addAdmin(address) should be declared external:
- TokenGroups.addAdmin(address) (_TokenGroups.sol#113-115)
vote(uint256,string) should be declared external:
- VotingPrime.vote(uint256,string) (_VotingPrime.sol#71-75)
renounceBwAdmin() should be declared external:
- TokenGroups.renounceBwAdmin() (_TokenGroups.sol#201-203)
approve(address,uint256) should be declared external:
- Token.approve(address,uint256) (_Token.sol#93-106)
addDelegate(address) should be declared external:
- TokenGroups.addDelegate(address) (_TokenGroups.sol#269-271)
pause() should be declared external:
- TokenGroups.pause() (_TokenGroups.sol#47-52)
configureVoting(bool,bool,bool,uint256,bool,bool,uint64,uint24,bool) should be declared external:
- VotingPrime.configureVoting(bool,bool,bool,uint256,bool,bool,uint64,uint24,bool) (_VotingPrime.sol#21-41)
setUnlockTime(uint256) should be declared external:
- Token.setUnlockTime(uint256) (_Token.sol#38-41)
getBwQuill(address) should be declared external:
- PrimeToken.getBwQuill(address) (_PrimeToken.sol#64-66)
stake(uint256,uint64) should be declared external:
- Staking.stake(uint256,uint64) (_Staking.sol#25-34)
bwRemoveAttorney(address) should be declared external:
- TokenGroups.bwRemoveAttorney(address) (_TokenGroups.sol#98-101)
swapFromChain(string,address,address,bytes32,uint256,uint64) should be declared external:
- ChainSwap.swapFromChain(string,address,address,bytes32,uint256,uint64) (_ChainSwap.sol#60-76)
multiTransferAndLock(address[],uint256[],uint32,uint32,uint16) should be declared external:
- MultiTransfer.multiTransferAndLock(address[],uint256[],uint32,uint32,uint16) (_MultiTransfer.sol#71-90)
getSuggestionText(uint256) should be declared external:
- Voting.getSuggestionText(uint256) (_Voting.sol#63-65)
addAttorney(address) should be declared external:
- TokenGroups.addAttorney(address) (_TokenGroups.sol#75-77)
swapToChain(string,address,uint256,uint64) should be declared external:
- ChainSwap.swapToChain(string,address,uint256,uint64) (_ChainSwap.sol#41-53)
configureStaking(uint256) should be declared external:
- Staking.configureStaking(uint256) (_Staking.sol#110-112)
unpause() should be declared external:
- TokenGroups.unpause() (_TokenGroups.sol#61-67)
addBundler(address) should be declared external:
- TokenGroups.addBundler(address) (_TokenGroups.sol#137-139)
multiVote(uint256,uint256,string) should be declared external:
- VotingPrime.multiVote(uint256,uint256,string) (_VotingPrime.sol#82-90)
addSwapper(address) should be declared external:
- TokenGroups.addSwapper(address) (_TokenGroups.sol#156-158)
createSuggestion(string) should be declared external:
- VotingPrime.createSuggestion(string) (_VotingPrime.sol#48-55)
removeAutomator(address) should be declared external:
- TokenGroups.removeAutomator(address) (_TokenGroups.sol#287-289)
addAutomator(address) should be declared external:
- TokenGroups.addAutomator(address) (_TokenGroups.sol#283-285)
transferFrom(address,address,uint256) should be declared external:
- Token.transferFrom(address,address,uint256) (_Token.sol#145-153)
bwAddAttorney(address) should be declared external:
- TokenGroups.bwAddAttorney(address) (_TokenGroups.sol#84-87)
createSuggestionExpiring(string,uint64,uint24) should be declared external:
- VotingPrime.createSuggestionExpiring(string,uint64,uint24) (_VotingPrime.sol#57-64)
setAttorneyEmail(string) should be declared external:
- PrimeToken.setAttorneyEmail(string) (_PrimeToken.sol#73-75)
bwRemoveAdmin(address) should be declared external:
- TokenGroups.bwRemoveAdmin(address) (_TokenGroups.sol#126-129)
allStakes(address) should be declared external:
- Staking.allStakes(address) (_Staking.sol#51-53)
stakeReward(address[],uint256[]) should be declared external:
- Staking.stakeReward(address[],uint256[]) (_Staking.sol#119-140)
withdrawTokens(Erc20,uint256) should be declared external:
- PrimeToken.withdrawTokens(Erc20,uint256) (_PrimeToken.sol#80-84)
getSuggestionCreator(uint256) should be declared external:
- Voting.getSuggestionCreator(uint256) (_Voting.sol#90-92)
withdraw() should be declared external:
- PrimeToken.withdraw() (_PrimeToken.sol#89-92)
unfreeze(address) should be declared external:
- TokenGroups.unfreeze(address) (_TokenGroups.sol#228-230)
unlock() should be declared external:
- Locks.unlock() (_Locks.sol#59-61)
freeze(address) should be declared external:
- TokenGroups.freeze(address) (_TokenGroups.sol#220-222)
decreaseAllowance(address,uint256) should be declared external:
- Token.decreaseAllowance(address,uint256) (_Token.sol#128-140)
getAccountVotes(address,uint256) should be declared external:
- Voting.getAccountVotes(address,uint256) (_Voting.sol#81-83)
setBwQuill(address,string) should be declared external:
- PrimeToken.setBwQuill(address,string) (_PrimeToken.sol#54-57)
getAllSuggestions() should be declared external:
- Voting.getAllSuggestions() (_Voting.sol#94-96)
addToWhitelist(address) should be declared external:
- TokenGroups.addToWhitelist(address) (_TokenGroups.sol#179-181)
paused() should be declared external:
- Pausable.paused() (_Pausable.sol#34-36)
getAllActiveSuggestions() should be declared external:
- Voting.getAllActiveSuggestions() (_Voting.sol#98-117)
locksOf(address) should be declared external:
- Locks.locksOf(address) (_Locks.sol#38-52)
unstake(uint256) should be declared external:
- Staking.unstake(uint256) (_Staking.sol#60-103)
removeSwapper(address) should be declared external:
- TokenGroups.removeSwapper(address) (_TokenGroups.sol#164-166)
Use the external attribute for functions never called from the contract.
Additional information: link
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
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 token on CoinHunt
Additional information: link
Unable to find code repository for the project
Token has no active CoinMarketCap listing / rank
Token has a considerable age, but social accounts / website are missing or have few users
Twitter account link seems to be invalid
Unable to find Blog account (Reddit or Medium)