Progressive Bid Wall
Introduction
This hook allows us to create a single sided liquidity position (Plunge Protection) that is placed 1 tick below spot price, using the ETH fees accumulated. After each deposit into the BidWall the position is rebalanced to ensure it remains 1 tick below spot. This spot will be determined by the tick value before the triggering swap.
After a swap is made against a Flaunch pool, if a sufficient fee threshold has been reached, we distribute fees across our expected recipients. The BidWall is, unless disabled by the creator, one of these recipients.
If the deposit passes a set threshold, the liquidity position held by the contract for the pool will be rebalanced:
The existing position will withdraw any remaining ETH and any memecoin that was sold into it
A new position will be created with the withdrawn ETH + the pending ETH that has been deposited at the tick directly below the current position
The memecoin that was withdrawn is sent to the memecoin treasury
Public Calls
poolInfo
This structure mapping gets information for a pools BidWall.
The structure of this returned information is below:
isBidWallEnabled
Checks if the BidWall is currently enabled for the Pool. This can be updated by the memecoin creator by calling setDisabledState.
position
Retrieves the current liquidity position held by the BidWall. The amount0
and amount1
values correlate to the PoolKey token0
and token1
. The pendingEth
value shows the amount of ETH waiting to be added to the liquidity position when the threshold is next met.
setDisabledState
The BidWall can be enabled or disabled via the BidWall
by calling the setDisabledState
function. When the BidWall is disabled, the pending and cumulitive fees will be reset to zero and any tokens held, as well as future tokens, will be sent to the Memecoin Treasury.
This can only be called by the owner of the memecoin ERC721, signifying ownership.
Notes
The BidWall will not receive tokens during the FairLaunch period, and will instead receive all fee allocation in a single transaction upon the Fair Launch period ending.
The BidWall only receives ETH and not memecoin tokens, as these are first exchanged via the Internal Swap Pool.
Last updated