Sub topic 5
Utility Tokens: Access, Fees, and Incentives
What this chapter assumes
This chapter assumes you know what a blockchain and a wallet are, and that you can read a short Solidity or Python snippet. It also assumes you have seen the ERC-20 standard from the earlier chapters. You should know that an ERC-20 contract stores a balance for each address and lets holders transfer or approve spending.
A utility token is a token whose main job is to be used inside a product or protocol. The use can be paying a fee, unlocking a feature, posting a deposit, or earning a reward. This chapter covers each of these roles, the code patterns behind them, and the errors that make a "utility" label misleading.
The working model
A utility token is a unit of access that a protocol's contracts check for. The token itself is usually a plain ERC-20. What makes it a utility token is that other contracts or services read its balance, spend it, or lock it.
Three questions identify the utility:
- What can a holder do with the token that a non-holder cannot?
- Who must acquire the token to get that benefit?
- Does the benefit still exist if nobody speculates on the token?
If the answers are vague, the token's utility is probably thin. Its price then depends mostly on speculation, which is the situation memecoins are in by design.
The four common roles
Access
Access tokens gate a feature. The simplest form is a balance check: a contract allows an action only if the caller holds at least some amount of the token.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract GatedService {
IERC20 public immutable accessToken;
uint256 public immutable minBalance;
error NotEnoughTokens();
event ServiceUsed(address indexed user);
constructor(IERC20 token, uint256 minimum) {
accessToken = token;
minBalance = minimum;
}
function useService() external {
if (accessToken.balanceOf(msg.sender) < minBalance) {
revert NotEnoughTokens();
}
emit ServiceUsed(msg.sender);
}
}A balance check has a known weakness. A balance can be borrowed for one transaction with a flash loan, or moved to a second address after the check. This is fine for low-value perks. For anything valuable, require the user to lock (stake) tokens for a period, so the holding cannot be rented for a moment.
Fees
In a fee token, the token is the payment unit. Some networks require their native coin for gas. An application token can also be the unit for paying for storage, compute, or API calls. Two design points matter:
- If users must pay in the token, every purchase creates demand. Yet if the service is also priced in dollars, the token is only a payment rail, and users will sell it immediately after earning it.
- If the protocol accepts several tokens for fees, the native token loses its forced demand. Many protocols offer a discount for paying in their own token. This keeps demand without making it mandatory.
Staking and collateral
Staking means locking tokens in a contract. Utility tokens are staked for three main reasons:
- To earn access to a tier, such as lower fees or higher limits.
- To act as a security deposit that can be slashed (partly destroyed) if the staker misbehaves. Networks that rely on validators or oracle operators use this pattern.
- To serve as collateral in a lending system.
Staking reduces the circulating supply for as long as tokens are locked. It also creates an exit risk: if everyone can unstake instantly, the lock provides no commitment. Many designs add an unbonding period, a delay between requesting to leave and receiving tokens.
Incentives
Incentive tokens reward behavior the protocol wants, such as supplying liquidity, running a node, or contributing data. The protocol pays the reward from a pre-allocated pool or by minting new tokens. Incentives bootstrap a network, but they also have a cost. The rewards are an expense paid in the token, so they dilute holders unless the new demand for the token grows at least as fast as the new supply.
A worked example: a fee-discount token
The model below shows a protocol that charges a base fee and gives a discount to users who stake. It is plain Python, so you can run it as is.
def fee_for(amount, staked, base_fee=0.003, tiers=None):
"""Return the fee for a trade, using the best staking tier reached."""
if tiers is None:
# (minimum staked tokens, discount as a share of the base fee)
tiers = [(0, 0.0), (1_000, 0.25), (10_000, 0.50)]
discount = 0.0
for minimum, tier_discount in tiers:
if staked >= minimum:
discount = tier_discount
return amount * base_fee * (1 - discount)
for staked in (0, 1_000, 10_000):
print(staked, fee_for(100_000, staked))On a 100,000 trade, the fee is 300 with no stake, 225 at the 1,000-token tier, and 150 at the 10,000-token tier. The value of staking is the fee saved. A trader only stakes 10,000 tokens if the savings across their expected volume exceed what they give up by locking the tokens. This is the cost-benefit test every access token should pass: the benefit must exceed the cost of holding and locking.
How demand flows
The diagram shows where demand for a utility token comes from and where supply enters the market.
Buying pressure comes from fees and staking. Selling pressure comes from rewards that recipients sell. If rewards are large and fee demand is small, the net pressure is downward.
Fee capture and burning
Some utility tokens route part of protocol fees to token holders or destroy tokens with them. Destroying tokens is called burning. The table compares common approaches.
| Mechanism | How it works | Main limitation |
|---|---|---|
| Fee payment in token | Users must hold the token to pay | Users may sell right after paying |
| Fee burn | A share of fees permanently removes tokens | Supply falls only if fee volume is high |
| Fee sharing to stakers | Stakers receive a share of revenue | Can be treated as a profit share by regulators |
| Buyback | Treasury buys tokens on the market | Depends on treasury funds, and price impact is large in thin pools |
A burn is not value by itself. Removing 1% of supply only matters if the demand for the remaining tokens is stable or growing.
Common errors
- Calling a token "utility" because it has a feature. A feature that few people use, or that works without the token, produces little demand.
- Counting emissions as organic demand. If users hold the token only to farm rewards, demand disappears when rewards end.
- Ignoring circulating versus total supply. A token with a low circulating supply and large scheduled unlocks faces future selling pressure. The earlier chapter on supply and vesting covers this.
- Trusting a balance check. As noted above, a plain balance check can be gamed. Use locks for valuable access.
- Assuming a utility label gives legal safety. Regulators look at how a token is sold and what buyers expect, not at what the project calls it. A later chapter covers this.
Quick checks for a utility token
Use this list when you read a project's documentation:
- Identify the exact action the token enables, and find the contract function that enforces it.
- Find out whether the action can be paid for in another asset.
- Check how much of the supply is locked, and how long the unbonding period is.
- Compare yearly emissions with yearly fee revenue.
- Look for who can change the fee or access rules, and whether a timelock applies.
Exercise
A protocol lets users trade at a 50% fee discount if they hold 10,000 tokens, checked only by balanceOf at the moment of the trade. Name one way this design can be abused, and one change that fixes it.
Show answer
A trader can borrow 10,000 tokens with a flash loan (or move tokens between addresses), trade at the discount in the same transaction, and return the tokens, so they get the discount without holding any risk. The fix is to require staking with a lock period, or to measure the balance over time (for example with a snapshot or a minimum holding duration) instead of at one moment.
Exercise
A token pays holders 20% yearly rewards from newly minted supply. Fee revenue is small and almost no one uses the product. Is this token's demand mostly utility or incentive, and what happens when emissions stop?
Show answer
Demand is mostly incentive. Holders are there for the rewards, not to use the product. When emissions stop, the reason to hold disappears, so selling increases and the price tends to fall unless real fee demand has grown by then.