-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
331 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import "@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol"; | ||
import "@uniswap/v3-periphery/contracts/interfaces/INonfungiblePositionManager.sol"; | ||
import "./AIMePowerFairLaunchV2.sol"; | ||
|
||
contract AIMePowerLauncherSepolia { | ||
// uniswap v3 addresses on base | ||
ISwapRouter public swapRouter = ISwapRouter(0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4); | ||
INonfungiblePositionManager public nonfungiblePositionManager = | ||
INonfungiblePositionManager(0x27F971cb582BF9E50F397e4d29a5C7A34f11faA2); | ||
|
||
event PowerLaunched(address indexed power, address indexed launcher); | ||
|
||
function launchPower( | ||
uint256 _price, | ||
uint256 _amountPerUnits, | ||
uint256 _totalSupply, | ||
uint256 _reservedAmount, | ||
uint256 _deadline, | ||
uint24 _poolFee, | ||
string memory _name, | ||
string memory _symbol | ||
) external returns (address) { | ||
AIMePowerFairLaunchV2 power = new AIMePowerFairLaunchV2( | ||
_price, | ||
_amountPerUnits, | ||
_totalSupply, | ||
_reservedAmount, | ||
msg.sender, | ||
_deadline, | ||
_poolFee, | ||
nonfungiblePositionManager, | ||
swapRouter, | ||
_name, | ||
_symbol | ||
); | ||
|
||
emit PowerLaunched(address(power), msg.sender); | ||
return address(power); | ||
} | ||
|
||
function launchPowerSimple(string memory _name) external returns (address) { | ||
AIMePowerFairLaunchV2 power = new AIMePowerFairLaunchV2( | ||
1000000000000000, // 0.001 eth | ||
50000000000000000000000, // 5w | ||
200000000000000000000000, // 20w | ||
0, | ||
msg.sender, | ||
block.timestamp + 1 hours, | ||
3000, | ||
nonfungiblePositionManager, | ||
swapRouter, | ||
_name, | ||
_name | ||
); | ||
|
||
emit PowerLaunched(address(power), msg.sender); | ||
return address(power); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.