DeFi University
Skip to lesson

Exercise 4

Smart Contracts and Token Standards

About 14 min

Your task

You'll play the part of a token contract: keep its stored numbers, apply a transfer, refuse one that breaks the rules, and convert raw balances with decimals. Then you'll run a batch transfer in a multi-token contract and name the standard behind five real kinds of token. By the end you can read any token balance correctly and say what a contract will do before it does it.

Time
20 minutes
You'll need
a calculator
Builds on
Lesson 4

Warm-up

Check yourself

A token has 6 decimals. You want to send 2 tokens. What number does the transaction carry?

Check yourself

Which standard lets one contract hold both a fungible coin and a one-of-a-kind item, and send both in one transfer?

Members only

This course is for members.

The DeFi University membership on Skool opens all 31 courses here, plus the live calls and community. Private coaching clients have access too. Already a member? Sign in with your Skool email.