Technical Doc
Unaxi Technical Documentation
1. Introduction
UnaxiGold (symbol: UXG) is a blockchain-based digital asset designed for the Unaxi fintech ecosystem. The primary network is Polygon, with plans to support BSC (Binance Smart Chain), TRX (TRON), and other popular networks in future phases. The platform provides a centralized exchange (CEX) for buying, redeeming, and managing tokens, supporting multiple cryptocurrencies for purchases (via Oxapay and NOWPayments) and stablecoins (USDT, USDC, DAI) for redemptions. Tokens are dynamically minted during purchases and burned during redemptions. A 3-month pre-sale period offers a guaranteed 5% monthly profit (15% total), with tokens locked until the period ends and profits distributed as UnaxiGold tokens. Public and private dashboards provide transparent insights into transactions, profits, and funds. All platform interfaces, including the website, panels, and dashboards, are exclusively in English. This document outlines the technical specifications of the token, exchange architecture, software components, and security measures.
2. Technical Architecture
2.1. Smart Contract
Programming Language: Solidity (version ≥0.8.0).
Standard: ERC-20 with OpenZeppelin extensions (
AccessControl
,Pausable
,ERC20Burnable
).Networks:
Primary: Polygon Mainnet (tested on Polygon Mumbai).
Future Phases: BSC, TRX, and other popular networks.
Features:
Dynamic Minting: Tokens minted during purchases by the CEX (
MINTER_ROLE
), calculated based on input cryptocurrency value (USD equivalent via Oxapay/NOWPayments).Burning: Tokens burned during redemption by
BURNER_ROLE
or users (with unlocked balance check), reducing circulating supply.Token Locking (Vesting): Pre-sale tokens locked for 3 months (~5,184,000 blocks on Polygon, assuming 2 seconds/block). Locking via dedicated single/batch functions, released post-period.
Pre-Sale Profit: 5% monthly profit (15% total for 3 months) minted as tokens at period end by
SALE_MANAGER_ROLE
.Fee: 2% fee for buy/redemption applied off-chain in the CEX.
Access Control: Roles include
MINTER_ROLE
(minting),BURNER_ROLE
(burning),SALE_MANAGER_ROLE
(pre-sale management), andDEFAULT_ADMIN_ROLE
(overall control and pausing).Pause Functionality: Pause/resume transactions for security (
DEFAULT_ADMIN_ROLE
).
Supply Management:
Circulating supply tracked via a dedicated variable.
No fixed initial supply (dynamic minting based on demand).
Pre-Sale Profit:
Calculation: Locked tokens × 15% (5% × 3 months).
Example: 1,000 locked tokens = 1,150 tokens at period end (1,000 + 150 profit).
Profits minted by CEX and credited to user wallets.
Security:
OpenZeppelin libraries to mitigate vulnerabilities (e.g., reentrancy).
Initial testing with Mythril/Slither.
Deployment:
Test: Polygon Mumbai (gas ≈ 0.01 USD/tx).
Live: Polygon Mainnet (gas ≈ 0.05-0.1 USD).
Future: BSC (gas ≈ 0.01-0.05 USD), TRX, and others.
Tools:
Hardhat/Truffle for development, testing, and deployment.
OpenZeppelin for secure contracts.
2.2. Centralized Exchange (CEX)
Type: Internal CEX for transaction, minting, and redemption management.
Components:
Backend: Node.js or Python (Django/Flask) for transaction processing, token minting calculations, and pre-sale profit management.
Frontend: React/Vue.js for user/admin panels and dashboards (in English).
Databases:
MongoDB: Transaction logs and historical reports.
PostgreSQL: User data, pre-sale details, and profits.
Redis: Real-time data (prices, profits).
Wallet Integration: Web3.js/Ethers.js for connecting to Metamask, Trust Wallet, WalletConnect.
Payment Gateways:
Oxapay (https://oxapay.com/): Supports cryptocurrencies (BTC, ETH, BNB, USDT, etc.).
NOWPayments (https://nowpayments.io/): Supports similar cryptocurrencies.
Redemption: Supports stablecoins (USDT, USDC, DAI) with USD-equivalent calculations.
Fee: 2% for buy/redemption, applied in backend.
Scalability: Message Queue (RabbitMQ), cloud servers (DigitalOcean/AWS).
2.3. Software Components
2.3.1. User Panel
Purpose: Interface for users to manage purchases, redemptions, and view pre-sale/profit details, entirely in English.
Features:
Wallet Connection: Supports Metamask, Trust Wallet, WalletConnect, Coinbase Wallet, and SafePal via Web3.js/Ethers.js.
Token Purchase: Select cryptocurrency (BTC, ETH, USDT) via Oxapay/NOWPayments, display real-time token price, calculate tokens (e.g., 1 ETH ≈ 3,000 USD = 3,000 tokens with 2% fee).
Token Redemption: Select stablecoin (USDT, USDC), display redeemable tokens (post-3-month lock), and calculate USD equivalent.
Pre-Sale Info: Displays pre-sale start/end dates, locked tokens, and projected profit (e.g., 1,000 tokens = 150 tokens profit).
Transactions: List of buy/redemption transactions with details (amount, fee, timestamp, blockchain TXID).
Profile Management: Manage user info (email, username), enable 2FA, and view wallet balance.
Technologies:
Frontend: React with Tailwind CSS for responsive, user-friendly design (English-only).
Backend: RESTful API for database and smart contract interaction.
Real-Time: WebSocket for updating prices and balances.
2.3.2. Admin Panel
Purpose: Management of CEX, transactions, and pre-sale by the admin team, in English.
Features:
User Management: View/edit user profiles, block accounts for violations.
Transaction Management: Approve/cancel buy/redemption transactions, review Oxapay/NOWPayments logs.
Pre-Sale Management: Set pre-sale period (start/end), allocate 15% profits, and mint profit tokens.
Smart Contract Control: Execute
mint
,burn
,lockTokens
,releaseTokens
via respective roles.Monitoring: Real-time display of circulating supply, locked tokens, and transaction volume.
Reports: Financial reports (2% fees), pre-sale reports, and security logs.
Technologies:
Frontend: React with Material-UI for professional admin interface (English-only).
Backend: GraphQL for complex queries, Node.js for fast processing.
Security: Multi-factor authentication (2FA + OTP), Role-Based Access Control (RBAC).
2.3.3. Public Dashboard
Purpose: Provide transparency to all users and investors, in English.
Features:
Displays total funds (from MetaTrader/Alpaca APIs).
Shows minted/burned tokens (from smart contract).
Real-time token price: Based on market data (CoinGecko API or brokers).
Transaction volume: Total buy/redemption volume (daily, weekly).
Pre-sale stats: Number of locked tokens, participant count, and pre-sale end date.
Technologies:
Frontend: React with Chart.js/Recharts for real-time charts (line, bar).
Backend: RESTful API, Redis for real-time data caching.
Real-Time: WebSocket for price and stats updates.
2.3.4. Private Dashboard
Purpose: Personalized data for users, in English.
Features:
Pre-Sale Info: Start/end dates, locked tokens, projected profit (e.g., 1,000 tokens = 150 tokens profit).
Wallet Balance: Free/locked tokens (via
getUnlockedBalance
contract function).Transactions: Buy/redemption list with details (amount, fee, timestamp, TXID).
Profits: Display of 15% pre-sale profit and distribution date.
Technologies:
Frontend: React with Tailwind CSS.
Backend: GraphQL for user-specific queries, PostgreSQL for personal data.
Real-Time: WebSocket for balance and profit updates.
2.3.5. Wallet Support
Purpose: Enable connection with popular wallets for buying/redeeming.
Supported Wallets:
Metamask: Configured for Polygon (later BSC, TRX).
Trust Wallet: Multi-network support.
WalletConnect: Connects mobile/desktop wallets.
Coinbase Wallet: For users of major exchanges.
SafePal: For security-focused users.
Technical Details:
Integration: Web3.js/Ethers.js for wallet and smart contract interaction.
Networks: Auto-configured RPC for Polygon (Mumbai/Mainnet), extensible to BSC/TRX.
Security: Contract address verification via unaxi.com to prevent phishing.
Usage: Users connect wallets, select Polygon (or future networks), and sign transactions (buy/redemption).
2.3.6. Profit Reports
Purpose: Detailed reporting of pre-sale profits for users and admins, in English.
Features:
Users: Displays 5% monthly profit (15% total) in private dashboard, with details (token amount, calculated profit, distribution date).
Admins: Comprehensive report of allocated profits, pre-sale participants, and minted profit tokens.
Format: Table/chart with time filters (monthly, entire period).
Technologies:
Database: PostgreSQL for profit data, MongoDB for logs.
Frontend: Recharts for profit charts.
Backend: RESTful API for profit calculation and display.
2.3.7. Pre-Sale Reports
Purpose: Transparency on pre-sale status, in English.
Features:
Public: Locked token count, participant numbers, and pre-sale end date (in public dashboard).
Private: User’s locked tokens, projected profit, and time until release.
Admin: Detailed report on participation, minted tokens, and allocated profits.
Technologies:
Database: PostgreSQL for pre-sale data.
Frontend: Chart.js for pre-sale charts.
Backend: GraphQL for complex queries.
2.3.8. Payment Gateway Transaction List
Purpose: Transparent display of Oxapay/NOWPayments transactions, in English.
Features:
Users: List of buy transactions (input currency, token amount, 2% fee, timestamp).
Admins: Full transaction report (currency, amount, status: confirmed/canceled, TXID).
Filters: By date, currency, or gateway (Oxapay/NOWPayments).
Technologies:
Integration: Oxapay/NOWPayments APIs for transaction logs.
Database: MongoDB for logs, Redis for real-time.
Frontend: Interactive tables with React-Table.
2.3.9. Ticketing and Support
Purpose: Fast user support for technical, transaction, or pre-sale issues, in English.
Features:
Ticket Submission: Users submit tickets for issues (e.g., wallet or transaction problems).
Categories: Technical, financial, pre-sale, or general.
Response: Admins reply via admin panel, with email/panel notifications to users.
Status: Pending, resolved, or closed.
Live Chat: Integration with tools like Tawk.to or Intercom for real-time support.
Technologies:
Frontend: React for ticket forms and live chat.
Backend: Node.js with MongoDB for ticket storage.
Notifications: Email (SendGrid) and panel messages.
2.3.10. Help Section
Purpose: Educate users on platform usage and address common questions, in English.
Features:
Guides: Text/video tutorials for wallet connection, buying/redeeming, and profit checking.
FAQ: Covers pre-sale, fees, and stablecoins.
Search: Quick search within help content.
Technologies:
Frontend: React with Next.js for fast static page rendering.
Content: Markdown for articles, Vimeo/YouTube for videos.
Search: Algolia or Elasticsearch for fast search.
2.4. Security
Purpose: Ensure platform, user data, and transaction security to build trust and transparency.
Features:
Data Encryption:
AES-256 for sensitive data (user info, transaction logs).
End-to-end encryption for frontend-backend communication (HTTPS/TLS 1.3).
Key Management:
CEX private keys stored in HSM (Hardware Security Module) or AWS KMS.
Separate keys for smart contract roles (
MINTER_ROLE
,SALE_MANAGER_ROLE
).
Authentication:
2FA: Google Authenticator/Authy for users and admins.
RBAC: Role-based access for admins (e.g., only
SALE_MANAGER_ROLE
manages pre-sale).OAuth 2.0: Optional secure login via Google/Telegram.
Smart Contract Security:
OpenZeppelin libraries to prevent vulnerabilities (e.g., reentrancy, overflow).
Initial testing with Mythril/Slither.
Pausable contract for emergency scenarios.
CEX Protection:
Web Application Firewall (WAF) via Cloudflare to prevent DDoS attacks.
Rate Limiting to block brute-force attacks.
Real-time monitoring with Prometheus/Grafana for intrusion detection.
Wallet Security:
Contract address verification via unaxi.com to prevent phishing.
User-signed transactions in wallets (Metamask, WalletConnect).
Transparent Logs:
All transactions (buy, redemption, mint, burn) logged in MongoDB with timestamp and TXID.
Public dashboard displays minted/burned tokens and circulating supply.
Backup and Recovery:
Daily encrypted database backups (PostgreSQL/MongoDB) on cloud servers.
Emergency recovery protocol for CEX keys (stored in HSM).
Penetration Testing:
Periodic testing with OWASP ZAP and Burp Suite.
Bug bounty program to identify vulnerabilities via community.
Transparency:
Public dashboard for circulating supply, funds, and transactions.
Open APIs (with restricted access) for developers to verify public data.
Periodic pre-sale and profit reports published on unaxi.com.
2.5. Broker Integration
API: REST/WebSocket for MetaTrader/Alpaca.
Database: TimescaleDB for time-series data.
Purpose: Fetch market data for token pricing.
3. Token Purchase Process
3.1. Preparation
Install wallet (Metamask, Trust Wallet) and add Polygon network (later BSC, TRX).
Acquire cryptocurrency (BTC, ETH, USDT) and transfer to wallet.
3.2. Purchase via CEX
Access unaxi.com and connect wallet.
Select cryptocurrency via Oxapay or NOWPayments, view token price.
Enter token amount, tokens minted by CEX (
SALE_MANAGER_ROLE
), locked for 3 months in pre-sale.Apply 2% fee (e.g., 60 USD for 3,000 USD) + gas (~0.05 USD on Polygon).
Tokens credited and displayed in private dashboard (amount, lock date, projected profit).
4. Token Redemption Process
4.1. Preparation
Check balance and ensure tokens are unlocked (post-3-month lock).
Connect wallet to CEX.
4.2. Redemption
Select stablecoin (USDT, USDC) and view price.
Enter token amount, tokens burned by CEX (
SALE_MANAGER_ROLE
), USD equivalent paid (e.g., 1,150 tokens = 1,127 USD after 2% fee).Stablecoin credited and displayed in private dashboard.
5. Token Acquisition Process
Via purchase (Section 3).
Pre-Sale: Tokens locked, 15% profit (5% monthly) minted after 3 months.
Displayed in private dashboard: Pre-sale dates, locked tokens, profit.
6. Resources
OpenZeppelin
Oxapay (https://oxapay.com/)
NOWPayments (https://nowpayments.io/)
Unaxi Website (unaxi.com)
Last updated