@@ -18,7 +18,7 @@ See [Design: Lower Fees](design.md#lower-fees).
1818
1919## Aux
2020
21- Consider using [ ` ERC721A._getAux ` ] ( erc721a.md#_getAux ) and
21+ Consider using [ ` ERC721A._getAux ` ] ( erc721a.md#_getAux ) and
2222[ ` ERC721A._setAux ` ] ( erc721a.md#_setAux ) to get / set per-address variables
2323(e.g. number of whitelist mints per address).
2424
@@ -34,21 +34,21 @@ To prevent overly expensive transfer fees for tokens that are minted in large ba
3434
3535- Restrict the max batch size for public mints to a reasonable number.
3636
37- - Break up excessively large batches into mini batches internally when minting.
37+ - Break up excessively large batches into mini batches internally when minting.
3838
39- - Look into [ ` ERC721AOwnersExplicit ` ] ( erc721a-owners-explicit.md ) .
39+ - Use \_ initializeOwnershipAt every couple tokens to reduce number of reads during a transfer.
4040
4141## Efficient Tokenomics
4242
4343ERC721A keeps track of additional variables in the internal mappings.
4444
4545- [ ` startTimestamp ` ] ( erc721a.md#_ownershipOf ) (starting time of holding) per token.
46- - [ ` numberMinted ` ] ( erc721a.md#_numberMinted ) per address.
46+ - [ ` numberMinted ` ] ( erc721a.md#_numberMinted ) per address.
4747- [ ` numberBurned ` ] ( erc721a.md#_numberBurned ) per address.
4848
4949These variables hitchike on the ` SLOAD ` s and ` SSTORE ` s at near zero additional gas cost (< 1%).
5050
51- You can use them to design tokenomics with very minimal gas overhead.
51+ You can use them to design tokenomics with very minimal gas overhead.
5252
5353## ERC721A vs ERC1155
5454
@@ -67,15 +67,15 @@ ERC1155 requires centralized indexing services to emulate ERC721-like functional
6767
6868## Other Implementations
6969
70- ERC721A is not a one-size-fits-all solution.
70+ ERC721A is not a one-size-fits-all solution.
7171
7272It is heavily optimized for generative artwork NFT collections.
7373
7474If your collection does not expect a busy mint phase (e.g. a pure utility NFT),
7575or does not require bulk minting,
76- these excellent implementations can be better for lowering overall transaction fees:
76+ these excellent implementations can be better for lowering overall transaction fees:
7777
78- - [ OpenZeppelin] ( https://github.com/OpenZeppelin/openzeppelin-contracts )
78+ - [ OpenZeppelin] ( https://github.com/OpenZeppelin/openzeppelin-contracts )
7979- [ Solmate] ( https://github.com/Rari-Capital/solmate )
8080
8181Use the right tool for the job.
0 commit comments