Urbanium is a production-ready decentralized finance protocol built on Solana, designed for capital efficiency and sustainable yield generation. The protocol combines single-asset vaults with oracle-priced swaps and adaptive yield routing to create efficient markets while maintaining complete non-custodial security.
Urbanium operates through three interconnected systems that work together to provide optimal capital efficiency:
Any user can initialize a new vault by specifying the underlying asset. The program derives a unique PDA for the vault and its authority using deterministic seeds. No admin keys are involved in this process.
Users transfer assets directly to the vault PDA. The program mints vault tokens representing proportional ownership. All deposits are atomic and immediately reflected on-chain.
The yield router analyzes available strategies and executes rebalancing operations. All yield accrues directly to vault token holders proportionally. The vault authority signs these transactions programmatically.
Users can redeem vault tokens at any time to receive their proportional share of vault assets including accrued yield.
The oracle adapter layer integrates multiple external price feeds to ensure accuracy and prevent manipulation:
Multiple oracle sources are queried simultaneously. The adapter calculates a confidence-weighted median price, discarding outliers that exceed deviation thresholds.
Different oracles may use different decimal precision and quote currencies. The adapter normalizes all prices to a standard format with consistent decimal places.
Before executing swaps, the adapter verifies price freshness, confidence levels, and deviation from TWAP. Any swap failing these checks is rejected to protect user funds.
The adaptive yield router employs sophisticated algorithms to maximize risk-adjusted returns:
The router continuously monitors available DeFi protocols on Solana, analyzing current APYs, historical performance, TVL, and smart contract risk scores.
Using modern portfolio theory, the router calculates optimal allocations across multiple strategies to maximize expected returns while minimizing correlation and concentration risk.
When market conditions change or better opportunities emerge, the router executes rebalancing transactions. Gas costs are factored into rebalancing decisions to ensure net positive returns.
All vault authorities are PDAs with no corresponding private keys. No individual or entity can unilaterally access user funds. Only the program logic can sign transactions.
Different PDAs control different operations. Vault PDAs hold assets, vault authority PDAs sign yield operations, and user position PDAs track ownership. This separation limits attack surface.
All program operations follow explicit, auditable code paths. There are no admin functions, upgrade authorities are renounced post-deployment, and all logic is transparent and verifiable on-chain.
pub struct Vault {
pub authority: Pubkey, // Vault authority PDA
pub token_mint: Pubkey, // Underlying asset mint
pub total_shares: u64, // Total vault tokens minted
pub total_assets: u64, // Total underlying assets
pub bump: u8, // PDA bump seed
}pub struct UserPosition {
pub owner: Pubkey, // User wallet address
pub vault: Pubkey, // Associated vault
pub shares: u64, // User's vault tokens
pub last_deposit: i64, // Timestamp of last deposit
}The protocol implements comprehensive error handling to ensure safe operations:
Need help or have questions?