βœ…RACE #4

ERC20 implementation

RACE #4
RACE #4 result

Note: All 8 questions in this quiz are based on the InSecureum contract. This is the same contract you will see for all the 8 questions in this quiz. InSecureum is adapted from a widely used ERC20 contract.

Question 1 βœ…

β€œ`InSecureum` implements”

Question 2 βœ…

β€œIn `InSecureum`”

Question 3 βœ…

β€œ`InSecureum transferFrom()`”

My comment:

Here is OpenZeppelin's ERC20 transferFrom() implementation:

The require(currentAllowance >= amount, "ERC20: insufficient allowance"); check prevents integer underflow.

Question 4 βœ…

β€œIn `InSecureum`”

My comment:

Here is OpenZeppelin's ERC20 increaseAllowance() and decreaseAllowance() implementation:

Question 5 βœ…

β€œ`InSecureum _transfer()`”

My comment:

Here is OpenZeppelin's ERC20 _transfer() implementation:

Question 6 βœ…

β€œ`InSecureum _mint()`”

My comment:

Here is OpenZeppelin's ERC20 _mint() implementation:

Question 7 βœ…

β€œ`InSecureum _burn()`”

My comment:

Here is OpenZeppelin's ERC20 _burn() implementation:

Question 8 βœ…

β€œ`InSecureum _approve()`”

My comment:

Here is OpenZeppelin's ERC20 _approve() implementation:

Last updated

Was this helpful?