Earn yield on your principal without losing your staked position, with flexible streams to claim accrued rewards at set intervals.
# Yield Tokenizer
A DeFi protocol for yield tokenization built on Mantle Network for the Mantle Global Hackathon 2025.
## Overview
Yield Tokenizer enables users to separate yield-bearing assets into two tradeable components:
- **Principal Tokens (PT)**: Represent the underlying asset's principal value, redeemable at maturity
- **Yield Tokens (YT)**: Represent future yield rights, tradeable independently
This separation allows users to lock in fixed yields, speculate on variable rates, or unlock liquidity from staked assets.
## Tech Stack
- **Smart Contracts**: Solidity (83.8%)
- **Frontend**: TypeScript (13.2%)
- **Scripts**: Python
- **Build System**: Turborepo + pnpm
- **Network**: Mantle L2
## Features
- Decompose yield-bearing assets into PT and YT tokens
- Trade future yield independently from principal
- Lock in fixed-rate returns by holding PT to maturity
- Gain leveraged yield exposure through YT trading
- Optimized for Mantle's low-fee L2 environment
## Links
- [Repository](https://github.com/whyparabola/yield-tokenizer)
- [Mantle Network](https://www.mantle.xyz/)
- [Hackathon](https://www.hackquest.io/hackathons/Mantle-Global-Hackathon-2025)
# Yield Tokenizer - Hackathon Progress Update Phase 1: Ideation & Research Phase The journey began with identifying a critical gap in the Mantle DeFi ecosystem—the absence of yield tokenization infrastructure. After researching existing protocols like Pendle on other chains, I recognized the opportunity to bring this powerful DeFi primitive to Mantle. The concept of separating yield-bearing assets into Principal Tokens and Yield Tokens opens up numerous strategies for users seeking fixed returns or yield speculation. I spent considerable time understanding the mathematical models behind yield tokenization, studying how time-decay affects token valuations, and designing an architecture that would be gas-efficient on Mantle's L2 environment. Phase 2: Smart Contract Development Building the core smart contracts from scratch was the most challenging yet rewarding phase. I architected the system using Solidity, implementing the yield separation logic, token minting mechanisms, and maturity redemption functions. The contracts handle the decomposition of yield-bearing assets, mint corresponding PT and YT tokens, and manage the yield accrual calculations. I focused heavily on security considerations, implementing proper access controls and reentrancy guards. Testing each function thoroughly on Mantle testnet helped identify edge cases around maturity timestamps and yield distribution. The modular design ensures future extensibility for supporting multiple yield-bearing assets. Final Phase: Frontend Integration & User Experience With contracts deployed, I shifted focus to building an intuitive TypeScript frontend that abstracts the complexity of yield tokenization. The interface allows users to deposit assets, view their PT/YT balances, and execute trades seamlessly. I integrated Web3 connectivity for wallet interactions and implemented real-time yield calculations displayed to users. The frontend communicates with deployed contracts through a clean API layer, handling transaction signing and confirmation states. Special attention was given to error handling and loading states, ensuring users always understand what's happening with their transactions on Mantle's network.
N/A