Tokenization System
Overview
The ZEUR protocol uses a sophisticated tokenization system to represent user positions and enable composability. All user deposits and debts are tokenized into ERC20-compatible tokens that can be tracked, transferred (where applicable), and integrated with other DeFi protocols.
Token Types
1. ColTokens (Collateral Tokens)
ColTokens represent user deposits of collateral assets. They are minted 1:1 with the underlying collateral and serve as proof of deposit.
ColETH (Collateral ETH)
contract ColToken is ERC20Upgradeable, AccessManagedUpgradeable, UUPSUpgradeableCharacteristics:
Minting: 1:1 with deposited ETH
Transferable: Yes (freely transferable)
Composable: Can be used in other DeFi protocols
Yield-bearing: Earns staking rewards automatically
Example:
User deposits 5 ETH
Receives 5 colETH tokens
ETH automatically stakes across LST protocols
User earns staking rewards while holding colETH
ColLINK (Collateral LINK)
Characteristics:
Minting: 1:1 with deposited LINK
Transferable: Yes (freely transferable)
Composable: Can be used in other DeFi protocols
Yield-bearing: Earns LINK staking rewards
Functions:
2. DebtEUR (Debt Token)
DebtEUR represents borrowed EUR stablecoins. Unlike ColTokens, DebtTokens are non-transferable to prevent debt assignment.
Characteristics:
Minting: 1:1 with borrowed EUR amount
Non-transferable: Cannot be transferred between users
Account-bound: Debt stays with the borrower
Decimals: 6 (matches EURC)
Restricted Functions:
Example:
User borrows 1,000 EURC
1,000 debtEUR tokens are minted to user
Tokens cannot be transferred to another address
User must repay to burn debtEUR tokens
3. ColEUR (Collateral EUR)
ColEUR is an ERC4626 vault that represents EUR stablecoin deposits. It's used for EUR suppliers who want to earn lending interest.
Characteristics:
Standard: ERC4626 vault token
Underlying: EURC (or other EUR stablecoins)
Shares: Represent proportional ownership of EUR pool
Transferable: Yes (freely transferable)
Interest-bearing: Earns interest from borrowers
Key Functions:
Example:
User deposits 10,000 EURC
Receives ColEUR shares based on current exchange rate
Earns interest as borrowers pay back loans
Can withdraw EURC + accrued interest anytime
Token Mechanics
1. ColToken Mechanics
Minting Process
Burning Process
Staking Integration
ColTokens automatically earn staking rewards through the vault system:
2. DebtEUR Mechanics
Debt Creation
Debt Repayment
3. ColEUR Vault Mechanics
Share Calculation
ColEUR follows ERC4626 standard for share calculations:
Interest Accrual
Interest is earned when:
Borrowers pay interest on loans
EUR flows back into the ColEUR vault
Exchange rate improves for ColEUR holders
Access Control
Restricted Functions
Only the Pool contract can call certain functions:
ColToken Restricted:
mint()- Only Pool can mintburn()- Only Pool can burn
DebtEUR Restricted:
mint()- Only Pool can mintburn()- Only Pool can burn
ColEUR Restricted:
deposit()- Only Pool can depositwithdraw()- Only Pool can withdrawtransferTokenTo()- Only Pool can transfer underlying
Role Management
Token Interactions
Supply Collateral Flow
Borrow Flow
Supply EUR Flow
Liquidation Flow
Token Standards Compliance
ERC20 Compliance
All tokens follow ERC20 standard with customizations:
ColTokens: Full ERC20 with transferability
DebtEUR: ERC20 interface but non-transferable
ColEUR: ERC20 + ERC4626 vault standard
ERC4626 Compliance
ColEUR fully implements ERC4626 vault standard:
Composability
ColToken Composability
ColTokens can be used in other DeFi protocols:
Lending: Use colETH as collateral in other protocols
DEX Trading: Trade colETH/ETH pairs
Yield Farming: Provide colETH/ETH liquidity
Derivatives: Create options/futures on colETH
ColEUR Composability
ColEUR shares can be:
Traded: colEUR/EURC pairs on DEXes
Composed: Used in other yield strategies
Collateralized: Used as collateral elsewhere
Automated: Integrated into yield aggregators
Decimal Handling
Token Decimals
Precision Considerations
All internal calculations use appropriate precision
Cross-decimal conversions handled carefully
Rounding errors minimized through proper ordering
Gas Optimization
Efficient Minting/Burning
Batch operations where possible
Minimal storage writes
Optimized approval mechanisms
Vault Efficiency
ERC4626 standard optimizations
Minimal external calls
Efficient share calculations
The tokenization system provides the foundation for all ZEUR protocol operations while maintaining composability and standards compliance.
Last updated