Back to Case Studies
Blockchain

TRC20 DeFi Platform — eMarsCoin

A full-stack decentralised finance platform built around the eMarsCoin TRC20 token on the Tron blockchain, with token creation, staking, peer-to-peer DEX trading, multi-currency deposits and withdrawals, KYC verification, referral and MLM tracking, and cross-platform delivery across web and mobile.

TronBlockchain network
TRC20Token standard
Web + iOS + AndroidPlatform coverage
DEX + StakingCore DeFi modules

Technologies Used

TronTRC20WebiOSAndroidDEXStaking

PROJECT OVERVIEW

What was built

We designed and developed a comprehensive decentralised finance platform centred around the eMarsCoin TRC20 token on the Tron blockchain. The platform enables users to create and manage custom tokens, stake assets for rewards, trade peer-to-peer on a built-in DEX, and manage multi-currency deposits and withdrawals - all within a secure, KYC-verified environment available on web and mobile.

Smart contracts

Token creation, staking logic, DEX escrow, and order matching deployed on the Tron blockchain.

Decentralised exchange

P2P order book with buy/sell matching, secure escrow service, and real-time market data.

Staking engine

1-year token lock-up with smart-contract-managed reward accrual and unstaking at maturity.

Multi-crypto wallet

Deposit and withdrawal support for multiple cryptocurrencies with KYC gating on all actions.

Admin dashboard

User management, KYC review, transaction monitoring, fee configuration, and CMS content editor.

Flutter mobile apps

iOS and Android apps mirroring all web features — built with Flutter, Dart, and GetX.

Referral & MLM

Multi-level referral system with level-wise bonus tracking, analytics, and admin oversight.

KYC & 2FA

Identity verification and two-factor authentication gating all key financial actions platform-wide.

Layer 1 - BLOCKCHAIN & SMART CONTRACTS

Smart contract architecture

The entire financial logic of the platform — token management, staking rewards, DEX trade settlement, and balance tracking — lives on-chain in audited, gas-optimised Solidity smart contracts deployed to the Tron network. This ensures full transparency, non-custodial fund management, and trustless operation for all users.

1

TRC20 Token Creation & Deployment

Defined and deployed custom TRC20 tokens on the Tron blockchain — including token name, symbol, total supply, decimal configuration, and ownership parameters. Each token is fully managed via smart contract with minting and burn capabilities where applicable.

Solidity · TRC20 standard · Tron blockchain · Token deployment

2

Staking Smart Contract

Built a staking contract allowing users to lock up tokens for a 1-year period and earn rewards calculated by the staking logic. The contract handles lock-in enforcement, reward accrual calculations, and safe unstaking at maturity — all without custodial involvement.

Lock-up logic · Reward calculation · Unstaking at maturity · Non-custodial

3

Decentralised Exchange (DEX) Contract

Developed a peer-to-peer DEX contract supporting the full order lifecycle — creating buy/sell orders, matching orders by price and quantity, and settling trades via a secure escrow mechanism. Funds are held in smart contract escrow until both sides of a trade are fulfilled, eliminating counterparty risk.

P2P order book · Order matching engine · Escrow service · Counterparty protection

4

Deposit & On-Chain Balance Management

Implemented multi-cryptocurrency deposit functionality within the smart contract layer, with individual token balance tracking per user. All balances are maintained on-chain, ensuring full transparency and eliminating reliance on off-chain balance records for financial operations.

Multi-crypto deposits · On-chain balance tracking · Transparent ledger

5

Security & Gas Optimisation

All smart contract code was written with hardened security practices — protection against reentrancy attacks, integer overflow/underflow vulnerabilities, and denial-of-service attack vectors. Gas optimisation was applied throughout to minimise transaction costs on the Tron network without sacrificing functionality or security.

Reentrancy protection · Overflow guards · DoS prevention · Gas optimisation

Layer 2 - ADMIN PANEL

Administrative dashboard

The admin panel gives platform operators full visibility and control over every aspect of the system — from user KYC management to fee configuration, transaction monitoring, and CMS content updates.

01

Dashboard & analytics

  • Interactive overview of system activity and user statistics
  • Real-time key metrics and transaction volume reporting
  • Report generation on user activity and trade volumes
