# PXN 合约分析 **Published by:** [wellfrog](https://paragraph.com/@wellfrog/) **Published on:** 2022-05-11 **URL:** https://paragraph.com/@wellfrog/pxn ## Content 合约地址 https://rinkeby.etherscan.io/address/0x3201fe090e70bd464bc93469545be5278595d1f5#code合约类型ERC721AOwnable关键数量该项目共计 10k 个nft白单可以mint 6k白单价0.35e荷兰拍的数量 4k荷兰拍起拍价 2e,之后每隔15分钟降价 0.05e,白单mint价格 0.35e合约审计分析Reentrancy用了_safeMint来防止了Reentrancy关键的逻辑都使用了require来进行校验Ownership Take Over继承使用了Ownable合约。在需要的地方都做了限制Timestamp代码中有timestamp相关的限制Contract interact使用了callerIsUser来防止合约调用业务逻辑分析mintDutchAuction()通过DA_ACTIVE来开启判断数量不超过4000个mintWL()在开启whitelist之后24小时之后就不能mint了teamMint()必须要在whitelist开启24小时之后才能操作devMint()require( block.timestamp >= WL_STARTING_TIMESTAMP, "WL has finished!" );上面这个的提示有点奇怪。其他都还好 ## Publication Information - [wellfrog](https://paragraph.com/@wellfrog/): Publication homepage - [All Posts](https://paragraph.com/@wellfrog/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@wellfrog): Subscribe to updates - [Twitter](https://twitter.com/WellFrogC): Follow on Twitter