πLogic Audit
In this page we explain the process of auditing our smart contracts, the flow of auditing is made by stressing all the functionalities of the codes using Hardhat framework.
Last updated
In this page we explain the process of auditing our smart contracts, the flow of auditing is made by stressing all the functionalities of the codes using Hardhat framework.
Last updated
// CrazyZooToken contract:
β Deployment should assign the total supply of tokens to the owner (859ms)
β Token decimal should return 6 (95ms)
β myReferrer should return 0 address (77ms)
β getFeeCollectors should return 0 addresses (144ms)
β getFee should return 1500000,1500000 and 3000000 (86ms)
β Fees should set to 3000000,3000000 and 1500000 (130ms)
β setReferralFee should revert for 0 value (94ms)
β setReferralFee should set the ReferralFee to 5000000 (65ms)
β setReferralFee should be reverted for OnlyOwner (65ms)
β setStakingFee should revert for 0 value (101ms)
β setStakingFee should set the StakingFee to 5000000 (108ms)
β setStakingFee should be reverted for OnlyOwner (103ms)
β setMarketingFee should revert for 0 value (87ms)
β setMarketingFee should set the StakingFee to 5000000 (75ms)
β setMarketingFee should be reverted for OnlyOwner (87ms)
β setMarketingWallet and setStakingContractAddress should set the MarketingWallet to add1 and add2 respectively (109ms)
β setMarketingWallet and setStakingContractAddress should be reverted for OnlyOwner (104ms)
β setMarketingWallet and setStakingContractAddress should be reverted for 0 address (80ms)
β setPoolAddress should set the PoolAddress to add1 (92ms)
β setPoolAddress should revert for 0 value (79ms)
β setPoolAddress should be reverted for OnlyOwner (78ms)
β isPoolAddress should return false (72ms)
β setMinter should set the PoolAddress to add1 (87ms)
β setMinter should revert for 0 address (67ms)
β setMinter should be reverted for OnlyOwner (67ms)
β isMinter should return false (76ms)
β SetReferral should set address of referrer to add1 and refferal to add2 (117ms)
β SetReferral should revert for 0 addresses (67ms)
β SetReferral should revert for same refferer and refferal addresses (86ms)
β SetReferral should revert for refferal has alreagy got a refferal (87ms)
β isDeprecated should return false (61ms)
β isDeprecated should return true (67ms)
β deprecate should set the upgradedAddress to addr1 (72ms)
β deprecate should reverted for OnlyOwner (88ms)
β deprecate should reverted for 0 address (69ms)
β approve should set the spender to addr1 and amount to 10 ZooToken (94ms)
β approve should be reverted for 0 value (71ms)
β _calculateFee should return 0 fees. msg.sender is owner (69ms)
β _calculateFee should return 0 fees. StakingContractAddress is msg.sender (77ms)
β _calculateFee should return 0 fees. marketingWallet is msg.sender (97ms)
β _calculateFee should return (150000,150000,0,300000). UniswapAddres[_from] (83ms)
β _calculateFee should return (150000,150000,0,300000). UniswapAddres[_to] (72ms)
β transfer should update the balance of addr1 (89ms)
β transfer should update the balance of Pool and feeCollectors.trasnfering tokens from user to pool (166ms)
β transfer should update the balance of Pool and feeCollectors.trasnfering tokens from Pool to user (152ms)
β transferFrom should update the balance of addr1 (119ms)
β transferFrom should update the balance of Pool and feeCollectors.trasnfering tokens from user to pool (152ms)
β transferFrom should update the balance of Pool and feeCollectors.trasnfering tokens from Pool to user (137ms)
CrazyZooNFT contract:
β setRange should set the id range (1002ms)
β setFees should set the fee (156ms)
β setDirectMinting should set the DirectMinting to true (126ms)
β setDirectMinting should set the DirectMinting to false (114ms)
β setMintFeeStatus should set the DirectMinting to true (77ms)
β setMintFeeStatus should set the DirectMinting to false (102ms)
β setFeeCollector should set the FeeCollectorAddress (107ms)
β setFeeCollector should be reverted for setting 0 address (124ms)
β setFeeCollector should be reverted for onlyRole (134ms)
β transferFee should update the balance of feeCollector (192ms)
β transferFee should be reverted for 0 address (167ms)
β transferFee should be reverted for 0 amount (148ms)
β mintLemur should mint the LemurId (359ms)
β mintLemur should mint the LemurId for Minter Role (180ms)
β mintLemur should be reverted when directMint is disabled (174ms)
β mintLemur should mint the LemurId when chargeFeeOnMint is false (178ms)
β mintLemur should be reverted for lemurIdCounter <= lemurMaxId (316ms)
β mintRhino should mint the RhinoId (316ms)
β mintRhino should mint the RhinoId for Minter Role (174ms)
β mintRhino should be reverted when directMint is disabled (189ms)
β mintRhino should mint the RhinoId when chargeFeeOnMint is false (165ms)
β mintRhino should be reverted for rhinoIdCounter <= rhinoMaxId (317ms)
β mintGorilla should mint the GorillaId (335ms)
β mintGorilla should mint the GorillaId for Minter Role (165ms)
β mintGorilla should be reverted when directMint is disabled (170ms)
β mintGorilla should mint the GorillaId when chargeFeeOnMint is false (196ms)
β mintGorilla should be reverted for gorillaIdCounter <= gorillaMaxId (326ms)
β setBaseURI should set the BaseURI (203ms)
CrazyZooStaking contract:
β Setting addresses and fees value. (953ms)
β getWhaleFee should return the correct value of Fees based on rewardTokenBalance (245ms)
β calculateRewards should return the correct value of rewards based on the stakerData and stakedNFT (235ms)
β calculateRewards should return the correct value of rewards based on the stakerData and stakedNFT. it has been morethen 30 days since the nft didn't feed (205ms)
β calculateRewards should return 0 when expired nft has set to true (213ms)
β calculateRewards should return 0 when timestaked has exceed reward days (184ms)
β setRewardsPerDay should set the rewardPerDay (228ms)
β setRewardDays should set the rewardDays. (231ms)
β isHungry should return false when lastTimeFed is less than 30 days. (174ms)
β isHungry should return true when lastTimeFed is greater than 30 days. (170ms)