02

User & KYC management

  • List, search, and filter all registered users
  • Review and approve or reject KYC submissions
  • User account controls and status management
03

Order & token management

  • View total token supply and distribution reports
  • Monitor all buy/sell orders across the DEX
  • Transaction histories for staking, deposits, and withdrawals
04

Fee & coin configuration

  • Set and update deposit and withdrawal fees per coin
  • Configure trading fees for all DEX operations
  • Manage supported coins and their system parameters
05

Referral & MLM oversight

  • View referral trees and multi-level bonus tracking
  • Monitor all users involved in each referral chain
  • Audit bonus distribution and total referral earnings
06

CMS & system settings

  • Edit Terms & Conditions, Privacy Policy, Refund Policy, MLM Info pages
  • View all Contact Us form submissions from the website
  • Manage system-wide configuration and platform settings

Layer 3

Frontend user interface

The user-facing web application provides a clean, KYC-gated interface for all platform financial functions — built with React.js, Redux, and Tailwind CSS for a fast, responsive experience across all screen sizes.

Exchange & DEX interface

  • Real-time order book and live market data display
  • Buy/sell eMarsCoin with order placement and management
  • KYC verification required before placing any orders
  • Full order history and active order status tracking

Staking dashboard

  • Stake tokens for 1-year lock-up periods via smart contract
  • View current staking status and accrued rewards
  • Unstaking and withdrawal options available at maturity
  • KYC verification required before staking is permitted

Portfolio & wallet

  • Deposit multiple cryptocurrencies into the platform account
  • Withdraw funds with KYC verification enforcement
  • Full transaction history across all asset types and actions
  • eMarsCoin holdings and consolidated balance overview

User authentication & profile

  • Email registration with OTP verification
  • Login with 2FA and full 2FA credential recovery flow
  • KYC submission form and verification status tracking
  • Profile management, password change, and account settings

Refer & earn

  • Level-wise referral benefits clearly displayed
  • Analytics showing earnings across each referral level
  • Integrated API for automatic reward distribution to users

CMS & static pages

  • Terms & Conditions, Privacy Policy, and Refund Policy
  • MLM information page with admin-managed dynamic content
  • Fee display page with live admin-configured rates
  • Contact Us form with email notification to admin and user

Layer 4

Flutter cross-platform mobile apps

The mobile applications are built with Flutter and Dart using a single codebase that delivers native performance on both iOS and Android. All web platform features are fully mirrored in the mobile apps, with a touch-optimised UI and real-time updates throughout.

SEC-01

Flutter cross-platform build

  • Single codebase for iOS and Android using Flutter and Dart
  • State management via GetX for performance and simplicity
  • Mobile-optimised UI mirroring all web platform features
  • Responsive design across all screen sizes and OS versions
SEC-02

In-app wallet

  • Secure in-app wallet for managing all crypto holdings
  • Real-time balance updates across all supported coins
  • Deposit and withdrawal flows with KYC verification checks
SEC-03

Mobile DEX & staking

  • Full DEX interface for trading TRC20 tokens on mobile
  • Staking and unstaking flows optimised for touch interaction
  • Order management with multiple filters and full history
SEC-04

Real-time updates & notifications

  • Live balance, transaction status, and order updates
  • Email notifications for OTP and key account activity
  • Push notification support for trade and staking events
SEC-05

Auth, KYC & 2FA on mobile

  • Secure login with 2FA and full credential recovery
  • In-app KYC document submission and verification status
  • Profile management and password updates within the app
SEC-06

MLM & referral on mobile

  • Refer & Earn with level-wise benefit display
  • MLM reports and multi-level earnings analytics
  • All CMS pages accessible and dynamically loaded in-app

SECURITY ARCHITECTURE

Built to protect user funds and data

Security was treated as a first-class concern at every layer of the platform - from the smart contract code through to the authentication layer and KYC enforcement. The following measures were implemented and verified throughout development.

Reentrancy attack prevention

Smart contracts use checks-effects-interactions patterns and mutex guards to prevent recursive call exploitation by malicious contracts.

Integer overflow & underflow

