Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto-swap, added fee for token creation #22

Merged
merged 7 commits into from
Jul 17, 2024
Merged

auto-swap, added fee for token creation #22

merged 7 commits into from
Jul 17, 2024

Conversation

YouStillAlive
Copy link
Member

closes #13
closes #6

Copy link

github-actions bot commented Jul 17, 2024

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,852,038 5,782,386 6 16.62
       setNonfungiblePositionManager(address,address) 27,476 69,001 55,159 3 0.16
       setSwapRouter(address) 24,142 46,282 38,902 3 0.11
NonfungiblePositionManager
       approve(address,uint256) 28,952 46,371 40,458 3 0.12
SwapRouter
       exactInput((bytes,address,uint256,uint256,uint256)) 109,727 240,811 197,116 3 0.57
       multicall(bytes[]) - - 153,516 2 0.44

Deployments

Min Max Avg Block % usd avg
BNBPartyFactory - - 2,280,577 1.8 % 6.56
MockNonfungibleTokenPositionDescriptor - - 111,537 0.1 % 0.32
NonfungiblePositionManager - - 5,171,524 4 % 14.87
SwapRouter - - 2,201,090 1.7 % 6.33
UniswapV3Factory - - 5,437,109 4.2 % 15.63

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 5 gwei
Token Price 575.02 usd/bnb
Network BINANCE
Toolchain hardhat

Copy link

codecov bot commented Jul 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.62%. Comparing base (aad8a03) to head (dbda250).

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #22      +/-   ##
==========================================
+ Coverage   68.51%   74.62%   +6.10%     
==========================================
  Files           5        5              
  Lines          54       67      +13     
  Branches       14       16       +2     
==========================================
+ Hits           37       50      +13     
  Misses         16       16              
  Partials        1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Jul 17, 2024

Slither report

THIS CHECKLIST IS NOT COMPLETE. Use --show-ignored-findings to show all the results.
Summary

incorrect-equality

Impact: Medium
Confidence: High

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/BNBPartyInternal.sol#L8-L36

reentrancy-no-eth

Impact: Medium
Confidence: Medium

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/BNBPartyInternal.sol#L78-L98

uninitialized-local

Impact: Medium
Confidence: Medium

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/BNBPartyInternal.sol#L15

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/BNBPartyInternal.sol#L16

unused-return

Impact: Medium
Confidence: Medium

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/BNBPartyInternal.sol#L100-L121

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/BNBPartyInternal.sol#L8-L36

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/BNBPartyInternal.sol#L38-L70

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/BNBPartyInternal.sol#L100-L121

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/BNBPartyInternal.sol#L78-L98

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/BNBPartyInternal.sol#L78-L98

shadowing-local

Impact: Low
Confidence: High

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/token/ERC20Token.sol#L9

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/token/ERC20Token.sol#L10

reentrancy-benign

Impact: Low
Confidence: Medium

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/BNBPartyInternal.sol#L38-L70

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/BNBPartyInternal.sol#L8-L36

low-level-calls

Impact: Informational
Confidence: High

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/BNBPartyInternal.sol#L72-L76

naming-convention

Impact: Informational
Confidence: High

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/BNBPartyState.sol#L20

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/BNBPartyState.sol#L35

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/BNBPartyState.sol#L12

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/BNBPartyState.sol#L36

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/BNBPartyState.sol#L47

https://github.com/The-Poolz/BNBParty.Factory/blob/e0692f52527f3aab5f94e377fa17cbafdf4a56fb/contracts/interfaces/INonfungiblePositionManager.sol#L184

unused-import

Impact: Informational
Confidence: High

  • ID-21
    The following unused import(s) in contracts/BNBPartyInternal.sol should be removed:
    -import "./token/ERC20Token.sol"; (contracts/BNBPartyInternal.sol#4)

@YouStillAlive YouStillAlive marked this pull request as ready for review July 17, 2024 11:36
@Lomet Lomet merged commit af60cec into master Jul 17, 2024
6 checks passed
@Lomet Lomet deleted the issue-13 branch July 17, 2024 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add automatic swap if send more bnb than the required fee Buy with exeted fee
2 participants