epam / corgis

Simple solution for corgi NFT
https://epam.github.io/corgis
0 stars 4 forks source link

Extra: 1 free Corgi per user #147

Open zahhar opened 3 years ago

zahhar commented 3 years ago

Allowing minting for free opens up a way for easy attack on contract with tools like Puppeteer, where user can mint hundreds of Corgies in minutes and make contract run out of money to pay for storage.

We can limit the contract the way it allows only 1 Corgi to be minted for free (or if user decides to Donate — then for any amount of Near donated), but then starting from 2nd Corgi contract requires a positive donation.

Min amount should be calculated based on actual storage consumption by a Corgi model, e.g. 0.2N probably will be enough.