The-Poolz / LockDealNFT.DispenserProvider

NFT Dispenser Provider
MIT License
0 stars 1 forks source link

`_withdrawIfAvailable` refactor #30

Closed YouStillAlive closed 2 weeks ago

YouStillAlive commented 3 weeks ago

closes #26

github-actions[bot] commented 3 weeks ago

Methods

Symbol Meaning
Execution gas for this method does not include intrinsic gas overhead
Cost was non-zero but below the precision setting for the currency display (see options)
Min Max Avg Calls usd avg
DispenserProvider
       createNewPool(address[],uint256[],bytes) 294,640 322,940 321,171 16 0.20
       dispenseLock(uint256,uint256,address,(address,uint256[])[],bytes) 340,816 353,266 347,377 9 0.22
ERC20Token
       approve(address,uint256) - - 45,962 16 0.03
LockDealNFT
       approve(address,uint256) - - 48,353 1 0.03
       setApprovalForAll(address,bool) 24,828 46,740 39,436 3 0.03
       setApprovedContract(address,bool) 48,143 48,155 48,152 4 0.03

Deployments

Min Max Avg Block % usd avg
DealProvider - - 1,558,658 1.2 % 0.99
DispenserProvider - - 2,214,958 1.7 % 1.41
ERC20Token - - 648,905 0.5 % 0.41
LockDealNFT - - 4,305,889 3.3 % 2.73
LockDealProvider - - 1,707,187 1.3 % 1.08
MockVaultManager - - 322,429 0.2 % 0.20
TimedDealProvider - - 1,854,511 1.4 % 1.18

Solidity and Network Config

Settings Value
Solidity: version 0.8.28
Solidity: optimized true
Solidity: runs 200
Solidity: viaIR true
Block Limit 130,000,000
L1 Gas Price 1 gwei
Token Price 635.15 usd/bnb
Network BINANCE
Toolchain hardhat
github-actions[bot] commented 3 weeks ago

Slither report

THIS CHECKLIST IS NOT COMPLETE. Use --show-ignored-findings to show all the results. Summary

https://github.com/The-Poolz/LockDealNFT.DispenserProvider/blob/9269bdb9e64d3e8b177a2e831784be2de8e76ff3/contracts/DispenserInternal.sol#L41-L50

reentrancy-events

Impact: Low Confidence: Medium

https://github.com/The-Poolz/LockDealNFT.DispenserProvider/blob/9269bdb9e64d3e8b177a2e831784be2de8e76ff3/contracts/DispenserProvider.sol#L24-L46