medium10 pts · first answer countssmart-contract-securitytokensarithmetic
Assuming 18 decimals
A contract values deposits as amount * price / 1e18, assuming every token has 18 decimals. A user deposits 1,000 USDC (6 decimals). What is the result?
Discussion 0
Join free to post in the discussion.
Related questions
- Letting a contract spend tokensBlockchain Developer
- Standard for unique tokensBlockchain Developer
- Private variables are public dataBlockchain Developer
- Verifying a contract on EtherscanBlockchain Developer
- Sharing a seed phraseBlockchain Developer
- Why use OpenZeppelinBlockchain Developer
- The checks-effects-interactions orderBlockchain Developer
- What nonReentrant doesBlockchain Developer