Add ShitGiftHookV2 hook on ethereum#599
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Review: hooks/ethereum/0xfb78f6600ec9a795f3f7270e05ea0dd371f94040.json
Address Flags
Address 0xfb78f6600ec9a795f3f7270e05ea0dd371f94040 — lower 14 bits: 0x4040 & 0x3FFF = 0x0040 = bit 6 → afterSwap only.
Matches the flags section exactly. Confirmed by getHookPermissions() in the contract source.
Properties
| Property | Claimed | Verdict |
|---|---|---|
dynamicFee |
false |
✓ No updateDynamicLPFee() call; beforeSwap reverts as unsupported |
upgradeable |
false |
✓ source_meta.json proxy=false; no delegatecall, no SELFDESTRUCT, no mutable implementation |
requiresCustomSwapData |
false |
✓ hookData param is ignored entirely in afterSwap |
vanillaSwap |
false |
✓ afterSwap calls _settleHead() which performs IERC20(art).transfer(tUser, 1 ether) — token transfer inside the hook disqualifies vanilla |
swapAccess |
"none" |
✓ Only check is msg.sender != POOL_MANAGER (caller auth, not swap access control); canonical-pool gate silently returns for foreign pools but does not restrict who can swap |
Metadata
verifiedSource: true— confirmed (source_meta.json:verified: true) ✓chainId: 1— correct for ethereum ✓name: "ShitGiftHookV2"— matchescontractNamein source metadata and contract NatSpec/declaration ✓description— all claims verified against source: afterSwap hook on a configurable SHIT pool, ticket queue for art drops, volume tiers (TIER1_BPS=50→0.5% through TIER5_BPS=4200→42%), blockhash RNG withTICKET_DELAY=2,DROP_COOLDOWN=1 days, permissionless deposits gated by factoryisValidToken,Ownable2Stepowner withdrawal viaownerWithdrawArt. No promotional, audit, or safety language. ✓
All fields are accurate. APPROVE.
marktoda
left a comment
There was a problem hiding this comment.
Bot review verified. ShitGiftHookV2 (ethereum) — afterSwap hook on a SHIT token pool queuing volume-tiered (0.5%–42%) random ShitVerse art-token drops, settled via future-blockhash RNG with 2-block delay + 1-day per-address cooldown; permissionless art deposits, Ownable2Step owner withdrawals. Bitmask 0x0040 → afterSwap only. Description 405 chars (under 500, on the longer side). LGTM.
Summary
An afterSwap hook on a configurable SHIT token pool that queues random ShitVerse art (ERC-20) token drops for qualifying buyers. Drop probability is volume-tiered (0.5%–42%), settled via future blockhash RNG with a 2-block delay and a 1-day per-address cooldown. Art tokens can be deposited permissionlessly by anyone holding valid ShitVerse factory tokens; the Ownable2Step owner can withdraw art tokens.
Flags
Properties
Warnings
Closes #598