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 joinParty, leaveParty #26

Closed YouStillAlive closed 3 months ago

YouStillAlive commented 3 months ago

closes #25

github-actions[bot] commented 3 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,645,882 5,827,223 5,772,476 6 3.31
       joinParty(address,uint256,uint256) 130,560 252,086 191,323 2 0.11
       leaveParty(address,uint256,uint256,uint256) 176,994 190,674 183,834 2 0.11
       setNonfungiblePositionManager(address,address) 27,459 68,979 55,139 3 0.03
       setSwapRouter(address) 24,142 46,282 38,902 3 0.02
NonfungiblePositionManager
       approve(address,uint256) 46,052 46,371 46,285 4 0.03
SwapRouter
       exactInput((bytes,address,uint256,uint256,uint256)) 109,793 119,351 116,165 3 0.07
       multicall(bytes[]) - - 136,482 2 0.08

Deployments

Min Max Avg Block % usd avg
BNBPartyFactory - - 2,585,304 2 % 1.48
MockNonfungibleTokenPositionDescriptor - - 111,537 0.1 % 0.06
NonfungiblePositionManager - - 5,171,524 4 % 2.97
SwapRouter - - 2,201,090 1.7 % 1.26
UniswapV3Factory - - 5,437,109 4.2 % 3.12

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 574.01 usd/bnb
Network BINANCE
Toolchain hardhat
github-actions[bot] commented 3 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/4199f222c06f5ee33d1bf5e9f0e879646117f2b4/contracts/BNBPartyInternal.sol#L8-L36

reentrancy-no-eth

Impact: Medium Confidence: Medium

https://github.com/bnb-party/BNBParty.Factory/blob/4199f222c06f5ee33d1bf5e9f0e879646117f2b4/contracts/BNBPartyInternal.sol#L78-L98

uninitialized-local

Impact: Medium Confidence: Medium

https://github.com/bnb-party/BNBParty.Factory/blob/4199f222c06f5ee33d1bf5e9f0e879646117f2b4/contracts/BNBPartyInternal.sol#L15

https://github.com/bnb-party/BNBParty.Factory/blob/4199f222c06f5ee33d1bf5e9f0e879646117f2b4/contracts/BNBPartyInternal.sol#L16

unused-return

Impact: Medium Confidence: Medium

https://github.com/bnb-party/BNBParty.Factory/blob/4199f222c06f5ee33d1bf5e9f0e879646117f2b4/contracts/BNBPartyInternal.sol#L8-L36

https://github.com/bnb-party/BNBParty.Factory/blob/4199f222c06f5ee33d1bf5e9f0e879646117f2b4/contracts/BNBPartyInternal.sol#L38-L70

https://github.com/bnb-party/BNBParty.Factory/blob/4199f222c06f5ee33d1bf5e9f0e879646117f2b4/contracts/BNBPartyInternal.sol#L105-L127

https://github.com/bnb-party/BNBParty.Factory/blob/4199f222c06f5ee33d1bf5e9f0e879646117f2b4/contracts/BNBPartyInternal.sol#L78-L98

https://github.com/bnb-party/BNBParty.Factory/blob/4199f222c06f5ee33d1bf5e9f0e879646117f2b4/contracts/BNBPartyInternal.sol#L78-L98

shadowing-local

Impact: Low Confidence: High

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

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

reentrancy-benign

Impact: Low Confidence: Medium

https://github.com/bnb-party/BNBParty.Factory/blob/4199f222c06f5ee33d1bf5e9f0e879646117f2b4/contracts/BNBPartyInternal.sol#L38-L70

https://github.com/bnb-party/BNBParty.Factory/blob/4199f222c06f5ee33d1bf5e9f0e879646117f2b4/contracts/BNBPartyInternal.sol#L8-L36

assembly

Impact: Informational Confidence: High

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

low-level-calls

Impact: Informational Confidence: High

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

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

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

https://github.com/bnb-party/BNBParty.Factory/blob/4199f222c06f5ee33d1bf5e9f0e879646117f2b4/contracts/BNBPartyInternal.sol#L72-L76

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

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

naming-convention

Impact: Informational Confidence: High

https://github.com/bnb-party/BNBParty.Factory/blob/4199f222c06f5ee33d1bf5e9f0e879646117f2b4/contracts/BNBPartyState.sol#L20

https://github.com/bnb-party/BNBParty.Factory/blob/4199f222c06f5ee33d1bf5e9f0e879646117f2b4/contracts/BNBPartyState.sol#L35

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

https://github.com/bnb-party/BNBParty.Factory/blob/4199f222c06f5ee33d1bf5e9f0e879646117f2b4/contracts/BNBPartyState.sol#L36

https://github.com/bnb-party/BNBParty.Factory/blob/4199f222c06f5ee33d1bf5e9f0e879646117f2b4/contracts/BNBPartyState.sol#L47

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

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

unused-import

Impact: Informational Confidence: High