D17 DOCS
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

  • createOfficialPool and 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

ConstructorsFunctionsEventsCustom errorsReceive/fallback
122512

Construction

Constructor

constructor(address launch_, address token_, address weth_, address router_, address treasury_)
  • Mutability: nonpayable

Inputs

FieldABI 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

FieldABI type
value1bytes32

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

FieldABI type
minLpMinteduint256
deadlineuint256

Outputs

FieldABI type
pairaddress
liquidityTokensuint256
wethForPooluint256
liquidityuint256

lateLpMinted

function lateLpMinted() external view returns (uint256 value1)
  • Signature: lateLpMinted()
  • Mutability: view

Inputs

None.

Outputs

FieldABI type
value1uint256

lateTokenUsedForLp

function lateTokenUsedForLp() external view returns (uint256 value1)
  • Signature: lateTokenUsedForLp()
  • Mutability: view

Inputs

None.

Outputs

FieldABI type
value1uint256

lateWethUsedForLp

function lateWethUsedForLp() external view returns (uint256 value1)
  • Signature: lateWethUsedForLp()
  • Mutability: view

Inputs

None.

Outputs

FieldABI type
value1uint256

launch

function launch() external view returns (address value1)
  • Signature: launch()
  • Mutability: view

Inputs

None.

Outputs

FieldABI type
value1address

lpMinted

function lpMinted() external view returns (uint256 value1)
  • Signature: lpMinted()
  • Mutability: view

Inputs

None.

Outputs

FieldABI type
value1uint256

mintLateLiquidity

function mintLateLiquidity(uint256 tokenAmount, uint256 wethAmount) external nonpayable returns (uint256 liquidity)
  • Signature: mintLateLiquidity(uint256,uint256)
  • Mutability: nonpayable

Inputs

FieldABI type
tokenAmountuint256
wethAmountuint256

Outputs

FieldABI type
liquidityuint256

officialPair

function officialPair() external view returns (address value1)
  • Signature: officialPair()
  • Mutability: view

Inputs

None.

Outputs

FieldABI type
value1address

poolCreated

function poolCreated() external view returns (bool value1)
  • Signature: poolCreated()
  • Mutability: view

Inputs

None.

Outputs

FieldABI type
value1bool

preseededTokenReserve

function preseededTokenReserve() external view returns (uint256 value1)
  • Signature: preseededTokenReserve()
  • Mutability: view

Inputs

None.

Outputs

FieldABI type
value1uint256

preseededWethReserve

function preseededWethReserve() external view returns (uint256 value1)
  • Signature: preseededWethReserve()
  • Mutability: view

Inputs

None.

Outputs

FieldABI type
value1uint256

recoverUnsupportedTokenToTreasury

function recoverUnsupportedTokenToTreasury(address tokenAddress, uint256 amount) external nonpayable
  • Signature: recoverUnsupportedTokenToTreasury(address,uint256)
  • Mutability: nonpayable

Inputs

FieldABI type
tokenAddressaddress
amountuint256

Outputs

None.

router

function router() external view returns (address value1)
  • Signature: router()
  • Mutability: view

Inputs

None.

Outputs

FieldABI type
value1address

routerFactory

function routerFactory() external view returns (address value1)
  • Signature: routerFactory()
  • Mutability: view

Inputs

None.

Outputs

FieldABI type
value1address

sweepExcessWethToTreasury

function sweepExcessWethToTreasury() external nonpayable returns (uint256 amount)
  • Signature: sweepExcessWethToTreasury()
  • Mutability: nonpayable

Inputs

None.

Outputs

FieldABI type
amountuint256

sweepUnexpectedEthToTreasury

function sweepUnexpectedEthToTreasury() external nonpayable returns (uint256 amount)
  • Signature: sweepUnexpectedEthToTreasury()
  • Mutability: nonpayable

Inputs

None.

Outputs

FieldABI type
amountuint256

token

function token() external view returns (address value1)
  • Signature: token()
  • Mutability: view

Inputs

None.

Outputs

FieldABI type
value1address

tokenUsedForPool

function tokenUsedForPool() external view returns (uint256 value1)
  • Signature: tokenUsedForPool()
  • Mutability: view

Inputs

None.

Outputs

FieldABI type
value1uint256

treasury

function treasury() external view returns (address value1)
  • Signature: treasury()
  • Mutability: view

Inputs

None.

Outputs

FieldABI type
value1address

weth

function weth() external view returns (address value1)
  • Signature: weth()
  • Mutability: view

Inputs

None.

Outputs

FieldABI type
value1address

wethUsedForPool

function wethUsedForPool() external view returns (uint256 value1)
  • Signature: wethUsedForPool()
  • Mutability: view

Inputs

None.

Outputs

FieldABI type
value1uint256

Events

ExcessWethSwept

event ExcessWethSwept(address indexed recipient, uint256 amount)
  • Signature: ExcessWethSwept(address,uint256)
  • Anonymous: no

Fields

FieldABI typeIndexed
recipientaddressyes
amountuint256no

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

FieldABI typeIndexed
lockeraddressyes
pairaddressyes
tokenUseduint256no
wethUseduint256no
lpMinteduint256no

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

FieldABI typeIndexed
pairaddressyes
tokenUseduint256no
wethUseduint256no
lpMinteduint256no
preseededTokenReserveuint256no
preseededWethReserveuint256no

UnexpectedEthSwept

event UnexpectedEthSwept(address indexed recipient, uint256 amount)
  • Signature: UnexpectedEthSwept(address,uint256)
  • Anonymous: no

Fields

FieldABI typeIndexed
recipientaddressyes
amountuint256no

UnsupportedTokenRecovered

event UnsupportedTokenRecovered(address indexed token, address indexed recipient, uint256 amount)
  • Signature: UnsupportedTokenRecovered(address,address,uint256)
  • Anonymous: no

Fields

FieldABI typeIndexed
tokenaddressyes
recipientaddressyes
amountuint256no

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.