0xf2306315…439csent to0x467d66b9…4bf7·#24,884,551·view on Etherscan
Introduce "Weekly Tithe" — a scheduled liquidity contraction
mechanism. The CMD contract holds the Uniswap V4 LP position
NFT paired with ETH or USDT (whichever the deployed pool uses).
Every 50400 blocks (approximately 7 days on Ethereum L1) a
permissionless function executeTithe() can be called exactly
once per cycle by anyone. The function performs four sequential
actions. First, it removes 2% of the current LP position,
receiving both CMD and the paired asset (ETH or USDT) into the
contract. Second, it uses the entire received amount of paired
asset to buy additional CMD from the remaining pool via a swap.
Third, it burns all CMD now held by the contract to address(0)
via _burn. Fourth, it pays the caller a bounty of 1% of total
CMD burned as gas compensation. Cycles are sequential and
tracked by currentTitheCycle. Emit TitheExecuted(cycle, caller,
cmdRemovedFromLP, pairedAssetSpent, cmdBoughtBack, totalBurned,
bounty). View functions nextTitheBlock() and
titheCompleted(cycle).