Mini Project
Mini Project
Submitted in partial fulfillment of the requirements for the award of the Degree of
In
Department of CSE (Artificial Intelligence & Machine Learning)
By
An Autonomous Institution
(NBA ACCREDITED B.TECH COURSES: EEE, ECE & CSE, ACCORDED NAAC ‘A’ GRADE)
JUNE 2025
ACE ENGINEERING COLLEGE
ACE
Engineering College
An Autonomous Institution
(NBA ACCREDITED B.TECH COURSES: EEE, ECE & CSE, ACCORDED NAAC ‘A’ GRADE)
(Affiliated to Jawaharlal Nehru Technological University, Hyderabad, Telangana)
Ghatkesar, Hyderabad – 501 301
CERTIFICATE
This is to certify that the Mini Project work entitled BLOCKCHAIN-BASED APPLICATIONS
IN DECENTRALIZED FINANCIAL TECHNOLOGY FOR CRYPTOCURRENCY
EXCHANGE is being submitted by Dandi Koushik (22AG1A6678), Gelli T N S V Vinay Raja
Mohan (22AG1A6687), Momammed Badrul Hasan (22AG1A66A7) in partial fulfillment for the
award of Degree of BACHELOR OF TECHNOLOGY in DEPARTMENT OF CSE (ARTIFICIAL
INTELLIGENCE & MACHINE LEARNING) to the Jawaharlal Nehru Technological University,
Hyderabad during the academic year 2024-25 is a record of bonafide work carried out by them under our
guidance and supervision.
The results embodied in this report have not been submitted by the student to any other University or
Institution for the award of any degree or diploma.
EXTERNAL Examiner
ACKNOWLEDGEMENT
We would like to express our gratitude to all the people behind the screen who have helped
us transform an idea into a real time application.
We would like to express our heart-felt gratitude to our parents without whom, We would not
have been privileged to achieve and fulfill our dreams.
A special thanks to our Secretary, Prof. Y. V. GOPALA KRISHNA MURTHY, for having
founded such an esteemed institution. We are also grateful to our beloved vice principal, Dr.
Malijeddi Murali for permitting us to carry out this project.
We profoundly thank Dr. Kavitha Soppari, Assoc. Professor and Head of the Department of CSE
(Artificial Intelligence & Machine Learning), who has been an excellent guide and also a great source of
inspiration to our work.
We extremely thank, Mrs. S.Satya Sudha, Assistant Professor, Mini Project coordinator, who
helped us in all the way in fulfilling of all aspects in completion of our Mini Project.
We are very thankful to our guide Mr. Chitoor Venkat Rao Ajay Kumar, Assistant
Professor, who has been an excellent and also given continuous support for the completion of our Mini
Project work.
The satisfaction and euphoria that accompany the successful completion of the task would be great,
but incomplete without the mention of the people who made it possible, whose constant guidance and
encouragement crown all the efforts with success. In this context, we would like to thank all the other staff
members, both teaching and non-teaching, who have extended their timely help and eased our task.
DECLARATION
This is to certify that the work reported in the present project titled “BLOCKCHAIN-BASED
APPLICATIONS IN DECENTRALIZED FINANCIAL TECHNOLOGY FOR
CRYPTOCURRENCY EXCHANGE” is a record work done by us in the Department of CSE
(Artificial Intelligence & Machine Learning), ACE Engineering College.
No part of the thesis is copied from books/journals/internet and whenever the portion is taken, the
same has been duly referred in the text; the reported are based on the project work done entirely by us
not copied from any other source.
ABSTRACT
Blockchain initiative focuses on developing a comprehensive Web 3.0 application using React and
Solidity to support the creation of decentralized applications (dApps). Blockchain technology with
intuitive user interfaces, the platform enables secure and seamless cryptocurrency transactions through
Metamask.Emphasizing full-stack development, the initiative provides a structured approach to both
front-end design and smart contract implementation, fostering a deeper understanding of their integration.
Key features include real-time data interactions, robust security protocols inherent to blockchain, and the
capability to develop applications that address real-world challenges. The project aims to bridge the gap
between blockchain technology and user-friendly applications, making decentralized systems more
accessible to a broader audience.
Keywords: Blockchain, Web 3.0, React, Solidity, dApps, Metamask, cryptocurrency transactions, full-
stack development, front-end design, smart contracts, real-time data
INDEX
CONTENTS PAGE NO
1. INTRODUCTION 1
10. ANNEXURE 39
LIST OF FIGURES
CHAPTER 1
INTRODUCTION
In recent years, the financial technology (FinTech) landscape has witnessed a rapid shift
toward decentralized models, driven largely by the emergence of blockchain technology. Traditional
financial systems often rely on centralized authorities, resulting in inefficiencies, higher transaction
costs, and reduced transparency. These limitations have catalyzed the development of decentralized
financial technologies (DeFi), which aim to revolutionize the way individuals interact with financial
services. Powered by blockchain, DeFi applications provide a peer-to-peer framework that eliminates
intermediaries, ensuring greater security, transparency, and accessibility in financial transactions.
Cryptocurrency exchanges form a fundamental component of this ecosystem, serving as the primary
interface for users to trade, invest, and interact with digital assets.
Despite their potential, conventional cryptocurrency exchanges face several challenges,
including centralization risks, security breaches, lack of user control over funds, and limited
interoperability. These issues have highlighted the need for more robust, decentralized alternatives
that leverage the full capabilities of blockchain technology. Smart contracts, deployed primarily on
platforms like Ethereum, offer a powerful solution by automating financial processes without human
intervention. These self-executing contracts enable transparent and secure transactions, reducing the
risk of fraud and enhancing system trustworthiness. Moreover, decentralized exchanges (DEXs) and
DeFi protocols have introduced new mechanisms for liquidity provision, yield farming, and token
swaps—reshaping the financial landscape and promoting financial inclusion.
To address the growing demand for secure and efficient DeFi platforms, this project explores
the development and integration of blockchain-based applications tailored for cryptocurrency
exchanges. It investigates key areas such as scalability, transaction speed, and user experience
(UI/UX), while incorporating security tools to safeguard user data and digital assets. Technologies
like Layer 2 scaling solutions, consensus algorithms, and privacy-preserving techniques are
considered to overcome common blockchain limitations. Furthermore, this project examines how
real-time analytics, decentralized governance models, and community-driven protocols can enhance
transparency and trust within the ecosystem. By focusing on a decentralized architecture, the aim is
to provide a resilient, transparent, and user-centric platform that aligns with the future of financial
innovation.
Department of CSE (Artificial Intelligence & Machine Learning) 1
ACE ENGINEERING COLLEGE
through intuitive interfaces and seamless integration with wallets like MetaMask. A balanced focus
on both backend security and frontend usability is key for sustainable growth.
The frontend is built using React and styled with Tailwind CSS, ensuring a responsive and
modern user interface across devices. To enhance accessibility and convenience, the system integrates
seamlessly with MetaMask for wallet authentication and transaction management. Security analysis
tools such as Slither and MythX are incorporated during the development lifecycle to detect and
mitigate vulnerabilities early. The system architecture supports modular upgrades and incorporates
basic sentiment analysis features for community feedback on transactions or governance proposals.
Overall, the proposed solution aims to bridge usability with blockchain transparency while addressing
existing DeFi limitations.
CHAPTER 2
LITERATURE SURVEY
significantly to understanding DeFi’s transformative potential but stops short of exploring the
technical intricacies of smart contract implementations or proposing specific security solutions.
[5] Title: A Hybrid Approach for Aspect-Based Sentiment Analysis Using Deep Contextual
Word Embeddings and Hierarchical Attention
Feist et al. (2019) introduce Slither, a highly effective static analysis tool tailored for Solidity
smart contracts. Slither can detect over 60 different types of vulnerabilities, including reentrancy
attacks, unchecked return values, and integer overflows. Its modular architecture and plugin support
allow integration into developers’ continuous integration (CI) pipelines, providing fast feedback
during the coding process. Slither’s static analysis approach efficiently identifies many common
issues before deployment, reducing risks of costly post-deployment exploits. However, since it
operates only on static code analysis, it cannot detect vulnerabilities that arise during runtime, such
as those dependent on dynamic contract states or external interactions.
[6] Title: Introduction to Modern Information Retrieval
Mueller et al. (2020) describe MythX, an advanced cloud-based platform offering
comprehensive smart contract security analysis. MythX combines multiple techniques including
symbolic execution, fuzz testing, and taint analysis to detect a broad spectrum of vulnerabilities. It is
designed for integration into continuous deployment workflows, enabling automated security checks
before contract deployment. The platform’s use of dynamic analysis techniques allows it to uncover
vulnerabilities that static analyzers may miss. However, its cloud-based nature requires reliable
internet connectivity and may introduce latency, making it less suitable for rapid iterative testing
during development cycles compared to local tools like Slither.
CHAPTER 3
SYSTEM REQUIREMENTS
CHAPTER 4
SYSTEM ARCHITECTURE
and efficiency. The frontend, developed in React.js with Tailwind CSS, communicates with the
blockchain via Web3.js or Ethers.js, and integrates MetaMask for seamless user authentication and
wallet interaction. A Node.js-based backend may be used for managing non-sensitive off-chain
processes and interfacing with external APIs. The architecture ensures that all critical operations, such
as fund transfers and data immutability, are securely handled on-chain, while off-chain components
handle UI responsiveness and scalability enhancements. This layered design provides robustness,
maintainability, and ease of upgrading to Layer 2 solutions in the future.
CHAPTER 5
SYSTEM DESIGN
5.1 INTRODUCTION TO UML
The Unified Modelling Language (UML) offers software engineers a standardized approach to
visually represent an analysis model, governed by a set of rules that ensure proper syntax, semantics,
and practicality. A UML system is visualized through unique views, each highlighting a different
aspect of the system. These views are outlined as follows:
User Class: The User class serves as the entry point for individuals interacting with the DeFi
system. It contains attributes like address (a string representing the user's blockchain address) and
balance (a uint indicating the user's token balance). The connectWallet() method allows the user to
link their wallet (e.g., via MetaMask) to the system, enabling interaction with the blockchain. The
User class has a one-to-one relationship with the Wallet class, indicating that each user is associated
with exactly one wallet.
Wallet Class: The Wallet class manages the cryptographic operations required for secure
transactions. It includes attributes such as address (a string representing the wallet's blockchain
address) and privateKey (a string storing the wallet's private key for signing transactions). The
signTransaction() method enables the wallet to cryptographically sign transactions, ensuring
authenticity and integrity before they are broadcast to the blockchain. The Wallet class has a one-to-
many relationship with the Transaction class, as a single wallet can sign multiple transactions.
Transaction Class: The Transaction class encapsulates the details of a financial transaction on
the blockchain. It includes attributes like sender (an address indicating the transaction initiator),
receiver (an address for the recipient), amount (a uint specifying the transaction value), message (a
string for optional transaction notes), timestamp (a uint recording the transaction time), and key (a
string for the transaction's cryptographic signature). The class provides methods such as
addToBlockchain() to submit the transaction to the Ethereum blockchain and getAllTransactions() to
retrieve the transaction history, enabling transparency and auditability.
Connect Wallet: The user initiates interaction by connecting their wallet (e.g., MetaMask) to
the system, enabling access to blockchain features.
View Balance: Extending from "Connect Wallet," this use case allows the user to check their
token balance after wallet connection.
Perform Transaction: The user can execute a transaction, such as transferring ETH or other tokens.
View Transaction History: Extending from "Perform Transaction," this use case enables the
user to review their past transactions for transparency.
Send ETH: A specific transaction type where the user sends Ethereum (ETH) to another
address.
• After inputting details, the system moves to Sign Transaction with Wallet, where the
transaction is cryptographically signed using the wallet's private key.
• The signed transaction is then Submitted to Ethereum Testnet.
• Another decision point checks Transaction Processed?:
• If Yes, the system will Update Transaction History to reflect the successful transaction.
• If No, the system will Show Error Message to the user, indicating the transaction failure.
• The process starts when the User sends an initiateTransaction() message to the Frontend.
• The Frontend responds by calling connectWallet() on MetaMask to establish a wallet
connection.
• MetaMask processes the request and returns requestAccounts() to provide the user's account
details.
• The Frontend receives walletConnected(account) confirmation from MetaMask and informs
the User.
• The User then sends a sendTransaction(receiver, amount, message) request to the Frontend,
specifying the transaction details.
• The Frontend forwards this to MetaMask with a signTransaction() request to cryptographically
sign the transaction.
• Once signed, MetaMask sends the transaction to the SmartContract via addToBlockchain().
• The SmartContract submits the transaction to the Ethereum Testnet, which processes and logs
it, returning transactionLogged() to the SmartContract.
• The SmartContract confirms the success back to MetaMask, which relays it to the Frontend.
• Finally, the Frontend notifies the User with transactionSuccess(), indicating the transaction has
been successfully completed.
• Once the user signs, the system transitions to the SubmittedToBlockchain state.
• In the SubmittedToBlockchain state, the transaction is processed:
• If the transaction is successful, it moves to the Confirmed state.
• If the transaction fails, it transitions to the Failed state.
• From the Confirmed state, the system updates the transaction history by transitioning to the
UpdateHistory state, then returns to the Initial State.
• From the Failed state, the system displays an error by transitioning to the ShowError state, then
returns to the Initial State..
• This diagram effectively illustrates the lifecycle of the assistant and how it responds to user
actions or unexpected scenarios.
• user1:User: This instance represents a user in the system with the following attributes:
• address = "0xUserAddr": The blockchain address of the user.
• balance = 1000: The user's token balance, set to 1000 units. The user1 object is linked to the
wallet1 object through a "has" relationship, indicating that this user owns the specified wallet.
• wallet1:Wallet: This instance represents the user's wallet with the following attributes:
• address = "0xUserAddr": The wallet's blockchain address, matching the user's address.
• privateKey = "0xPrivateKey": The private key used for signing transactions. The wallet1 object
is associated with the tx1 object through a "signs" relationship, showing that this wallet signs
the transaction.
• tx1:Transaction: This instance represents a specific transaction with the following attributes:
• sender = "0xUserAddr": The sender's address, matching the user's address.
• receiver = "0xReceiverAddr": The recipient's blockchain address.
• message = "Payment": A note attached to the transaction.
• timestamp = 16257097600: The time the transaction was created, represented as a Unix
timestamp.
The Deployment Diagram illustrates the physical deployment of the DeFi system's
components across hardware nodes, showing how the software artifacts are distributed and interact
during execution on the Ethereum blockchain.
• User Device: This node represents the user's hardware, such as a computer or mobile device,
and contains:
• Browser: The user interacts with the DeFi application through a web browser, which hosts the
frontend interface (built with React and Tailwind CSS, as mentioned in the methodology).
• MetaMask: A browser extension or app on the user device, acting as the user's wallet to
manage Ethereum accounts, sign transactions, and interact with the blockchain via
Web3.js/Ethers.js libraries.
• Smart Contract Node: This node represents the server or environment where the smart contract
is developed, compiled, and deployed. It includes:
• Transactions.sol: The smart contract artifact written in Solidity, containing the logic for
handling transactions (e.g., sending ETH, recording transaction details).
• Hardhat: A development tool used on this node for compiling, testing, and deploying the
Transactions.sol smart contract to the Ethereum Testnet.
• Ethereum Testnet Node: This node represents the blockchain network used for testing the
DeFi application. It contains:
• Ropsten/Goerli: The specific Ethereum test networks (Ropsten or Goerli) where the smart
contract is deployed and transactions are executed. These testnets simulate the Ethereum
mainnet for development purposes.
The Component Diagram illustrates the high-level structure of the DeFi system, showing the
main components, their interactions, and dependencies within the application. It highlights how the
system is organized to facilitate blockchain-based transactions.
• Frontend Component (React, Tailwind): This component represents the user interface of
the DeFi application, built using React for dynamic rendering and Tailwind CSS for styling.
It provides an intuitive and real-time interface for users to interact with the system, such as
initiating transactions and viewing balances.
• Wallet Interface (MetaMask): This component handles wallet-related operations, enabling
users to connect their Ethereum wallet via MetaMask. It manages account access,
transaction signing, and communication with the blockchain, serving as the bridge between
the user and the blockchain network.
• Smart Contract Component (Transactions.sol): This component encapsulates the core logic
of the DeFi system, implemented in the Transactions.sol smart contract written in Solidity.
It handles transaction processing, including sending ETH, recording transaction details, and
ensuring secure execution on the blockchain.
• Blockchain Component (Ethereum Testnet): This component represents the Ethereum
Testnet (e.g., Ropsten or Goerli), the underlying blockchain network where the smart
contract is deployed and transactions are executed. It provides the decentralized
infrastructure for transaction logging and validation..
The Collaboration Diagram (Fig 5.9) illustrates the interactions between objects in the DeFi
system during a transaction process, focusing on the sequence and relationships between the User,
Frontend, Wallet, Transaction, and Ethereum Testnet. It shows how these objects collaborate to
complete a transaction.
CHAPTER 6
CODE IMPLEMENTATION
The entry point of the application (main.js) initializes the server, sets up middleware, and connects
to the database.
import "./index.css";
ReactDOM.render(
<TransactionsProvider>
<App />
</TransactionsProvider>,
document.getElementById("root"),
);
1. This file utilizes React's Context API to manage and provide blockchain-related state and
functions across the application.
Department of CSE (Artificial Intelligence & Machine Learning) 24
ACE ENGINEERING COLLEGE
Code: client/src/context/TransactionContext.jsx
import React, { useEffect, useState } from "react";
import { ethers } from "ethers";
import { contractABI, contractAddress } from "../utils/constants";
export const TransactionContext = React.createContext();
const { ethereum } = window;
const getEthereumContract = () => {
const provider = new ethers.providers.Web3Provider(ethereum);
const signer = provider.getSigner();
const transactionContract = new ethers.Contract(contractAddress, contractABI, signer);
return transactionContract;
};
export const TransactionProvider = ({ children }) => {
const [currentAccount, setCurrentAccount] = useState("");
const checkIfWalletIsConnected = async () => {
if (!ethereum) return alert("Please install MetaMask.");
const accounts = await ethereum.request({ method: "eth_accounts" });
if (accounts.length) {
setCurrentAccount(accounts[0]);
}
};
const connectWallet = async () => {
if (!ethereum) return alert("Please install MetaMask.");
const accounts = await ethereum.request({ method: "eth_requestAccounts" });
setCurrentAccount(accounts[0]);
};
useEffect(() => {
checkIfWalletIsConnected();
}, []);
return (
<TransactionContext.Provider value={{ connectWallet, currentAccount }}>
{children}
</TransactionContext.Provider>
);
};
Code: smart_contract/contracts/Transactions.sol
// SPDX-License-Identifier: UNLICENSED
contract Transactions {
uint256 transactionCount;
event Transfer(address from, address receiver, uint amount, string message, uint256 timestamp,
string keyword);
struct TransferStruct {
address sender;
address receiver;
uint amount;
string message;
uint256 timestamp;
string keyword;
TransferStruct[] transactions;
function addToBlockchain(address payable receiver, uint amount, string memory message, string
memory keyword) public {
transactionCount += 1;
return transactions;
return transactionCount;
This script deploys the smart contract to the blockchain using Hardhat.
Code: smart_contract/scripts/deploy.js
await transactions.deployed();
console.log("Transactions deployed to:", transactions.address);
};
const runMain = async () => {
try {
await main();
process.exit(0);
} catch (error) {
console.error(error);
process.exit(1);
}
};
runMain();
CHAPTER 7
TESTING
Scenarios included:
• Users successfully depositing or withdrawing tokens.
• Smooth connection to MetaMask or WalletConnect.
• Real-time update of balances and activity logs post-transaction.
• Error handling messages for rejected or failed transactions.
The objective was to simulate real-world usage and verify that the system was user-friendly,
functional, and aligned with user goals.
7.2.5 Performance Testing
Performance testing was conducted to evaluate how the system behaves under load, especially
during peak transaction times or high user activity. This is particularly crucial in decentralized
applications where latency, gas fees, and transaction confirmation times can directly affect user
experience and protocol efficiency.
Simulated test conditions included:
• High-frequency token transfers or swap operations.
• Concurrent frontend users triggering contract events.
• Stress testing backend data rendering and chart updates.
Results confirmed that the platform maintained acceptable response times and remained
operational without critical slowdowns, even under simulated network congestion.
CHAPTER 8
FUTURE ENHANCEMENT AND CONCLUSION
Another notable enhancement is the integration of Artificial Intelligence (AI) in smart contract
testing and auditing. Current tools like Slither and MythX provide effective static and dynamic
analysis, but the incorporation of AI-based systems can improve threat detection through pattern
recognition and anomaly detection. Machine learning models trained on datasets of past smart
contract exploits can identify unknown vulnerabilities or logical flaws with higher accuracy. This
would elevate the security posture of the DeFi protocol and reduce the risk of vulnerabilities that
traditional tools might overlook.
Improving the onboarding experience for non-technical users is another critical area of focus.
While DeFi inherently deals with complex blockchain concepts such as gas fees, wallets, and yield
farming, simplifying the user interface and designing intuitive onboarding flows can make the system
more inclusive. Features such as guided tutorials, in-app walkthroughs, glossary tooltips, and preset
wallet integrations (e.g., MetaMask, WalletConnect) can lower the entry barrier for users with limited
blockchain experience. This will help foster mainstream adoption and enhance user retention.
Additionally, enhancing mobile compatibility and responsive design will ensure that users can
seamlessly access the platform across a variety of devices. As mobile usage dominates global internet
access, optimizing frontend dashboards, transaction prompts, and visualizations for mobile screens
will significantly boost accessibility and convenience.
Together, these enhancements aim to future-proof the application by making it more secure,
interoperable, user-centric, and scalable, ensuring that it remains competitive in a fast-evolving DeFi
landscape.
8.2 CONCLUSION
In conclusion, the work undertaken in this project provides a strong blueprint for
building next-generation DeFi solutions that are secure, scalable, and inclusive. It serves as a
significant step toward democratizing finance and empowering users through blockchain
technology.
CHAPTER 9
REFERENCES
[3] Bräm, C., Eilers, M., Müller, P., Sierra, R., & Summers, A. J. (2021). “Rich Specifications for
Ethereum Smart Contract Verification.” Proceedings of the ACM on Programming Languages
(OOPSLA).
[4] Bräm, C., Eilers, M., Müller, P., Sierra, R., & Summers, A. J. (2018). “A Blockchain‑Backed
System for Decentralized Trusted Timestamping.” Information Technology, 60(5–6), 329–340.
(Note: Year corrected to 2018 to match sample.)
[5] Schär, F. (2020). “Decentralized Finance: On Blockchain‑ and Smart Contract‑Based Financial
Markets.” Center for Innovative Finance – DLT (Blockchain) & Fintech. SpringerLink
[6] Angeris, G., et al. (2019). “An Analysis of Uniswap Markets.” Quantitative Finance Trading and
Market Microstructure. Wikipedia
[7] Lo, Y. C., & Medda, F. (2021). “Uniswap and the Emergence of the Decentralized Exchange.”
Journal of Financial Stability, 24, 1–12. Wikipedia
[8] Trail of Bits. (2019). “Slither: Static Analysis Framework.” Proceedings of WETSEB@ICSE.
[9] ConsenSys. “MythX: Security Analysis for Ethereum Smart Contracts.” ConsenSys
Documentation
*2,3,4
Department of CSE (AI & ML), ACE Engineering College, Hyderabad, India.
ABSTRACT
Blockchain technology is revolutionizing financial systems by enabling secure, transparent, and decentralized
transactions. The emergence of cryptocurrencies and decentralized applications (dApps) has facilitated the development of
financial systems independent of traditional intermediaries. However, challenges such as high gas fees, limited scalability, and
smart contract vulnerabilities persist. This paper explores how existing blockchain technologies have tackled these issues and
proposes an approach for building more efficient, secure, and user-friendly decentralized finance (DeFi) applications. With a
focus on Ethereum-based smart contracts and tools like MetaMask, Solidity, and Hardhat, this study highlights both the
opportunities and the technical gaps present in current implementations. The goal is to enhance user experience, security, and
scalability in DeFi systems.
Keywords: Blockchain, Ethereum, DeFi, Smart Contracts, MetaMask, Gas Fees, Decentralized Applications, Solidity,
Scalability
I.INTRODUCTION
1.1 Introduction
Blockchain technology has introduced a radical change in conducting digital transactions and record keeping. Central to the
concept of decentralization, the blockchain ensures trustless systems that promote transparency, immutability, and greater
security by eliminating intermediaries. Among other blockchain platforms, Ethereum is the most significant. It provides a
platform for creating decentralized applications (dApps) by means of smart contracts. Smart contracts are self-executing
contracts in which the terms of the agreement have been written into lines of code. This smart contract is the backbone of
decentralized finance (DeFi), which aims to recreate and innovate on conventional financial services using the blockchain.
There was a rising interest in the space around the world over the last few years, owing to the promise of DeFi providing
borderless, inclusive, and efficient financial solutions. Decentralized exchanges, lending protocols, and yield farming platforms
are testing the limits of financing without the necessity of centralized banks or financial institutions. However, in conjunction
with all the advantages of DeFi come various paradoxes. Foremost are talks about the high fees incurred during transactions on
the Ethereum network due to congestion, smart contract vulnerabilities, and limited interoperability between blockchains. The
purpose of this paper is to investigate these concerns with a focus on how new instruments and frameworks can be employed in
making DeFi platforms much stronger and user-centric.
1.2 Background of the project
The complementary nature of Bitcoin originated the idea of the first-ever decentralized digital currency in 2009, while
the invention of Ethereum in 2015 was the actual trigger for unlocking the blockchain potential via smart contracts.
Ethereum allowed programmers to create decentralized applications that are programmable to automate transactions
and build financial services, thereby eliminating the role of intermediaries. The consequence is decentralized finance
(DeFi), which aims to provide decentralized infrastructure for financial instruments, including lending, borrowing, and
trading.
But as Ethereum gained popularity, problems with scalability began to emerge. The capacity of the Ethereum network
was eventually measured in terms of throughput or transactions per second (TPS), which could not keep pace with the
demand surging in the network, resulting in unbearable gas prices during congested situations. The exorbitant fees make
microtransactions unrealistic, which further discourages the acquisition of new users. Furthermore, programming secure
smart contracts requires expertise, as even an insignificant bug can be weaponized, has been the case in many instances,
as seen in various DeFi hacks.
II.LITERATURE SURVEY
2.9 Title: MythX: Security Analysis Service for Ethereum Smart Contracts
Authors: ConsenSys [9]:
Provides automated security analysis for smart contracts using symbolic execution.
Limitation: Cloud dependency may introduce privacy concerns.
Blockchain-Backed Hepp et al [1] 2018 Designed a system to provide Ensured secure and
Trusted tamper-proof timestamps via immutable document
Timestamping blockchain for document logs.
authentication.
An Analysis of Angeris et al 2020 Quantitatively examined Highlighted AMM
Uniswap Markets [2] Uniswap's AMM model to dynamics
assess its liquidity provision
and fee mechanisms.
Decentralized Fabian Schär 2021 Reviewed DeFi protocols and Identified benefits and
Finance Analysis [3] systemic risks. vulnerabilities in DeFi
Uniswap & Lo & Medda 2021 Compared decentralized and DEXs offer privacy, but
Emergence of DEX [4] centralized exchanges. face UI and scalability
issues.
Rich Specs for Bram et al [5] 2021 Used formal methods for Improved reliability
Ethereum Smart contract correctness. through verification
Contract
Verification
Ethereum: A Next- Vitalik Buterin 2023 Expanded Ethereum for Expanded on
Gen [6] general-purpose dApps using Ethereum’s potential
Cryptocurrency EVM.
Platform
A Next-Generation Vitalik Buterin 2023 Introduced Ethereum for Proposed Ethereum for
Smart Contract and [7] building smart contract- smart contracts and
dApp Platform based dApps. dApps
Though highly promising and rapidly evolving, there still exist several research gaps that seriously hamper DeFi
from being mainstream or long-term sustainable. One of them is that the smart contract verification tools are marred by
lack of thorough empirical validation while some tools, such as Slither and MythX, have provided static and symbolic
analyses but limited real-world testing to establish their reliability in detecting sophisticated vulnerabilities in large-
scale, deployed contracts.
Another vital constraint is the insufficient scalability tests of DeFi apps under heavy-load conditions that are
performed on most studies based solely on theoretical or simulation-based scalability. When such systems are assessed
concerning weaknesses, there is little or no validation by simulation of the congestion in networks in conjunction with
user behavior at peak usage, which is crucial. Further, the DeFi ecosystem lacks an integrated framework, which would
make it possible to execute backend smart contracts securely while purposely providing inviting front interfaces. Many
either have complex functional structures and then do not have focus on security aspects or the other way around, thus
leaving room for all-inclusive design of such solutions.
V. REFERENCES
[1] Vitalik Buterin, “Ethereum White Paper,” 2013.
[2] Vitalik Buterin, “Ethereum: A Next-Generation Cryptocurrency and Decentralized Application Platform,” 2014.
[3] Bram Christian et al., “Rich Specifications for Ethereum Smart Contract Verification.”
[4] Thomas Hepp et al., “A Blockchain-Backed System for Decentralized Trusted Timestamping,” 2018.
[5] Fabian Schä r, “Decentralized Finance: On Blockchain and Smart Contract-Based Financial Markets,” 2020.
[6] Guillermo Angeris et al., “An Analysis of Uniswap Markets,” 2019.
[7] Yuen C. Lo and Francesca Medda, “Uniswap and the Emergence of the Decentralized Exchange,” 2021.
[8] Trail of Bits, “Slither: Static Analysis Framework.”
[9] ConsenSys, “MythX: Security Analysis for Ethereum Smart Contracts.”
[10] MetaMask Docs, “MetaMask: Ethereum Wallet Integration.”