If a company creates a new ERC-20 token, MOON, and wants to…

If a company creates a new ERC-20 token, MOON, and wants to sell it on chain, it can use the Initial DEX Offering (IDO) approach, by seeding a Uniswap pool with their MOON tokens, and allowing users to buy tokens from the pool.  If you wanted to sell your new MOON tokens in this way, you should…

The Bored Ape Yacht Club contract includes the “withdraw()”…

The Bored Ape Yacht Club contract includes the “withdraw()” function:   function withdraw() public onlyOwner {       uint balance = address(this).balance;       msg.sender.transfer(balance);   }   What is the purpose of this function?

A common method for creating a Verifiable Random Function is…

A common method for creating a Verifiable Random Function is to hash the output of a digital signature scheme.  So if (sk,vk) is a key pair for a digital signature scheme, we can define a function: Fsk(x) = H( signsk(x) ).  Algorand implements a VRF like this using ED25519, and Ethereum’s RANDAO implements a VRF like this using BLS signatures.  What would be the problem with implementing this using ECDSA?

The following implements a simple “bank” that allows you to…

The following implements a simple “bank” that allows you to store and withdraw ETH.  What is wrong with this contract? contract Bank {   mapping(address => uint256) public balances;    function deposit(address _for) public payable {       balances += msg.value;   }   function withdraw(address from, uint256 amount) public {       require(balances >= amount, “insufficient balance”);       balances -= amount;       msg.sender.call{value: amount}(“”);   }}

Johnathan, 7 years and 6 months, participated in a speech an…

Johnathan, 7 years and 6 months, participated in a speech and language evaluation. The SLP administered the CELF-5. Given the information below, formulate a paragraph explaining Johnathan’s performance on the CELF-5 in relation to the standardized test norming sample. Be sure to demonstrate your understanding of the normal distribution of scores, expected and unexpected scores, confidence intervals, etc.  Core Language Standard Score = 67 Percentile Rank = 1 Confidence Intervals: 68% +/- 3 90% +/- 5 95% +/- 7