ViralTrust

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

ETHGlobal CannesShipped July 4, 2025Prize winner#defi#privacy#flow
Visit Repo
ViralTrust banner

About

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.

Prizes

  • Flow · Best Killer App on Flow · 3rd place

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

TrustMint

TrustMint brand loyalty with on-chain reward tokens your customers can mint, redeem, and flex

Reputable.Network

Reputable is a hybrid reputation protocol empowering Web3 protocols to build and monetize custom on-chain reputation models, leveraging both on-chain and off-chain data.