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

add `Pausable` #58

Closed YouStillAlive closed 1 month ago

YouStillAlive commented 1 month ago

closes #10

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,728,876 5,904,124 5,762,533 34 3.14
       joinParty(address,uint256) 157,877 5,707,644 2,011,192 24 1.09
       leaveParty(address,uint256,uint256) 177,222 202,327 182,629 5 0.10
       pause() - - 46,851 5 0.03
       setBNBPartySwapRouter(address) 24,135 46,275 44,798 15 0.02
       setNonfungiblePositionManager(address,address) 27,416 68,950 66,180 15 0.04
       setSwapRouter(address) 46,274 46,298 46,296 13 0.03
       unpause() - - 24,885 5 0.01
       withdrawFee() - - 31,766 2 0.02
       withdrawPartyLPFee(address[]) - - 173,814 2 0.09
NonfungiblePositionManager
       approve(address,uint256) 46,052 46,395 46,303 4 0.03
SwapRouter
       exactInput((bytes,address,uint256,uint256,uint256)) 136,151 145,709 142,523 3 0.08
       multicall(bytes[]) - - 162,732 2 0.09

Deployments

Min Max Avg Block % usd avg
BNBPartyFactory 3,709,962 3,709,986 3,709,984 2.9 % 2.02
MockContract - - 107,817 0.1 % 0.06
MockNonfungibleTokenPositionDescriptor - - 111,537 0.1 % 0.06
NonfungiblePositionManager 5,171,500 5,171,524 5,171,520 4 % 2.81
SqrtPriceCalculator - - 278,712 0.2 % 0.15
SwapRouter 2,201,078 2,201,090 2,201,087 1.7 % 1.20
UniswapV3Factory 5,437,097 5,437,109 5,437,107 4.2 % 2.96

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 544.21 usd/bnb
Network BINANCE
Toolchain hardhat
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.

Files Coverage Δ
contracts/BNBPartyFactory.sol 100.00% <100.00%> (ø)
contracts/BNBPartyManageable.sol 96.96% <100.00%> (+0.41%) :arrow_up:
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/61a9219f4ad741f16650c424d9686e35a03c0fb9/contracts/BNBPartyLiquidity.sol#L14-L56

unused-return

Impact: Medium Confidence: Medium

https://github.com/bnb-party/BNBParty.Factory/blob/61a9219f4ad741f16650c424d9686e35a03c0fb9/contracts/BNBPartyLiquidity.sol#L14-L56

https://github.com/bnb-party/BNBParty.Factory/blob/61a9219f4ad741f16650c424d9686e35a03c0fb9/contracts/BNBPartyCreation.sol#L45-L79

https://github.com/bnb-party/BNBParty.Factory/blob/61a9219f4ad741f16650c424d9686e35a03c0fb9/contracts/BNBPartyFee.sol#L68-L80

https://github.com/bnb-party/BNBParty.Factory/blob/61a9219f4ad741f16650c424d9686e35a03c0fb9/contracts/BNBPartyLiquidityHelper.sol#L16-L40

https://github.com/bnb-party/BNBParty.Factory/blob/61a9219f4ad741f16650c424d9686e35a03c0fb9/contracts/BNBPartyManageable.sol#L93-L105

https://github.com/bnb-party/BNBParty.Factory/blob/61a9219f4ad741f16650c424d9686e35a03c0fb9/contracts/BNBPartySwaps.sol#L47-L53

reentrancy-benign

Impact: Low Confidence: Medium

https://github.com/bnb-party/BNBParty.Factory/blob/61a9219f4ad741f16650c424d9686e35a03c0fb9/contracts/BNBPartyCreation.sol#L45-L79

https://github.com/bnb-party/BNBParty.Factory/blob/61a9219f4ad741f16650c424d9686e35a03c0fb9/contracts/BNBPartyCreation.sol#L16-L33

https://github.com/bnb-party/BNBParty.Factory/blob/61a9219f4ad741f16650c424d9686e35a03c0fb9/contracts/BNBPartyLiquidity.sol#L14-L56

reentrancy-events

Impact: Low Confidence: Medium

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

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

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

https://github.com/bnb-party/BNBParty.Factory/blob/61a9219f4ad741f16650c424d9686e35a03c0fb9/contracts/BNBPartyLiquidity.sol#L14-L56

naming-convention

Impact: Informational Confidence: High

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

https://github.com/bnb-party/BNBParty.Factory/blob/61a9219f4ad741f16650c424d9686e35a03c0fb9/contracts/BNBPartyState.sol#L14

https://github.com/bnb-party/BNBParty.Factory/blob/61a9219f4ad741f16650c424d9686e35a03c0fb9/contracts/BNBPartyManageable.sol#L35

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

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

https://github.com/bnb-party/BNBParty.Factory/blob/61a9219f4ad741f16650c424d9686e35a03c0fb9/contracts/BNBPartyManageable.sol#L16

https://github.com/bnb-party/BNBParty.Factory/blob/61a9219f4ad741f16650c424d9686e35a03c0fb9/contracts/BNBPartyManageable.sol#L29

https://github.com/bnb-party/BNBParty.Factory/blob/61a9219f4ad741f16650c424d9686e35a03c0fb9/contracts/BNBPartyState.sol#L16

reentrancy-unlimited-gas

Impact: Informational Confidence: Medium

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