horsefacts
@horsefacts.eth
Just in time for 4th of July, here's a Uniswap v4 hook that reverts all swaps if NYSE is closed: https://github.com/horsefacts/trading-days You can see a view only version ("TradingView") on Etherscan here: https://etherscan.io/address/0x000000006016c17169c289346015b3c9d42a1218#readContract
3 replies
2 recasts
14 reactions
horsefacts
@horsefacts.eth
This is a joke with a few interesting technical details: NYSE holidays and Daylight Savings start/end timestamps are precalculated through 2123 and looked up from a "data contract" (data bytes stored as contract bytecode). Here's DST: https://etherscan.io/address/0x823b0DE957DFF208DB83918E89d9F6c357Ada121#code
1 reply
0 recast
0 reaction
pyk
@pyk
This is the most underrated feature of this hook
2 replies
0 recast
3 reactions
Winston Laoh
@winstonlaoh
Would drastically improve my sleep quality.
1 reply
0 recast
1 reaction