Typical use-cases
Workflows lend themselves to almost every facet of engineering, but especially so with DeFI where there is always some degree of one-way or two-way sync required.
We cover some loose examples of where workflows make sense below, but remember this is just the tip of the iceberg!
Do you have a project or dApp where you think Wundaflow could help? please reach out to us to set up an exploratory call.
You can build entire apps on Wundaflow or simply use it to orchestrate blockchain events using your own serverless functions under your own self-managed cloud account.
GameFi
GameFi is the intersection of Gaming and Finance and covers a wide spectrum including play-to-earn and bet-to-earn games.
Automation with robust workflows is imperative to the success of many projects in this space as missed events, unreliable mechanics or poor UX can leave them dead in the water.
Typical use-cases:
NFT games can use time-based triggers to execute workflows that start or end new rounds, decide winners or even inject randomness into battles.
Once a user has initiated a game play with a smart contract transaction/method call, the game often needs to respond. Workflows can monitor contract addresses and, using logic triggers, complete any required tasks (such as calling server-less functions, fetching real-world data or sending notifications).
Automatically generate a custodial wallet for each user and attach logic-based workflows based on interaction to/from that wallet address.
Gaming
A fictional game - Planet of Warcraft - wants to enable custodial asset ownership and develop a trade marketplace outside of the core game.
Each asset class in the game is minted as a unique ERC-721 NFT. For example, there is a Sword contract and an Axe contract. Each Sword or Axe NFT minted can have various traits, including materials, damage inflicted and power multipliers.
The game is a MMORPG (massive(ly) multiplayer online role-playing game) and, as assets are custodial, they could be exchanged between players in a p2p manner entirely transparently to the game operators.
They develop a series of workflows, including:
notify-on-transfer: using a logic trigger. this workflow watches for calls to the
transfer()
method on each asset contract and sends a webhook to their web2 back-end to update the local database.generate-on-mint: as assets can only be created by the game operator, this workflow is executed via API call. It calls a series of AWS Lambda server-less functions to create the asset images and store in S3, generate metadata and store on IPFS, call the asset contract
mint()
method (using a custodial wallet) then sends a webhook to their web2 back-end to update their local database.modify-trait: as assets can gain new/improved traits based on in-game actions, this workflow acts in a similar way to generate-on-mint by updating imagery and metadata for the given NFT using AWS Lambda functions.
Enabling async guaranteed workflows for their blockchain interaction means that Planet of Warcraft can continue their low-latency gameplay while giving players true ownership of their assets - all with some simple outbound API calls and their existing webhook ingest pipeline. A huge win for their engineering team!
Other example gaming use-cases:
Dynamic in-game elements: modify a characters appearance in-game based on how much Eth a player has in their wallet, how many reward tokens they've accumulated, or any other on or off-chain datasource.
Autonomous NFTs (aNFT's): move an NFT between wallets entirely automatically as part of your game mechanics.
... and so much more.
NFT collectibles
Bored Monkey Kayak Club - a purely fictional group - are releasing a new NFT collection, but they want to create a real-time interactive web portal as well as add some features that aren't possible entirely on-chain.
They create the following workflows:
notify-on-mint: this workflow watches their ERC721 contract address on Ethereum and sends a webhook to their application whenever the
mint()
method is called. The webhook updates their local SQL database and keeps their displayed stats fresh.upgrade-on-triple: this workflow is triggered as a sub-flow from notify-on-mint. If the wallet address that mint's an NFT already owns two other NFT's from the collection, they all get upgraded. To achieve this, the workflow calls an AWS Lambda function that re-generates the NFT image using the newly added trait, uploads new metadata to IPFS and then calls the
update()
method on the smart contract. It then sends a webhook to the web2 app to update the users stats.
Dynamic digital assets
Digital assets (NFTs, SBTs. etc) will be fundamental to the next crypto bull run, with new technologies and fresh takes on old technologies being paramount to project success.
Adding an element of dynamism to your game assets or digital passes cannot be simpler using Wundaflow.
Some examples include:
Modify NFT art traits or layers based on real-world data (e.g., change the background if the BTCUSD price hits a given threshold).
Create a revenue stream by selling advertising takeovers of your digital pass creative. Use time-based triggers to add and remove the takeover on a set schedule.
Support paid upgrades by adding a logic trigger on a deposit wallet address to monitor for inbound payments and automatically trigger an upgrade workflow.
Cross-chain payments
While sending payments from one wallet to another on a given chain is trivial, cross-chain payments are still difficult.
Using Wundaflow, a payments workflow could check price feeds using a web scraper task followed by performing an 'auto-swap' on a DEX (such as Uniswap) and then dispersing funds on the target chain.
Alternatively, sending a recurring payment (like a salary or subscription) becomes trivial using a custodial deposit wallet and a long-running workflow with a perpetual loop using a sleep()
call.
Trading bots
While exchange specific trading bots can be reactionary and built entirely on trade feeds over a websocket, most advanced bots will use cross-exchange data as well as non crypto input.
Using Wundaflow it's possible to:
Automate the flow of funds to various exchange accounts based on market conditions.
Execute trades on some exchanges using our exchange connectors.
Incorporate AI models (ChatGPT, Amazon Bedrock, Google Vertex, etc) into your decisions using a connector or serverless function.
Use a timed trigger to execute a workflow based on scraped data from a webpage.
Buy $DOGE whenever Elon tweets about Shiba Inu.
Futures
Use time-based triggers to automate workflows on futures expiry, or maintain real-time price feeds using web scraper data for perpetual futures.
Stablecoins
Using custom workflows and serveless functions, build a completely automated decentralized or algorithmic stablecoin. Peg to another currency using web scraper price feeds or trigger burn/mint worflows to maintain the peg.
DAO / governance
Deploy a live voting application on web2 that updates in real-time using a websocket stream of events from transactions to the voting contract using a logic trigger.
Automatically disperse a DAO treasury fund or manage a portfolio using logic-based triggers and voting mechanics.
Money markets
Use a timed trigger to update a contract with price feeds for dozens of cryptocurrencies from a web scraper deployed as an AWS Lambda function using headless Chrome.
Calculate amortization, collateral and debt and trigger liquidation workflows and user notifications based on custom logic.
Asset management
Manage LP position across DEX by automatically re-balancing positions using automated workflows on time-based triggers. Alternatively, execute trade strategies based on custom logic to ensure optimum execution time for maximum profit and reduced risk.
Yield farming
Depositing assets in order to earn rewards is known as yield farming. A popular type of yield farming utilized by many crypto projects is staking but other types of yield farming exist such as liquidity mining and proof-of-stake participation. A staking pool can easily be deployed on Wundaflow using either a long-running workflow or time-based triggers. In both instances, the idea is to 'lock' deposits for a given period of time and then unlock at a given point in the future. While this could be hard-coded in the contract, doing so removes both flexibility and the option to re-use the deployed contract at a future date.
NFT-backed loans
New financial instruments are being enabled by DeFi all the time. One popular product is loans leveraged using NFT's as collateral.
Using Wundaflow, a workflow could be executed upon deposit of a given NFT that completes an appraisal of the asset value using web crawlers built as AWS Lambda functions. The borrower could then have a period of time to revoke the transaction before the loan is automatically approved. The borrower then has a further period of time to pay back the loan in order to have the NFT returned.
A separate workflow can run on schedule (weekly, daily, hourly) to calculate interest and amend the balance.
Fiat on-ramps
During token sales, users need to carry out multiple steps that are not always simple for those that are not tech-savvy. They may need to get their Fiat onto an exchange, buy some Eth, set up Metamask or Trust Wallet, transfer the Eth from the exchange to their new wallet address, and then finally they can complete a transaction.
Using a typical PSP (payment service provider) you can simplify on boarding customers using your web2 application and trigger a workflow that automatically sends the tokens to the users address.
Sports prediction markets
Blockchain-based sports betting is new and exciting space. Users can speculate on outcomes in various sporting events including soccer, basketball, motorsports and even drone racing.
Time-based workflows can be triggered to immediately settle the results of sporting outcomes, disperse funds and close markets using external API calls, data collected from web scrapers or other methods.
SaaS credits
Typically, a utility token is used to pay for a service, either via subscription or via one-off payments. In either scenario, a barrier to entry - especially with micro-payments - is often the high gas fees on those transactions, that may occur regularly.
Using the Global KV Store and an on/off ramp smart contract, much of those high gas fees can be mitigated by converting crypto payments into service credits instead.
A user sends funds to the smart contract address, which is converted into credits and the credit balance is then stored in the KV Store. This is accessible by both the workflows and your web2 app via API calls.
As credits are consumed, the balance is updated. If the user wishes to withdraw credits then they can do so at any time, but while the credits are in use there are zero gas fees to contend with.
Wundaflow itself uses this very method with our $WUNDA token.
Bridges / atomic swaps
Bridging between chains and even between tokens on the same chain is still difficult to achieve for many projects in a secure but controlled way. Using Wundaflow however, you can utilize our guaranteed execution workflows to trigger your own serverless functions to ensure 100% control over the bridging rules and authorizations.
Tokenized RWA (real-world assets)
Trigger on-chain actions from real-world events and facilitate trading of tokenized assets on primary and secondary markets by utilizing automated workflows.
Tokenization is set to make huge strides during 2024 and 2025 as laws and related legal processes catch up with the fast-paced world of blockchain. Tokenized RWA's will start to become commonplace in real-estate and fractional ownership situations such as corporate shares, physical collectibles, music royalties, venture capital, patents, luxury goods and more.
Reward token automation
Easily build reward token mechanics into existing utility tokens/ecosystems by implementing a cross-chain reward workflow triggered every time a wallet interacts with your existing contract.
This is often very difficult to build into contracts that have already been deployed but using Wundaflow it becomes as simple as creating a watch trigger. No elongated 'claim' processes for your users and no extra support load this brings to your team; just instant airdrops. Our own $WUNDX rewards token is (obviously!) powered by Wundaflow.
Last updated