Production-grade Real World Asset (RWA) tokenization platform
Built by Donte Lightfoot | nbaybt.eth
The Primal RWA Vault is a revolutionary DeFi protocol that brings $300+ trillion of real-world assets on-chain. Tokenize physical gold, real estate, vehicles, collectibles, and more into tradeable, composable digital assets.
β Secure Asset Tokenization - Convert physical assets into synthetic PRIM (sPRIM) β Fractional Ownership - Split expensive assets into affordable shares (ERC1155) β Chainlink Oracle Integration - Real-time price feeds for accurate valuations β Multi-Signature Governance - Decentralized role-based access control β Collateral Locking - Assets locked until all tokens are redeemed β Emergency Controls - Pausable for security incidents β Full Redemption - Exchange sPRIM for physical assets anytime
| Category | Examples | Market Size |
|---|---|---|
| Precious Metals | Gold, silver, platinum bars/coins | $12T+ |
| Real Estate | Homes, commercial properties, land | $280T+ |
| Vehicles | Luxury cars, jets, yachts | $2T+ |
| Commodities | Oil, gas, mining rights | $20T+ |
| Financial | Bonds, trusts, insurance policies | $400T+ |
| Collectibles | Art, watches, wine, rare items | $2T+ |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Primal RWA Vault Ecosystem β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β ββββββββββββββββ ββββββββββββββββ β
β β Real Assets βββββΆβ Vault β β
β β (Gold, RE, β β (Custodian) β β
β β Cars, etc.) β ββββββββ¬ββββββββ β
β ββββββββββββββββ β β
β βΌ β
β ββββββββββββββββββ β
β β PrimalRWAVaultβ β
β β (Main Logic) β β
β ββββββββββ¬ββββββββ β
β β β
β βββββββββββββββββββΌββββββββββββββββββ β
β βΌ βΌ βΌ β
β ββββββββββββββ ββββββββββββββ ββββββββββββ β
β β SyntheticPRIMβ β Fractional β β Price β β
β β (sPRIM) β β Shares β β Oracle β β
β β ERC20 β β ERC1155 β βChainlink β β
β ββββββββββββββ ββββββββββββββ ββββββββββββ β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- PrimalRWAVault.sol - Main vault logic with role-based access
- SyntheticPRIM.sol - ERC20 token backed 1:1 by RWAs
- FractionalShares.sol - ERC1155 for fractional asset ownership
- PriceOracle.sol - Chainlink integration for asset pricing
# Clone repository
git clone https://github.com/yourusername/STLNFTART.git
cd STLNFTART
# Install dependencies
npm install
# Copy environment file
cp .env.example .env
# Edit .env with your RPC URLs and private key
# Compile contracts
npm run compile# Run test suite
npx hardhat test
# Run with gas reporting
REPORT_GAS=true npx hardhat test
# Run coverage
npx hardhat coverage# Deploy to Sepolia testnet
npm run deploy:testnet
# Deploy to mainnet (after audit!)
npm run deploy:mainnet
# Verify on Etherscan
npx hardhat verify --network sepolia <CONTRACT_ADDRESS> <CONSTRUCTOR_ARGS>// Deposit 1kg gold bar with custodian
await vault.depositAsset(
0, // PRECIOUS_METALS
"1kg Gold Bar",
"LBMA certified gold bar, serial #12345",
"Brinks Vault, New York",
ethers.id("GOLD-12345"),
custodianAddress,
ethers.parseEther("60000") // $60,000 USD value
);
// Appraiser verifies
await vault.connect(appraiser).verifyAsset(
1, // assetId
ethers.parseEther("60000"),
legalDocHash,
"NY, USA"
);
// Tokenize to sPRIM (1:1 collateral)
await vault.tokenizeAsset(1, 100);
// User now has ~60,000 sPRIM tokens (minus 1% fee)// After depositing and verifying real estate
await vault.fractionalizeAsset(
assetId,
1000 // Create 1,000 shares
);
// Each share = $10,000 worth of property
// Shares are ERC1155 tokens, fully tradeable// Holder of all sPRIM can redeem
await vault.redeemAsset(assetId);
// sPRIM burned, physical asset released from custody- β OpenZeppelin Contracts - Battle-tested libraries
- β ReentrancyGuard - Prevents reentrancy attacks
- β Role-Based Access Control - Multi-sig governance
- β Pausable - Emergency stop mechanism
- β Collateral Locking - Assets can't be withdrawn while tokenized
- β Oracle Integration - Chainlink price validation
DEFAULT_ADMIN_ROLE- System administrator (multi-sig recommended)GOVERNANCE_ROLE- Fee management, liquidationsAPPRAISER_ROLE- Asset verification and reappraisalCUSTODIAN_MANAGER_ROLE- Approve/revoke custodiansEMERGENCY_ROLE- Pause/unpause contract
Recommended auditors:
| Fee Type | Rate | Applied To |
|---|---|---|
| Tokenization | 1% | Asset value at tokenization |
| Custody (Annual) | 0.5% | Asset value (paid to custodians) |
| Transaction | 0.1% | sPRIM transfers |
| Redemption | 2% | Asset value at redemption |
| Liquidation | 5% | Sale proceeds |
- Total Addressable Market: $300+ trillion in real-world assets
- Target Capture: 0.1% = $300 billion TVL
- Annual Revenue (at 0.1% capture): $3+ billion
- Core smart contracts
- ERC20 sPRIM implementation
- ERC1155 fractionalization
- Chainlink oracle integration
- Test suite
- Professional security audit
- Bug bounty program
- Multi-sig setup for governance
- Testnet deployment & testing
- Mainnet deployment
- First custodian partnerships
- Certified appraiser onboarding
- Gold-backed tokens launch
- Real estate tokenization
- Insurance provider integrations
- Secondary market (DEX integration)
- Mobile app
Donte Lightfoot
π ENS: nbaybt.eth π Location: St. Louis, Missouri πΌ Focus: Smart Contracts & DeFi Protocols π Expertise: Blockchain, Web3, NFTs, RWA Tokenization
Current Projects:
- Multi Heart Model
- MotorHandPro
- Quantro Heart Model
- Primal Quant Ecosystem
- RWA Vault (This Project)
Motto: "Recursive Iteration - There's Power in Posterity"
- Blockchain: Ethereum, Solidity, Hardhat, Ethers.js
- Languages: JavaScript, TypeScript, Solidity, Python
- Frameworks: React, Node.js, Next.js
- Tools: Git, Docker, IPFS, The Graph, Chainlink
MIT License - See LICENSE file for details.
Contributions welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
This software is provided "as is" without warranty. Real-world asset tokenization involves complex legal and regulatory considerations. Consult with legal professionals before deploying. The creators are not responsible for any financial losses.
- ENS: nbaybt.eth
- GitHub: github.com/yourusername
- Issues: Submit an issue
Built with β€οΈ by nbaybt.eth
Bridging Traditional Finance and DeFi



