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

Deploy swap router degen #51

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Deploy swap router degen #51

wants to merge 13 commits into from

Conversation

maxmux-xyz
Copy link
Collaborator

No description provided.

Comment on lines +157 to +161
function _approveCreatorToken(address _creatorToken, uint256 _maxPayment) private {
if (IERC20(DEGEN_ADDRESS).allowance(address(this), address(_creatorToken)) < _maxPayment) {
IERC20(DEGEN_ADDRESS).approve(address(_creatorToken), type(uint256).max);
}
}
/// @param _universalRouter Address of the Universal Router contract.
/// @param _wethAddress Address of the WETH token contract.
/// @param _degenAddress Address of the DEGEN token contract.
constructor(address _universalRouter, address _wethAddress, address _degenAddress) {

Check notice

Code scanning / Slither

Missing zero address validation Low

/// @param _universalRouter Address of the Universal Router contract.
/// @param _wethAddress Address of the WETH token contract.
/// @param _degenAddress Address of the DEGEN token contract.
constructor(address _universalRouter, address _wethAddress, address _degenAddress) {

Check notice

Code scanning / Slither

Missing zero address validation Low

/// @notice Address of the Wrapped Ether (WETH) token.
address public immutable WETH_ADDRESS;
/// @notice Address of the DEGEN token.
address public immutable DEGEN_ADDRESS;

Check warning

Code scanning / Slither

Variable names too similar Warning

/// @dev Make sure to get a quote for ETH to Creator Token conversion before interacting.
contract CreatorTokenSwapRouterDegen {
/// @notice Uniswap UniversalRouter interface which is used to execute trades.
IUniversalRouter private immutable UNIVERSAL_ROUTER;

Check warning

Code scanning / Slither

Variable names too similar Warning

/// @notice Uniswap UniversalRouter interface which is used to execute trades.
IUniversalRouter private immutable UNIVERSAL_ROUTER;
/// @notice Address of the Wrapped Ether (WETH) token.
address public immutable WETH_ADDRESS;

Check warning

Code scanning / Slither

Variable names too similar Warning

Copy link

github-actions bot commented Mar 8, 2024

Coverage after merging deploy-swap-router-degen into main will be

67.63%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   CreatorToken.sol100%100%100%100%
   CreatorTokenFactory.sol0%0%0%0%105, 116, 143–144, 164–166, 166, 166–167, 167, 167–168, 171–172, 174, 187, 194, 197–198
   CreatorTokenSwapRouter.sol0%0%0%0%103, 127–129, 138–140, 142, 144, 146, 148, 151, 158, 158, 158–159, 59, 80–82
   CreatorTokenSwapRouterDegen.sol0%0%0%0%106, 131–133, 142–144, 146, 148, 150, 152, 155, 162, 162, 162–163, 60, 82–84
   OpenCreatorTokenFactory.sol0%100%0%0%60–61, 63, 76
   SigmoidBondingCurve.sol100%100%100%100%

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.

1 participant