Safe math libraries and Solidity 0.8+ built-in overflow protection applied throughout all arithmetic operations in the smart contract code.

DoS attack mitigation

Gas limit management and loop restrictions prevent denial-of-service vectors within smart contract execution — protecting the platform from griefing attacks.

Secure authentication

OAuth 2.0 / JWT token management with 2FA enforcement on all high-value actions including withdrawals, staking, and DEX order placement.

KYC verification gating

Identity verification is enforced before users can stake, deposit, withdraw, or place DEX orders — protecting the platform and complying with regulatory expectations.

Escrow-based trade settlement

DEX trades are settled through the smart contract escrow — neither party can access funds until trade conditions are fully and verifiably met on-chain.

TECHNICAL STACK

Technologies used across the platform

Blockchain

Tron / Solidity

TRC20 smart contracts — token creation, staking, DEX escrow

Frontend

React.js + Redux

Tailwind CSS — responsive web application and admin panel

Backend

Node.js + Express

REST API layer integrating smart contracts with web and mobile

Database

PostgreSQL / MySQL

Relational data storage for users, orders, KYC, and transactions

Auth

OAuth 2.0 / JWT

2FA enforcement, KYC gating, role-based access control

Mobile

Flutter + Dart

GetX state management — iOS and Android cross-platform build

Key outcomes

Value delivered

01

Full DeFi ecosystem on Tron

Token creation, staking, DEX trading, and multi-crypto wallet — all deployed on the Tron blockchain in a single integrated platform.

02

Non-custodial by design

Smart contract escrow and on-chain balance management ensure user funds are never held off-chain or under centralised control.

03

Cross-platform reach

Web, iOS, and Android all share the same backend and smart contract layer — delivering a consistent experience across every device.

04

KYC & compliance layer

All financial actions are gated behind KYC verification — ensuring regulatory alignment and reducing platform risk across all user actions.

05

MLM-powered growth engine

Multi-level referral system drives organic user acquisition with transparent, level-wise bonus distribution and real-time analytics.

06

Hardened smart contract security

Every contract was built against reentrancy, overflow, and DoS attack vectors — with gas optimisation applied throughout the codebase.

Other Case Studies

Next-Gen Dispensary Marketing Platform
Marketing

Next-Gen Dispensary Marketing Platform

A fully managed, mobile-first marketing ecosystem built to drive foot traffic, attract new customers, and reward loyal dispensary visitors across Michigan — with less than 10 minutes of operator time per month.

View Case Study
BuyRepos Auctions
Vehicle

BuyRepos Auctions

A full-stack vehicle auction platform handling end-to-end inventory management, multi-role inspection workflows, live weekly bidding, proxy bidding, Stripe-powered invoicing, and a responsive buyer-facing website — built to run repo vehicle auctions at scale.

View Case Study
Converter Bidder
Electronics

Converter Bidder

Converter Bidder offers a platform to easily buy and sell scrap catalytic converters. Create a profile today and start posting items for sale within the app. Allow users to bid on your single or bulk converter scrap. Review and accept the best offer. Converter Bidder provides an easy-to-use system to connect buyers and sellers. Sellers are able to get fair market value for their converter items, while buyers can connect with sellers on a transparent and secure platform. Download the Converter Bidder app today!

View Case Study
MetSocial — Inclusive Dating App
Dating

MetSocial — Inclusive Dating App

A neurodiverse-first dating platform that replaces swipe fatigue with curated personality matching, mental health check-ins, and honesty-driven connections — built to serve the 15–20% of users underserved by mainstream dating apps.

View Case Study
A Multilingual AI content generation tool
AI

A Multilingual AI content generation tool

For Indian creators, sellers, and marketers — generating SEO blogs, Instagram captions, and product titles across 4 languages and 4 tone styles, instantly, in the browser.

View Case Study
Get in Touch

We're interested intalking about your business

100%

Contracts & NDA Protection

Whether you hire individual developers, dedicated teams, or engage us for projects, every engagement is protected by comprehensive legal agreements including NDAs, IP protection clauses, and GDPR/CCPA compliant data handling procedures. Your intellectual property remains 100% yours.

USA Legal Standards
NDA Guaranteed
GDPR Compliant
100% IP Protection