Web3 Learning

What Are Smart Contract Use Cases?

By Safeheron Team

What are smart contract use cases? Common ones include lending, token swaps and insurance in decentralized finance, issuing and trading stablecoins and tokenized assets, conditional payments and securities and FX settlement, and managing funds with multisig contracts. What these use cases share is that the rules are written in on-chain code and executed automatically by a smart contract when conditions are met, with no intermediary handling each transaction.

How Are Smart Contracts Used in Decentralized Finance (DeFi)?

Decentralized finance is the most typical use of smart contracts. Ethereum’s official overview of DeFi explains that it uses cryptocurrencies and smart contracts to provide financial services without intermediaries, with a smart contract taking the place of the financial institution in a transaction: the contract can hold funds and send or refund them based on conditions, and once it is live no one can change its logic. The documentation’s example is an allowance contract that sends money from Account A to Account B every Friday, and only does so as long as Account A has enough funds.

Lending is one category. The Ethereum documentation divides decentralized lending into peer-to-peer and pool-based models; in the latter, lenders put funds into a pool that borrowers can draw from. Borrowers do not have to identify themselves, but they must post collateral, which goes to the lender automatically if the loan is not repaid. Flash loans go a step further: the loan is taken out and repaid within the same transaction, and if it cannot be repaid, the whole transaction reverts as if nothing had happened.

Swaps and insurance are two more. Decentralized exchanges (DEXs) let users swap between tokens at any time, keep control of their assets throughout, and never close. Decentralized insurance automates payouts, and the data used to decide claims is open for anyone to check; the Ethereum documentation notes that most products currently focus on covering users against losses from software bugs, while some projects are building coverage for smallholder farmers in Kenya against drought and flooding.

How Do Stablecoins and Tokenized Assets Use Smart Contracts?

Tokens on Ethereum are themselves smart contracts. According to the Ethereum documentation on the ERC-20 standard, tokens can represent virtually anything, including financial assets such as company shares, fiat currencies such as the US dollar, and gold. ERC-20, proposed by Fabian Vogelsteller in November 2015, defines a common interface for tokens within smart contracts, covering transfers, balance lookups, total supply, and approving a third-party account to spend a set amount of tokens. Once a contract that implements this interface is deployed, it keeps track of the tokens issued and who holds them. That is why stablecoins and tokenized assets can be issued on Ethereum as token contracts of this kind.

Financial institutions are also testing smart contracts for trading tokenized assets. On November 2, 2022, MAS announced that the first industry pilot under Project Guardian had completed its first live trades: DBS Bank, JPMorgan and SBI Digital Asset Holdings conducted FX and government bond transactions against liquidity pools made up of tokenized Singapore Government Securities, Japanese Government Bonds, Japanese yen and Singapore dollars, and completed a live cross-currency transaction involving tokenized JPY and SGD deposits. MAS explained that DeFi lets institutions transact directly with one another through smart contracts, without financial intermediaries, and that the pilot showed cross-currency trades of tokenized assets can be traded, cleared and settled instantly among direct participants.

How Are Smart Contracts Used in Payments and Settlement?

In payments, smart contracts make “pay only when the condition is met” automatic. The BIS uses supply chains as an example in its 2023 Annual Economic Report: a buyer’s payment can go to the supplier automatically when goods are delivered, or part of it can be released when production reaches a milestone, helping the supplier cover part of its working capital earlier. The working group set up by the Deutsche Bundesbank and Germany’s Federal Ministry of Finance also studied machine-to-machine payments, Internet of Things payments and pay-per-use billing.

In settlement, the BIS points to two directions. In securities trading, delivery and payment can happen at the same moment, which is atomic settlement, reducing the principal risk of one side delivering while the other fails to perform. In foreign exchange, smart contracts that combine multiple currencies with authorized FX providers can bring more currencies onto a common platform for payment-versus-payment settlement at lower cost. Smart contracts controlling how funds move under conditions are also the foundation of programmable money.

How Do Businesses Use Smart Contracts to Manage Assets?

The most common tool is the multisig contract. According to the Ethereum documentation, a multisig contract requires at least N of M possible signers to approve before a transaction executes, with 3-of-5 and 4-of-7 being common setups. It splits responsibility for execution and key management among several parties, so losing a single private key does not mean irreversible loss of funds, which makes it suitable for accounts holding large amounts and for simple DAO governance. Adding rules such as spending limits and allowlists to the account contract turns it into a smart contract wallet.

Businesses using these tools also need to control the signing step. The ERC-20 approval function lets a third-party account spend a set amount of tokens, and if signers do not understand who they are approving and for how much, they are exposed to the risk of blind signing. Smart contract wallets can also be paired with off-chain key management, for example by making MPC accounts managed by a WaaS the signers of a multisig contract.

Conclusion

Smart contract use cases span DeFi lending, swaps and insurance, the issuance and trading of stablecoins and tokenized assets, conditional payments and securities and FX settlement, and multisig fund management for businesses. Whatever the use case, signing and key management are central to security. Safeheron’s MPC Wallet-as-a-Service provides businesses with MPC key management and a policy engine.

Where is your business using smart contracts today?

Contact Safeheron’s Sales Team to Book a 1:1 Demo

Share

Looking for a secure way to manage digital assets?

Talk to our experts and find the right solution for your business.

Request a Demo