Coder Social home page Coder Social logo

akutar's People

Contributors

mouse-dev-1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

akutar's Issues

Why not using a merkle tree?

curious what is the reasoning for not using a merkle tree for the airdrop and let the user claim the nft? seems less prone to errors even if the current code doesn't have bugs

Here if you make a human mistake when manually inputing the addresses arrays you would need to redeploy the contract.

Will keep trying to get familiar with the code tho and see if I can find any bugs.

No randomness in the airdrop

There is no randomness in the airdrop tokens if the address[] in airdrop is controlled by the owner. There should be some hash verification to make sure that the address[] isn't shuffled by the owner after the shiftQuantity has been committed. There are any number of ways to implement the check.

external vs. public

More an optimization suggestion rather than an issue:
Apparently using external over public can save some gas when working with arrays: https://ethereum.stackexchange.com/a/19391

 function airdrop(uint256 airdropGrouping, address[] memory addresses)
        public // use external
        onlyOwner
    {

Issue with _safemint call for preexisting currentId

Is there a scenario where we would call airdrop API multiple times for same airdropGrouping ?
If we do it, then currentId could be calculated to same value over multiple calls .
If that happens, minting would fail for some addresses.
We currently dont have any data structure that identifies if an address has already minted or not.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.