project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

ViralTrust

ViralTrust rewards referrals with swappable points and tracks growth transparently on-chain.

ViralTrust

Created At

ETHGlobal Cannes

Winner of

Flow Foundation

Flow - Best Killer App on Flow 3rd place

Project Description

ViralTrust is a decentralized loyalty and referral platform built for the tokenized future of brand engagement. It allows brands to issue their own ERC-20 loyalty tokens, reward users for referrals, and let users swap points across brand ecosystems. Every action—from referral link generation to point redemption—is recorded on-chain, enabling full transparency and user ownership.

Brands launch campaigns with branded reward tokens. Users generate unique referral links and earn tokenized rewards when those links are clicked. Loyalty points can be converted into stable assets (e.g. USDF) or swapped for other brand tokens, creating a fluid and interoperable reward system. The entire loyalty engine is designed to be verifiable, composable, and user-centric.

With ViralTrust, trust is rebuilt, virality is measurable, and loyalty becomes portable across the open economy.

How it's Made

ViralTrust is built using Solidity for the core smart contract logic, including a Rewarder contract for emitting on-chain referral reward events and a full lightweight AMM (Automated Market Maker) system inspired by Uniswap v2.

The key smart contracts include:

BrandPoint.sol: an ERC-20 contract used by brands to mint loyalty points.

ViralTrustFactory.sol: manages creation of token pairs (e.g., BrandPoints <-> USDF).

ViralTrustPair.sol: implements swapping and liquidity logic for token pairs.

Rewarder.sol: a minimal contract that logs reward events tied to referrals.

All contracts are deployed to an EVM-compatible testnet. The primary Rewarder contract (0x2De93D4B9c39CC2AAd10CCe26D8e2e9d06aa1A4b) is called from the backend during referral actions using a Node.js script triggered by the application.

The backend tracks users, campaigns, and referrals using. Frontend views are rendered server-side, and referral tracking is implemented via a JS snippet embeddable on brand sites. Points are simulated in a Web2 UI, but the reward triggers are on-chain.

Web3 integration is handled through a lightweight Node.js script using ethers.js, and the backend securely manages the private key to send reward transactions programmatically.

This architecture enables rapid prototyping while maintaining a clear path toward full decentralization.

background image mobile

Join the mailing list

Get the latest news and updates