mouse-dev-1 / akutar Goto Github PK
View Code? Open in Web Editor NEW15k randomized tiered airdrop collection for Akutar.
15k randomized tiered airdrop collection for Akutar.
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.
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.
Y'all need to make this contract upgradable. It could've potentially saved the day with the original contract. https://docs.openzeppelin.com/contracts/3.x/upgradeable
Hi, we are a security startup named Trustlook focusing on Blockchain and Mobile.
We did an audit on your contract, and here is the link:
Please let us know if you have any questions or need any further service. You can reach us at [email protected].
Thanks!
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
{
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.