bnb-party / BNBParty.Factory

Smart contract manages Liquidity Pools and Token creation, enabling decentralized swaps and liquidity handling
MIT License
2 stars 0 forks source link

update deploy script #39

Closed YouStillAlive closed 2 months ago

github-actions[bot] commented 2 months 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
BNBPartyFactory
       createParty(string,string) 5,668,441 5,849,801 5,726,379 19 3.31
       joinParty(address,uint256) 130,488 5,622,186 3,800,019 9 2.20
       leaveParty(address,uint256,uint256) 171,638 185,318 176,198 3 0.10
       setNonfungiblePositionManager(address,address) 27,381 68,906 62,974 7 0.04
       setSwapRouter(address) 24,097 46,237 43,074 7 0.02
       withdrawFee() - - 31,770 2 0.02
       withdrawPartyLPFee(address[]) - - 173,853 1 0.10
NonfungiblePositionManager
       approve(address,uint256) 46,052 46,383 46,273 3 0.03
SwapRouter
       exactInput((bytes,address,uint256,uint256,uint256)) 109,767 119,325 116,139 3 0.07
       multicall(bytes[]) - - 141,256 2 0.08

Deployments

Min Max Avg Block % usd avg
BNBPartyFactory - - 2,993,400 2.3 % 1.73
MockNonfungibleTokenPositionDescriptor - - 111,537 0.1 % 0.06
NonfungiblePositionManager 5,171,512 5,171,524 5,171,518 4 % 2.99
SwapRouter 2,201,078 2,201,090 2,201,086 1.7 % 1.27
UniswapV3Factory 5,437,097 5,437,109 5,437,107 4.2 % 3.14

Solidity and Network Config

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

Slither report

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

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyState.sol#L62-L68

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyInternal.sol#L8-L33

reentrancy-no-eth

Impact: Medium Confidence: Medium

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyInternal.sol#L90-L131

uninitialized-local

Impact: Medium Confidence: Medium

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyInternal.sol#L12

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyInternal.sol#L13

unused-return

Impact: Medium Confidence: Medium

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyInternal.sol#L90-L131

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyInternal.sol#L35-L68

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyState.sol#L96-L111

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyInternal.sol#L90-L131

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyInternal.sol#L8-L33

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyInternal.sol#L138-L155

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyInternal.sol#L90-L131

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyInternal.sol#L90-L131

shadowing-local

Impact: Low Confidence: High

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/token/ERC20Token.sol#L9

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/token/ERC20Token.sol#L10

reentrancy-benign

Impact: Low Confidence: Medium

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyInternal.sol#L8-L33

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyFactory.sol#L20-L41

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyInternal.sol#L35-L68

reentrancy-events

Impact: Low Confidence: Medium

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyInternal.sol#L70-L79

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyInternal.sol#L70-L79

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyInternal.sol#L70-L79

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyInternal.sol#L81-L88

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyInternal.sol#L90-L131

assembly

Impact: Informational Confidence: High

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/node_modules/@openzeppelin/contracts/utils/Address.sol#L146-L158

low-level-calls

Impact: Informational Confidence: High

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/node_modules/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#L110-L117

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/node_modules/@openzeppelin/contracts/utils/Address.sol#L95-L98

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/node_modules/@openzeppelin/contracts/utils/Address.sol#L104-L107

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/node_modules/@openzeppelin/contracts/utils/Address.sol#L41-L50

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/node_modules/@openzeppelin/contracts/utils/Address.sol#L83-L89

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyInternal.sol#L81-L88

naming-convention

Impact: Informational Confidence: High

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyState.sol#L21

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyState.sol#L44

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyState.sol#L12

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyState.sol#L45

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyState.sol#L54

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/interfaces/INonfungiblePositionManager.sol#L184

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/node_modules/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol#L89

reentrancy-unlimited-gas

Impact: Informational Confidence: Medium

https://github.com/bnb-party/BNBParty.Factory/blob/15e12ba584ff4e01b9dd0a41ae2ed5690ffa87a9/contracts/BNBPartyState.sol#L62-L68