Insrt-Finance / insrt-v2-contracts

0 stars 3 forks source link

feat: ext-11-for-multiple-spin-games-ensure-multiple-vrf-calls-are-used #235

Closed giovannifranchi closed 2 months ago

giovannifranchi commented 3 months ago

Changes implemented:

    1. _attemptBatchMintForEthWithEth()
    2. _processMintForEthWithEthAttemptSupra()
    3. _attemptBatchMintForEthWithMint()
    4. _attemptBatchMintForEthWithMintSupra_requestRandomWordsSupra()
    5. _attemptBatchMintForMintWithEth()
    6. _attemptBatchMintForMintWithEthSupra()
    7. _attemptBatchMintForMintWithMint()
    8. _attemptBatchMintForMintWithMintSupra()
    9. _attemptBatchMintWithEth()
    10. _attemptBatchMintWithEthSupra()
    11. _attemptBatchMintWithMint()
    12. _attemptBatchMintWithMintSupra()

Additionally make prettier has been run

0xinsi commented 2 months ago

Using a uint8 instead of a uint256 actually increases the cost of operations since under the hood solidity converts the uint8 in uint256.

Indeed! I was curious whether it was materially different.

The code looks fine.

Do we have any idea how many mints may be done as a maximum until we hit OOG error?