# 收藏一些常用的solidity小机制 **Published by:** [Lucky777](https://paragraph.com/@layflat/) **Published on:** 2022-05-06 **URL:** https://paragraph.com/@layflat/solidity ## Content if(balanceOf(uniswapV2Pair) == 0 && to == uniswapV2Pair){ startNumber = block.number; } 这个用来判定加入初始流动性的时间,即上线时间 ## Publication Information - [Lucky777](https://paragraph.com/@layflat/): Publication homepage - [All Posts](https://paragraph.com/@layflat/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@layflat): Subscribe to updates - [Twitter](https://twitter.com/lucky777_fun): Follow on Twitter