ApeCoin / Smart Contract Analysis
Attention: I'm moving my blog/newsletter out of LinkedIn. Find the article on the new page here: https://www.decentech.io/apecoin-smart-contract-analysis/
Short and sweet but did you know that the image you see above is the source code $APE (ApeCoin)? It only takes 17 lines (could be as little 3-4 if we take out the extra space) and that is it. 17 lines and a currency was created that has been shaking the NFT and DeFi world over the last few weeks.
How was Apecoin minted?
You can see in line 14 that as soon as the contract was created (the function is called "constructor" because it creates the contract), the entire supply (totalSupply_) was minted to whoever called the contract.
This is the transaction that created the contract and who received the entire supply: https://etherscan.io/tx/0x2761f74e2f45d981a9d7553cbbcfbcc862cae416eb37a820300d4c19516d6fca
So can someone mess with this contract?
No, the contract is set in stone. Someone can however mess with the circulation of the coins - because they can move around. But no, the contract itself is solid and simple.
Does this give me any safety?
Not really, it just shows how simple a token can be. Safety is more related to the humans that hold the tokens. The tech site is simple. :)?
Find the source of Apecoin here.
#nft #web3 #apecoin $APE
Physical and Digital Music | Music | LinkedIn Top Voice | Serenade | Founder at SpinBard
2 年Would you say this is a good thing? Or could it have been better? I don't have a coding background so it would be good to have a couple of insights!
?Crypto Marketer ?I help AI, NFT, DeFi, Metaverse, IDO, Play2Earn, blockchain projects to grow?TOP 1% Linkedin in Advertising ?Web3.0 & AI!
2 年Short as the value of that token ??
Senior Manager - Chainlink Build
2 年Awesome
?? AI in psychiatry | ?? Building innovative MedTech solutions | ?? Explainable AI
2 年Interesting! Jakub - take a look;)
Chief AI Officer & CEO @ WhitegloveAI: helping private/public sector adopt AI responsibly and securely | Managed AI Service Provider (MAISP)? | U.S. Marine ???? | CoAuthor, AI Adoption and Management Framework
2 年OpenZeppelin did all the heavy lifting ???