DYNEXA EARNS
DYNEXA turns loyalty points into interoperable, liquid, gamified digital rewards on Web3.
Problem Statement
Dynexa is a Web3 rewards layer built on Base that lets brands turn fragmented loyalty points into interoperable GiftTokens backed by USDC and by our native coin, DYNEXAS. Companies fund onchain treasuries, create campaigns, and issue multi-brand rewards that users earn through purchases, loyalty programs, marketing actions, and social quests. Brands can reward customers either with custom GiftTokens or directly with DYNEXAS, the official token of the ecosystem. GiftTokens can be redeemed at participating merchants, tracked in a simple consumer-friendly dashboard, and traded in a dedicated GiftToken marketplace. Flare acts as a data and yield-intelligence layer, aggregating treasury balances and pricing them in real time, while XMTP powers “Dynexa QuestBoard,” a group-chat miniapp where friends or teams complete missions together and receive real, redeemable rewards onchain.
Solution
Dynexa’s core runs on Base, which we use as the primary execution layer for all user balances, GiftTokens, and treasuries, while Flare powers analytics and yield in the background. On Base we deploy a set of Solidity smart contracts: a CompanyRegistry to onboard brands, an ERC-1155 GiftToken for product-based rewards, a TreasuryVault that escrows USDCS per company and campaign, a DynexaToken contract that manages the native DYNEXA balances, and a DynexaQuestRewards contract used by the XMTP agent to mint rewards. DYNEXA is a soft-pegged utility token inside the Dynexa ecosystem, tracked 1:1 against the USDCS held in our onchain treasuries. When a company deposits USDCS into its Dynexa treasury on Base, it gets “issuance capacity” to distribute DYNEXA and GiftTokens to users. Users earn DYNEXA and GiftTokens through gamification, purchases, loyalty actions, marketing missions and group quests. As long as they stay inside the Dynexa app, they mostly see and spend DYNEXA (the “in-ecosystem” coin). Once a user reaches certain levels or requirements, they can request an exit: the protocol burns their DYNEXA and releases an equivalent amount of USDCS from a dedicated exit pool in the TreasuryVault to a user-controlled external wallet. This keeps users engaged in the Dynexa economy while guaranteeing a clear 1:1 bridge back to stable liquidity when they are ready to leave. Dynexa also runs its own in-app wallets on Base: each user gets a managed wallet (smart account / EOA) that holds their DYNEXA, GiftTokens and, when applicable, USDCS. The app abstracts keys and gas so users don’t have to deal with raw crypto UX, but everything settles on Base. A React frontend and a small Node.js backend talk to these contracts via RPC and, optionally, to Coinbase Developer Platform Data APIs to read treasury balances on Base and surface them in a friendly marketer dashboard. On Flare, we deploy analytics and treasury-helper contracts that use the Flare Data Connector (FDC) to fetch aggregated treasury balances from Base and FTSO price feeds to compute the fiat-equivalent value and performance of Dynexa’s pooled funds. Yield strategies are decided and managed by Dynexa itself, not by individual brands: Dynexa allocates part of the pooled USDCS into Flare-based yield products (DeFi strategies) and uses the generated returns to subsidize new campaigns, bounties for new users, and protocol incentives paid in DYNEXA. Flare is thus an onchain “data and yield brain” that optimizes the shared treasury while Base remains the home for user wallets and day-to-day rewards. For social gameplay, we build an XMTP miniapp plus a chat-resident agent. The agent listens to group messages, infers quest state, and when a quest is completed it calls the DynexaQuestRewards contract on Base to mint GiftTokens or DYNEXA to the user’s in-app wallet. The miniapp shows quests, progress and leaderboards directly inside the chat, tying XMTP messaging to Dynexa’s onchain rewards on Base and the Flare-powered treasury engine running behind the scenes.
Hackathon
ETHGlobal Buenos Aires
2025
Contributors
- themaurixbo
3 contributions