ContractsABI reference
D17LiquidityVault
Creates the official pair, permanently holds LP, and adds late liquidity.
Creates the official pair, permanently holds LP, and adds late liquidity.
Important behavior
createOfficialPooland recovery/sweep calls are permissionless but have fixed destinations and guards.- There is no function that withdraws the D17 token, WETH committed to an active mint, or protocol LP.
Surface summary
| Constructors | Functions | Events | Custom errors | Receive/fallback |
|---|---|---|---|---|
| 1 | 22 | 5 | 1 | 2 |
Construction
Constructor
constructor(address launch_, address token_, address weth_, address router_, address treasury_)- Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
launch_ | address |
token_ | address |
weth_ | address |
router_ | address |
treasury_ | address |
Receive and fallback
Fallback
fallback() external payable- Mutability:
payable
Receive
receive() external payable- Mutability:
payable
Functions
D17_LIQUIDITY_VAULT_ID
function D17_LIQUIDITY_VAULT_ID() external view returns (bytes32 value1)- Signature:
D17_LIQUIDITY_VAULT_ID() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | bytes32 |
createOfficialPool
function createOfficialPool(uint256 minLpMinted, uint256 deadline) external nonpayable returns (address pair, uint256 liquidityTokens, uint256 wethForPool, uint256 liquidity)- Signature:
createOfficialPool(uint256,uint256) - Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
minLpMinted | uint256 |
deadline | uint256 |
Outputs
| Field | ABI type |
|---|---|
pair | address |
liquidityTokens | uint256 |
wethForPool | uint256 |
liquidity | uint256 |
lateLpMinted
function lateLpMinted() external view returns (uint256 value1)- Signature:
lateLpMinted() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | uint256 |
lateTokenUsedForLp
function lateTokenUsedForLp() external view returns (uint256 value1)- Signature:
lateTokenUsedForLp() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | uint256 |
lateWethUsedForLp
function lateWethUsedForLp() external view returns (uint256 value1)- Signature:
lateWethUsedForLp() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | uint256 |
launch
function launch() external view returns (address value1)- Signature:
launch() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | address |
lpMinted
function lpMinted() external view returns (uint256 value1)- Signature:
lpMinted() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | uint256 |
mintLateLiquidity
function mintLateLiquidity(uint256 tokenAmount, uint256 wethAmount) external nonpayable returns (uint256 liquidity)- Signature:
mintLateLiquidity(uint256,uint256) - Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
tokenAmount | uint256 |
wethAmount | uint256 |
Outputs
| Field | ABI type |
|---|---|
liquidity | uint256 |
officialPair
function officialPair() external view returns (address value1)- Signature:
officialPair() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | address |
poolCreated
function poolCreated() external view returns (bool value1)- Signature:
poolCreated() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | bool |
preseededTokenReserve
function preseededTokenReserve() external view returns (uint256 value1)- Signature:
preseededTokenReserve() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | uint256 |
preseededWethReserve
function preseededWethReserve() external view returns (uint256 value1)- Signature:
preseededWethReserve() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | uint256 |
recoverUnsupportedTokenToTreasury
function recoverUnsupportedTokenToTreasury(address tokenAddress, uint256 amount) external nonpayable- Signature:
recoverUnsupportedTokenToTreasury(address,uint256) - Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
tokenAddress | address |
amount | uint256 |
Outputs
None.
router
function router() external view returns (address value1)- Signature:
router() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | address |
routerFactory
function routerFactory() external view returns (address value1)- Signature:
routerFactory() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | address |
sweepExcessWethToTreasury
function sweepExcessWethToTreasury() external nonpayable returns (uint256 amount)- Signature:
sweepExcessWethToTreasury() - Mutability:
nonpayable
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
amount | uint256 |
sweepUnexpectedEthToTreasury
function sweepUnexpectedEthToTreasury() external nonpayable returns (uint256 amount)- Signature:
sweepUnexpectedEthToTreasury() - Mutability:
nonpayable
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
amount | uint256 |
token
function token() external view returns (address value1)- Signature:
token() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | address |
tokenUsedForPool
function tokenUsedForPool() external view returns (uint256 value1)- Signature:
tokenUsedForPool() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | uint256 |
treasury
function treasury() external view returns (address value1)- Signature:
treasury() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | address |
weth
function weth() external view returns (address value1)- Signature:
weth() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | address |
wethUsedForPool
function wethUsedForPool() external view returns (uint256 value1)- Signature:
wethUsedForPool() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | uint256 |
Events
ExcessWethSwept
event ExcessWethSwept(address indexed recipient, uint256 amount)- Signature:
ExcessWethSwept(address,uint256) - Anonymous: no
Fields
| Field | ABI type | Indexed |
|---|---|---|
recipient | address | yes |
amount | uint256 | no |
LateLiquidityAdded
event LateLiquidityAdded(address indexed locker, address indexed pair, uint256 tokenUsed, uint256 wethUsed, uint256 lpMinted)- Signature:
LateLiquidityAdded(address,address,uint256,uint256,uint256) - Anonymous: no
Fields
| Field | ABI type | Indexed |
|---|---|---|
locker | address | yes |
pair | address | yes |
tokenUsed | uint256 | no |
wethUsed | uint256 | no |
lpMinted | uint256 | no |
OfficialPoolCreated
event OfficialPoolCreated(address indexed pair, uint256 tokenUsed, uint256 wethUsed, uint256 lpMinted, uint256 preseededTokenReserve, uint256 preseededWethReserve)- Signature:
OfficialPoolCreated(address,uint256,uint256,uint256,uint256,uint256) - Anonymous: no
Fields
| Field | ABI type | Indexed |
|---|---|---|
pair | address | yes |
tokenUsed | uint256 | no |
wethUsed | uint256 | no |
lpMinted | uint256 | no |
preseededTokenReserve | uint256 | no |
preseededWethReserve | uint256 | no |
UnexpectedEthSwept
event UnexpectedEthSwept(address indexed recipient, uint256 amount)- Signature:
UnexpectedEthSwept(address,uint256) - Anonymous: no
Fields
| Field | ABI type | Indexed |
|---|---|---|
recipient | address | yes |
amount | uint256 | no |
UnsupportedTokenRecovered
event UnsupportedTokenRecovered(address indexed token, address indexed recipient, uint256 amount)- Signature:
UnsupportedTokenRecovered(address,address,uint256) - Anonymous: no
Fields
| Field | ABI type | Indexed |
|---|---|---|
token | address | yes |
recipient | address | yes |
amount | uint256 | no |
Custom errors
TransferFailed
error TransferFailed()- Signature:
TransferFailed()
Arguments
None.
Generated from data/abi/D17LiquidityVault.abi.json. Every entry above is checked against that ABI by npm run check:contracts.