Verified contractPartialMIT
GweiFunVestFactory
Address0xe11237ca3fd51b98e41ef7c6ed8a82be56769949
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.26
- Same code
Only this contract
Details
- Compiler
- solc 0.8.26+commit.8a97fa7a
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- cancun
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,443,878
- Creation transaction
- 0x384f79f113…0fb883ac85
88 files
The source code is large: one file is shown at a time. Choose a file in the list.
- src/creators/GweiFunVestFactory.solmain6.71 KB
- node_modules/@openzeppelin/contracts/access/Ownable.sol3.1 KB
- node_modules/@openzeppelin/contracts/access/Ownable2Step.sol2.48 KB
- node_modules/@openzeppelin/contracts/interfaces/IERC1363.sol4.45 KB
- node_modules/@openzeppelin/contracts/interfaces/IERC165.sol192 B
- node_modules/@openzeppelin/contracts/interfaces/IERC20.sol181 B
- node_modules/@openzeppelin/contracts/interfaces/IERC5267.sol739 B
- node_modules/@openzeppelin/contracts/interfaces/draft-IERC6093.sol6.54 KB
- node_modules/@openzeppelin/contracts/token/ERC20/ERC20.sol10.9 KB
- node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol2.78 KB
- node_modules/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol1.18 KB
- node_modules/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol2.77 KB
- node_modules/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol684 B
- node_modules/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol3.81 KB
- node_modules/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol9.44 KB
- node_modules/@openzeppelin/contracts/token/ERC721/IERC721.sol4.93 KB
- node_modules/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol997 B
- node_modules/@openzeppelin/contracts/utils/Address.sol6.03 KB
- node_modules/@openzeppelin/contracts/utils/Context.sol963 B
- node_modules/@openzeppelin/contracts/utils/Errors.sol896 B
- node_modules/@openzeppelin/contracts/utils/Nonces.sol1.49 KB
- node_modules/@openzeppelin/contracts/utils/Panic.sol1.97 KB
- node_modules/@openzeppelin/contracts/utils/ReentrancyGuard.sol3.38 KB
- node_modules/@openzeppelin/contracts/utils/ShortStrings.sol4.28 KB
- node_modules/@openzeppelin/contracts/utils/StorageSlot.sol4.18 KB
- node_modules/@openzeppelin/contracts/utils/Strings.sol3.93 KB
- node_modules/@openzeppelin/contracts/utils/cryptography/ECDSA.sol7.82 KB
- node_modules/@openzeppelin/contracts/utils/cryptography/EIP712.sol6.61 KB
- node_modules/@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol3.7 KB
- node_modules/@openzeppelin/contracts/utils/introspection/IERC165.sol870 B
- node_modules/@openzeppelin/contracts/utils/math/Math.sol28.31 KB
- node_modules/@openzeppelin/contracts/utils/math/SafeCast.sol34.94 KB
- node_modules/@openzeppelin/contracts/utils/math/SignedMath.sol2.61 KB
- node_modules/@uniswap/v4-periphery/lib/permit2/src/interfaces/IAllowanceTransfer.sol7.7 KB
- node_modules/@uniswap/v4-periphery/lib/permit2/src/interfaces/IEIP712.sol144 B
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/interfaces/IExtsload.sol1.02 KB
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/interfaces/IExttload.sol699 B
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/interfaces/IHooks.sol8.23 KB
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/interfaces/IPoolManager.sol12.84 KB
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/interfaces/IProtocolFees.sol2.49 KB
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/interfaces/external/IERC20Minimal.sol3.04 KB
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/interfaces/external/IERC6909Claims.sol3.16 KB
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/libraries/BitMath.sol2.61 KB
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/libraries/CustomRevert.sol5.17 KB
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/libraries/FixedPoint96.sol366 B
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/libraries/FullMath.sol5.46 KB
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/libraries/SafeCast.sol2.27 KB
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/libraries/SqrtPriceMath.sol14.08 KB
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/libraries/TickMath.sol12.38 KB
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/libraries/UnsafeMath.sol1.17 KB
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/types/BalanceDelta.sol2.34 KB
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/types/BeforeSwapDelta.sol1.47 KB
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/types/Currency.sol5.46 KB
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/types/PoolId.sol539 B
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/types/PoolKey.sol805 B
- node_modules/@uniswap/v4-periphery/lib/v4-core/src/types/PoolOperation.sol907 B
- node_modules/@uniswap/v4-periphery/src/interfaces/IEIP712_v4.sol328 B
- node_modules/@uniswap/v4-periphery/src/interfaces/IERC721Permit_v4.sol2.14 KB
- node_modules/@uniswap/v4-periphery/src/interfaces/IImmutableState.sol365 B
- node_modules/@uniswap/v4-periphery/src/interfaces/IMulticall_v4.sol774 B
- node_modules/@uniswap/v4-periphery/src/interfaces/INotifier.sol3.2 KB
- node_modules/@uniswap/v4-periphery/src/interfaces/IPermit2Forwarder.sol1.44 KB
- node_modules/@uniswap/v4-periphery/src/interfaces/IPoolInitializer_v4.sol782 B
- node_modules/@uniswap/v4-periphery/src/interfaces/IPositionManager.sol3.5 KB
- node_modules/@uniswap/v4-periphery/src/interfaces/ISubscriber.sol2.27 KB
- node_modules/@uniswap/v4-periphery/src/interfaces/IUnorderedNonce.sol799 B
- node_modules/@uniswap/v4-periphery/src/libraries/Actions.sol2.03 KB
- node_modules/@uniswap/v4-periphery/src/libraries/LiquidityAmounts.sol3.77 KB
- node_modules/@uniswap/v4-periphery/src/libraries/PositionInfoLibrary.sol3.95 KB
- src/assets/GweiFunLaunchToken.sol9.36 KB
- src/assets/GweiFunVestedToken.sol8.78 KB
- src/assets/modules/LpPositionTomb.sol6.12 KB
- src/assets/modules/TradingSwitch.sol8.46 KB
- src/assets/modules/WalletLimits.sol9.74 KB
- src/creators/GweiFunFactory.sol12.41 KB
- src/creators/base/LaunchChecks.sol8.97 KB
- src/creators/base/LaunchFeeCollector.sol5.54 KB
- src/creators/base/LaunchTypes.sol6.04 KB
- src/creators/base/LaunchpadLinked.sol5.08 KB
- src/creators/base/StrayAssetRescue.sol5.66 KB
- src/platform/GweiFunPoolSeeder.sol13.6 KB
- src/platform/initializer/PoolKeyBuilder.sol6.16 KB
- src/platform/initializer/SingleSidedMinter.sol10.15 KB
- src/shared/GweiCreatorTag.sol4.87 KB
- src/shared/GweiFunPriceMath.sol10.06 KB
- src/shared/GweiFunVersion.sol4.92 KB
- src/shared/IGweiFunFeeHook.sol7.17 KB
- src/shared/IGweiFunLaunchpad.sol8.51 KB
src/creators/GweiFunVestFactory.sol
// SPDX-License-Identifier: MIT
/*
╔═══════════════════════════════════════════════════════════════════════════════════════╗
║ ▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚ ║
║ ▞ ▚ ║
║ ▞ ┌─[ SYS ]──────────────────────────────────────────────────────────[ v4 ]─┐ ▚ ║
║ ▞ │ ◉ ONLINE ◎ UNISWAP v4 ◎ ETHEREUM MAINNET ◎ PERMISSIONLESS LAUNCH │ ▚ ║
║ ▞ └─────────────────────────────────────────────────────────────────────────┘ ▚ ║
║ ▞ ▚ ║
║ ▞ ▄████████▄ ██ ██ ████████ ██ ████████ ██ ██ ███ ██ ▚ ║
║ ▞ ██▀▀▀▀▀▀▀▀ ██ ▄▄ ██ ██▀▀▀▀▀▀ ██ ██▀▀▀▀▀▀ ██ ██ ████▄ ██ ▚ ║
║ ▞ ██ ▄████▄ ██ ████ ██ ██████ ██ ██████ ██ ██ ██ ▀██▄██ ▚ ║
║ ▞ ██ ▀▀▀▀██ ██▀█▀▀█▀██ ██▄▄▄▄▄▄ ██ ▄▄ ██ ▀██▄▄██▀ ██ ▀███ ▚ ║
║ ▞ ▀████████▀ ▀██▀ ▀██▀ ████████ ██ ▀▀ ██ ▀████▀ ██ ▀██ ▚ ║
║ ▞ ▚ ║
║ ▞ ╭─────────────────────────────────────────────────────────────────────────╮ ▚ ║
║ ▞ │ ░▒▓█▓▒░ T O K E N L A U N C H P A D · H O O K P O W E R E D │ ▚ ║
║ ▞ ╰─────────────────────────────────────────────────────────────────────────╯ ▚ ║
║ ▞ ▚ ║
║ ▞ ┌──────────────────────────────────┐ ┌──────────────────────────────────┐ ▚ ║
║ ▞ │ ◈ https://gwei.fun/ │ │ ✕ https://x.com/gweidotfun │ ▚ ║
║ ▞ └──────────────────────────────────┘ └──────────────────────────────────┘ ▚ ║
║ ▞ ▚ ║
║ ▞ ·──·──·──·──·──·──·──·──·──·──·──·──·──·──·──·──·──·──·──·──·──·──·──·──·──· ▚ ║
║ ▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚ ║
╚═══════════════════════════════════════════════════════════════════════════════════════╝
*/
pragma solidity 0.8.26;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {IGweiFunLaunchpad} from "../shared/IGweiFunLaunchpad.sol";
import {GweiFunPoolSeeder} from "../platform/GweiFunPoolSeeder.sol";
import {GweiFunVestedToken} from "../assets/GweiFunVestedToken.sol";
import {GweiFunFactory, CreateArgs} from "./GweiFunFactory.sol";
/// @title GweiFunVestFactory
/// @notice Venue for creations with a team allocation. The unpooled supply never reaches the
/// creator: it is held by the token contract and paid out linearly after an optional
/// cliff, all checkable on-chain.
/// @dev `extra` = `abi.encode(address beneficiary, uint64 cliffSeconds, uint64 vestSeconds)`.
/// @custom:version 1.1
contract GweiFunVestFactory is GweiFunFactory {
using SafeERC20 for IERC20;
/// @dev Nothing would be left to vest.
error NothingToVest();
constructor(address owner_, IGweiFunLaunchpad launchpad_, GweiFunPoolSeeder poolSeeder_)
GweiFunFactory(owner_, launchpad_, poolSeeder_)
{}
function venueId() external pure override returns (string memory) {
return "venue.vesting";
}
/// @dev Any active pair asset.
function _supportsQuoteAsset(address) internal pure override returns (bool) {
return true;
}
/// @dev A 100% pool share is refused during validation already.
function _validateVenue(CreateArgs calldata a) internal pure override {
if (a.poolShareBips == BIPS) revert NothingToVest();
}
function _deployToken(CreateArgs calldata a, address creator) internal override returns (address) {
return address(new GweiFunVestedToken(_tokenSetup(a, creator)));
}
/// @dev Moves the leftover into the token itself and starts the schedule.
function _allocateRemainder(address token, CreateArgs calldata, address, uint256 leftover) internal override {
if (leftover == 0) revert NothingToVest();
IERC20(token).safeTransfer(token, leftover);
GweiFunVestedToken(token).startVesting(leftover);
}
}
Compiler settingsShow
{
"viaIR": false,
"metadata": {
"appendCBOR": true,
"bytecodeHash": "none",
"useLiteralContent": false
},
"optimizer": {
"runs": 200,
"enabled": true
},
"evmVersion": "cancun",
"remappings": [
"@uniswap/v4-core/=node_modules/@uniswap/v4-periphery/lib/v4-core/",
"@uniswap/v4-periphery/=node_modules/@uniswap/v4-periphery/",
"v4-core/=node_modules/@uniswap/v4-periphery/lib/v4-core/",
"v4-periphery/=node_modules/@uniswap/v4-periphery/",
"permit2/=node_modules/@uniswap/v4-periphery/lib/permit2/",
"solmate/=node_modules/@uniswap/v4-periphery/lib/v4-core/lib/solmate/",
"forge-std/=node_modules/@uniswap/v4-periphery/lib/v4-core/lib/forge-std/src/",
"ds-test/=node_modules/@uniswap/v4-periphery/lib/v4-core/lib/forge-std/lib/ds-test/src/",
"openzeppelin-contracts/contracts/=node_modules/@openzeppelin/contracts/",
"@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/",
"node_modules/@uniswap/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=node_modules/@uniswap/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
"/Users/steve/Documents/gweifun/node_modules/@uniswap/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=node_modules/@uniswap/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
"node_modules/@uniswap/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=node_modules/@uniswap/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
"/Users/steve/Documents/gweifun/node_modules/@uniswap/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=node_modules/@uniswap/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
"node_modules/@uniswap/v4-periphery/lib/permit2/:openzeppelin-contracts/contracts/=node_modules/@openzeppelin/contracts/",
"/Users/steve/Documents/gweifun/node_modules/@uniswap/v4-periphery/lib/permit2/:openzeppelin-contracts/contracts/=node_modules/@openzeppelin/contracts/",
"node_modules/@uniswap/v4-periphery/lib/permit2/:openzeppelin-contracts/=node_modules/@uniswap/v4-periphery/lib/permit2/lib/openzeppelin-contracts/",
"/Users/steve/Documents/gweifun/node_modules/@uniswap/v4-periphery/lib/permit2/:openzeppelin-contracts/=node_modules/@uniswap/v4-periphery/lib/permit2/lib/openzeppelin-contracts/",
"node_modules/@uniswap/v4-periphery/lib/v4-core/:openzeppelin-contracts/contracts/=node_modules/@openzeppelin/contracts/",
"/Users/steve/Documents/gweifun/node_modules/@uniswap/v4-periphery/lib/v4-core/:openzeppelin-contracts/contracts/=node_modules/@openzeppelin/contracts/",
"node_modules/@uniswap/v4-periphery/lib/v4-core/:openzeppelin-contracts/=node_modules/@uniswap/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/",
"/Users/steve/Documents/gweifun/node_modules/@uniswap/v4-periphery/lib/v4-core/:openzeppelin-contracts/=node_modules/@uniswap/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/",
"node_modules/@uniswap/v4-core/:openzeppelin-contracts/contracts/=node_modules/@openzeppelin/contracts/",
"/Users/steve/Documents/gweifun/node_modules/@uniswap/v4-core/:openzeppelin-contracts/contracts/=node_modules/@openzeppelin/contracts/",
"node_modules/@uniswap/v4-core/:openzeppelin-contracts/=node_modules/@uniswap/v4-core/lib/openzeppelin-contracts/",
"/Users/steve/Documents/gweifun/node_modules/@uniswap/v4-core/:openzeppelin-contracts/=node_modules/@uniswap/v4-core/lib/openzeppelin-contracts/",
"@openzeppelin/=node_modules/@openzeppelin/",
"@uniswap/=node_modules/@uniswap/",
"erc4626-tests/=node_modules/@uniswap/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
"forge-gas-snapshot/=node_modules/@uniswap/v4-periphery/lib/permit2/lib/forge-gas-snapshot/",
"openzeppelin-contracts/=node_modules/@uniswap/v4-core/lib/openzeppelin-contracts/"
]
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.