Logo:
Name: Cold Beer 404
Ticker Symbol: BEER404
Network: Pulsechain
Contract Address: 0x0760F66ed7139aaa70Dc21c8f9E75167e295D4Ab
Purpose:
Who doesn’t love a Cold Beer?
If you obtain a whole token you will be gifted 1 of 5 mouthwatering pints of Cold Beer, in the form of an NFT. If beer spills and that value goes below 1 your NFT will be burned.
Cold Beer 404 was created using the PulseCoin ERC-404 Factory.
It was also launched in collaboration with CoinHub, a telegram channel affiliated with the 9inch DEX.
Enjoy a Cold Beer today!!
Project URL: https://pulsemarket.app/collection/0x0760f66ed7139aaa70dc21c8f9e75167e295d4ab
Project social media: Twitter, Telegram
Contract Source Code: Link
Audit(s): B9.xyz
REVIEWED BY: CapBurningWater
Review Date: 02/04/2024
Reviewer: Captain Burning Water
Contract Name: Cold Beer 404
Deployed at: https://scan.9mm.pro/token/0x0760F66ed7139aaa70Dc21c8f9E75167e295D4Ab?tab=contract
Initial notes: This review concerns the Cold Beer 404 (BEER404) token, which utilizes the PulseCoinERC404 contract for deployment.
Contract Purpose and Scope: PulseCoinERC404 is an ERC404 token implementation designed for minting Non-Fungible Tokens (NFTs) with customizable token URI and metadata.
– setDataURI: Sets the data URI for the token.
– setTokenURI: Sets the base token URI for the token.
– setNameSymbol: Sets the name and symbol of the token.
– tokenURI: Generates the token URI with dynamic metadata based on the token ID.
In the constructor or elsewhere in the code, there is no reference to a minimum or maximum number of images/colors. However, the tokenURI function makes use of 5 images/colors. The code as it is can cause two problems:
To handle this scenario properly, you should either ensure that the images array always has at least 5 elements before invoking the tokenURI function or modify the function to handle cases where the array may contain fewer elements, as described in the previous response.
Final notes: Cold Beer 404 (BEER404) was created with 5,000 tokens, each associated with a unique image URL.
The Cold Beer 404 under the PulseCoinERC404 contract appears to be well-implemented and follows best practices, with the exception noted in the warning.