ClankerUniv4EthDevBuy
Documentation of Clanker v4.0.0's DevBuy
The ClankerUniv4EthDevBuy extension is used to perform an initial swap of the token using passed-in ETH. If the paired token is not WETH, the extension will swap the passed-in ETH for the paired token before swapping the paired token for the deployed token. For non-WETH pairs, the paired token must have a WETH<>PairedToken Uniswap v4 pool.
In this version, multiple devBuy extensions are allowed per deployment.
The ClankerUniv4EthDevBuy's extension data is in the form of:
struct Univ4EthDevBuyExtensionData {
// pool key to swap from W/ETH to paired token if the paired token is not WETH.
// Can be set to fake data if the paired token is WETH.
PoolKey pairedTokenPoolKey;
// minimum amount of token to receive from the W/ETH -> paired token swap
uint128 pairedTokenAmountOutMinimum;
// recipient of the tokens, should be specified
address recipient;
}
There are no user-facing functions for the ClankerUniv4EthDevBuy extension.
Last updated