gitwtfhub

wtf is tenor?

hijanhv/tenor — explained in plain English

Analysis updated 2026-05-18

0TypeScriptAudience · developerComplexity · 4/5LicenseSetup · moderate

TL;DR

Tenor lets Stellar users split a variable-yield crypto asset into a fixed-return token and a rate-speculation token, so savers can lock in a guaranteed return.

Mindmap

mindmap
  root((tenor))
    What it does
      Splits yield assets
      Principal token PT
      Yield token YT
      Fixed rate market
    Tech stack
      TypeScript
      Rust
      Soroban
      Stellar
    Use cases
      Lock fixed returns
      Trade rate exposure
      Automated carry vault
    Audience
      DeFi savers
      Crypto traders
      Stellar developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Lock in a guaranteed fixed interest rate on a yield-bearing crypto asset instead of exposure to a floating rate.

REASON 2

Trade a token that represents pure exposure to future interest rate movements.

REASON 3

Deposit into an automated vault that buys discounted principal tokens and pays out the fixed return at maturity.

REASON 4

Explore fixed-income style DeFi products on the Stellar blockchain using Soroban smart contracts.

What's in the stack?

TypeScriptRustSorobanStellar

How it stacks up

hijanhv/tenor0xradioac7iv/tempfs52191314/web-agent-proxy-sdk
Stars000
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatemoderatemoderate
Complexity4/53/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Runs on Stellar Testnet with test funds, requires a Freighter wallet and built-in faucet tokens to try.

MIT license, use, modify, and distribute freely including commercially, with attribution.

Wtf does this do

Tenor is a decentralized finance project built on Stellar, a blockchain network, that lets people turn a floating, unpredictable interest rate into a fixed one, or trade on where interest rates are heading. It targets a gap the authors identified in Stellar's DeFi ecosystem: lending pools and yield-bearing assets already exist, but the rate you earn from them can swing week to week, and there was no way to lock in a guaranteed return or bet directly on rate changes. The core idea is splitting a yield-bearing asset into two separate tokens once you pick a maturity date. One token, called the principal token, always redeems for exactly the original asset value at maturity, making it attractive to savers who want a predictable, fixed return. The other, the yield token, collects all the interest the asset earns until that maturity date, which suits traders who want to speculate on whether rates will rise or fall. The two tokens can always be recombined back into the original asset. Tenor is built from three connected pieces. The tokenizer is the core contract that splits deposits into these two token types. A pricing pool trades the principal token against a stable token, with its price gradually rising toward full value as the maturity date approaches, which is what lets the fixed rate stay steady over time. A carry vault automates the whole process for everyday users: deposit once, and the vault buys the cheapest principal tokens, holds them, and pays out the locked return automatically at maturity. The project is currently live on the Stellar Testnet, meaning it uses test funds rather than real money, with a web app where users connect a Freighter wallet, get free test tokens from a built-in faucet, and see live numbers pulled directly from the underlying smart contracts. The contracts are written in Rust using the Soroban smart contract framework, and the project includes documentation covering the technical architecture and the underlying rate math. It is aimed at developers and crypto-savvy users interested in fixed-income style products within decentralized finance.

Yoink these prompts

Prompt 1
Explain how Tenor's principal token and yield token split works using its PT(x) + YT(x) = x formula.
Prompt 2
Walk me through connecting a Freighter wallet to the Tenor testnet app and locking in a fixed rate.
Prompt 3
How does Tenor's time-decay rate AMM keep the implied fixed rate stable as maturity approaches?
Prompt 4
Write a summary of Tenor's carry vault strategy for someone new to fixed-income DeFi concepts.

Frequently asked questions

wtf is tenor?

Tenor lets Stellar users split a variable-yield crypto asset into a fixed-return token and a rate-speculation token, so savers can lock in a guaranteed return.

What language is tenor written in?

Mainly TypeScript. The stack also includes TypeScript, Rust, Soroban.

What license does tenor use?

MIT license, use, modify, and distribute freely including commercially, with attribution.

How hard is tenor to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is tenor for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.