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 inheritance, add uml #80

Closed YouStillAlive closed 4 weeks ago

YouStillAlive commented 4 weeks ago

closes #73

github-actions[bot] commented 4 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
BNBPartyFactory
       createParty(string,string) 5,706,706 5,883,512 5,742,176 36 16.03
       joinParty(address,uint256) 144,007 5,731,439 2,088,217 26 5.83
       leaveParty(address,uint256,uint256) 177,844 203,219 183,534 5 0.51
       pause() - - 46,808 5 0.13
       setBNBPartySwapRouter(address) 24,157 46,297 45,067 18 0.13
       setNonfungiblePositionManager(address,address) 27,416 68,950 66,640 18 0.19
       setSwapRouter(address) - - 46,342 16 0.13
       unpause() - - 24,929 5 0.07
       withdrawFee() - - 31,766 2 0.09
       withdrawLPFee(address[]) - - 173,662 1 0.48
       withdrawPartyLPFee(address[]) - - 173,798 2 0.49
NonfungiblePositionManager
       approve(address,uint256) 46,052 46,395 46,303 4 0.13
SwapRouter
       exactInput((bytes,address,uint256,uint256,uint256)) 135,931 145,489 142,303 3 0.40
       multicall(bytes[]) - - 163,945 2 0.46

Deployments

Min Max Avg Block % usd avg
BNBPartyFactory 3,709,716 3,709,728 3,709,727 2.9 % 10.36
MockContract - - 107,813 0.1 % 0.30
MockNonfungibleTokenPositionDescriptor - - 111,329 0.1 % 0.31
NonfungiblePositionManager 5,171,500 5,171,524 5,171,518 4 % 14.44
SqrtPriceCalculator - - 278,712 0.2 % 0.78
SwapRouter 2,201,066 2,201,090 2,201,085 1.7 % 6.15
UniswapV3Factory 5,437,097 5,437,109 5,437,108 4.2 % 15.18

Solidity and Network Config

Settings Value
Solidity: version 0.8.26
Solidity: optimized true
Solidity: runs 200
Solidity: viaIR false
Block Limit 130,000,000
L1 Gas Price 5 gwei
Token Price 558.45 usd/bnb
Network BINANCE
Toolchain hardhat
codecov-commenter commented 4 weeks 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 with missing lines Coverage Δ
contracts/BNBPartyFactory.sol 100.00% <ø> (ø)
contracts/BNBPartyView.sol 100.00% <ø> (ø)
github-actions[bot] commented 4 weeks 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/709a295b792caccc35cba032ec5b2eb60aa8367a/contracts/BNBPartyFee.sol#L149-L161

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

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

https://github.com/bnb-party/BNBParty.Factory/blob/709a295b792caccc35cba032ec5b2eb60aa8367a/contracts/BNBPartyCreation.sol#L43-L77

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

https://github.com/bnb-party/BNBParty.Factory/blob/709a295b792caccc35cba032ec5b2eb60aa8367a/contracts/BNBPartyFee.sol#L70-L82

reentrancy-benign

Impact: Low Confidence: Medium

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

reentrancy-events

Impact: Low Confidence: Medium

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

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

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

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

naming-convention

Impact: Informational Confidence: High

https://github.com/bnb-party/BNBParty.Factory/blob/709a295b792caccc35cba032ec5b2eb60aa8367a/contracts/BNBPartyState.sol#L26

https://github.com/bnb-party/BNBParty.Factory/blob/709a295b792caccc35cba032ec5b2eb60aa8367a/contracts/BNBPartyState.sol#L13

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

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

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

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

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

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

reentrancy-unlimited-gas

Impact: Informational Confidence: Medium

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