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

curve tests #51

Closed YouStillAlive closed 1 month 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,728,876 5,904,124 5,763,684 36 2.89
       joinParty(address,uint256) 143,982 5,707,644 2,076,919 26 1.04
       leaveParty(address,uint256,uint256) 177,077 201,896 182,433 5 0.09
       pause() - - 46,851 5 0.02
       setBNBPartySwapRouter(address) 24,135 46,275 45,045 18 0.02
       setNonfungiblePositionManager(address,address) 27,416 68,950 66,640 18 0.03
       setSwapRouter(address) - - 46,298 16 0.02
       unpause() - - 24,885 5 0.01
       withdrawFee() - - 31,766 2 0.02
       withdrawLPFee(address[]) - - 173,634 1 0.09
       withdrawPartyLPFee(address[]) - - 173,814 2 0.09
NonfungiblePositionManager
       approve(address,uint256) 46,052 46,395 46,303 4 0.02
SwapRouter
       exactInput((bytes,address,uint256,uint256,uint256)) 134,897 144,523 141,314 3 0.07
       multicall(bytes[]) - - 162,583 2 0.08

Deployments

Min Max Avg Block % usd avg
BNBPartyFactory 3,709,974 3,709,986 3,709,985 2.9 % 1.86
MockContract - - 107,817 0.1 % 0.05
MockNonfungibleTokenPositionDescriptor - - 111,537 0.1 % 0.06
NonfungiblePositionManager 5,171,500 5,171,524 5,171,518 4 % 2.60
SqrtPriceCalculator - - 278,712 0.2 % 0.14
SwapRouter 2,201,066 2,201,090 2,201,085 1.7 % 1.11
UniswapV3Factory 5,437,097 5,437,109 5,437,108 4.2 % 2.73

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 502.25 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/e937dca937578032ac2efd080b26a430e2d6b3d4/contracts/BNBPartyLiquidity.sol#L14-L56

unused-return

Impact: Medium Confidence: Medium

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

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

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

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

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

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

reentrancy-benign

Impact: Low Confidence: Medium

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

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

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

reentrancy-events

Impact: Low Confidence: Medium

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

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

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

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

naming-convention

Impact: Informational Confidence: High

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

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

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

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

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

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

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

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

reentrancy-unlimited-gas

Impact: Informational Confidence: Medium

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

codecov-commenter commented 2 months 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.