-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: main
Are you sure you want to change the base?
Conversation
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); | ||
} | ||
} |
Check warning
Code scanning / Slither
Unused return Medium
/// @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
- WETH_ADDRESS = _wethAddress
/// @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
- DEGEN_ADDRESS = _degenAddress
/// @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
Coverage after merging deploy-swap-router-degen into main will be
Coverage Report
|
No description provided.