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 #55

Closed YouStillAlive closed 1 month ago

github-actions[bot] commented 1 month 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,725,590 5,902,599 5,763,565 32 3.38
       joinParty(address,uint256) 155,710 5,662,975 2,082,098 23 1.22
       leaveParty(address,uint256,uint256) 176,031 200,171 181,349 5 0.11
       setBNBPartySwapRouter(address) 24,180 46,320 44,843 15 0.03
       setNonfungiblePositionManager(address,address) 27,399 68,928 66,159 15 0.04
       setSwapRouter(address) - - 46,298 13 0.03
       withdrawFee() - - 31,770 2 0.02
       withdrawPartyLPFee(address[]) - - 173,792 2 0.10
NonfungiblePositionManager
       approve(address,uint256) 46,052 46,395 46,277 3 0.03
SwapRouter
       exactInput((bytes,address,uint256,uint256,uint256)) 133,951 143,509 140,323 3 0.08
       multicall(bytes[]) - - 160,532 2 0.09

Deployments

Min Max Avg Block % usd avg
BNBPartyFactory 3,727,254 3,727,278 3,727,274 2.9 % 2.19
MockContract - - 107,817 0.1 % 0.06
MockNonfungibleTokenPositionDescriptor - - 111,537 0.1 % 0.07
NonfungiblePositionManager 5,171,512 5,171,524 5,171,518 4 % 3.03
SqrtPriceCalculator - - 278,712 0.2 % 0.16
SwapRouter 2,201,078 2,201,090 2,201,086 1.7 % 1.29
UniswapV3Factory - - 5,437,109 4.2 % 3.19

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 586.59 usd/bnb
Network BINANCE
Toolchain hardhat
github-actions[bot] commented 1 month 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/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyLiquidity.sol#L14-L39

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyManageable.sol#L41-L47

reentrancy-no-eth

Impact: Medium Confidence: Medium

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyLiquidity.sol#L90-L153

uninitialized-local

Impact: Medium Confidence: Medium

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyLiquidity.sol#L17

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyLiquidity.sol#L16

unused-return

Impact: Medium Confidence: Medium

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyView.sol#L113-L125

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyLiquidity.sol#L90-L153

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyLiquidity.sol#L51-L85

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyManageable.sol#L83-L95

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyLiquidity.sol#L90-L153

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyLiquidity.sol#L90-L153

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartySwaps.sol#L50-L56

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyLiquidity.sol#L90-L153

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyLiquidity.sol#L14-L39

shadowing-local

Impact: Low Confidence: High

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/token/ERC20Token.sol#L16

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/token/ERC20Token.sol#L17

reentrancy-benign

Impact: Low Confidence: Medium

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyFactory.sol#L32-L53

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyLiquidity.sol#L14-L39

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyLiquidity.sol#L90-L153

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyLiquidity.sol#L51-L85

reentrancy-events

Impact: Low Confidence: Medium

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartySwaps.sol#L13-L22

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartySwaps.sol#L28-L34

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartySwaps.sol#L13-L22

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyLiquidity.sol#L90-L153

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartySwaps.sol#L13-L22

assembly

Impact: Informational Confidence: High

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

low-level-calls

Impact: Informational Confidence: High

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

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

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

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartySwaps.sol#L28-L34

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

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

naming-convention

Impact: Informational Confidence: High

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyState.sol#L27

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyState.sol#L15

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyManageable.sol#L34

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyManageable.sol#L14

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

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyManageable.sol#L15

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

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyManageable.sol#L28

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyModifiers.sol#L46-L54

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyState.sol#L17

reentrancy-unlimited-gas

Impact: Informational Confidence: Medium

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyManageable.sol#L41-L47

unused-import

Impact: Informational Confidence: High

immutable-states

Impact: Optimization Confidence: High

https://github.com/bnb-party/BNBParty.Factory/blob/398beb2c04ac9773f03fa48dca761139a010f4db/contracts/BNBPartyState.sol#L23

codecov-commenter commented 1 month ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.