medium10 pts · first answer countssolidityarithmetictokens
Computing a fee in basis points
A fee is 250 basis points. A user pays 400 USDC, which has 6 decimals, so amount = 400_000_000. What does amount * 250 / 10_000 give?
Discussion 0
Join free to post in the discussion.
Related questions
- Letting a contract spend tokensBlockchain Developer
- storage, memory, calldataBlockchain Developer
- Why emit eventsBlockchain Developer
- Standard for unique tokensBlockchain Developer
- What msg.sender isBlockchain Developer
- Wei and etherBlockchain Developer
- view vs pureBlockchain Developer
- Sending ETH to a functionBlockchain Developer