From 21754224e7f4bd455d3b9844d43c6ecea95d9148 Mon Sep 17 00:00:00 2001 From: Lukman-01 Date: Tue, 28 Jan 2025 21:15:24 +0100 Subject: [PATCH] updated --- packages/nextjs/app/quiz/datas/DexQuestions | 0 .../app/quiz/datas/IntoDefiQuestions.tsx | 263 ------------------ packages/nextjs/app/quiz/datas/quizData.tsx | 106 +++---- 3 files changed, 56 insertions(+), 313 deletions(-) delete mode 100644 packages/nextjs/app/quiz/datas/DexQuestions delete mode 100644 packages/nextjs/app/quiz/datas/IntoDefiQuestions.tsx diff --git a/packages/nextjs/app/quiz/datas/DexQuestions b/packages/nextjs/app/quiz/datas/DexQuestions deleted file mode 100644 index e69de29..0000000 diff --git a/packages/nextjs/app/quiz/datas/IntoDefiQuestions.tsx b/packages/nextjs/app/quiz/datas/IntoDefiQuestions.tsx deleted file mode 100644 index 9113376..0000000 --- a/packages/nextjs/app/quiz/datas/IntoDefiQuestions.tsx +++ /dev/null @@ -1,263 +0,0 @@ -export const questionsExample = [ - { - question: "What is the primary characteristic of Decentralized Finance (DeFi)?", - options: [ - "Centralized control over assets", - "Open, permissionless financial protocols", - "Closed-source financial infrastructure", - "Regulated by a single entity", - ], - correctAnswer: "Open, permissionless financial protocols", - }, - { - question: "What distinguishes DeFi from CeFi in terms of governance?", - options: [ - "Centralized governance in both systems", - "Permissionless and decentralized governance in DeFi", - "DeFi relies on physical intermediaries", - "CeFi offers greater user privacy than DeFi", - ], - correctAnswer: "Permissionless and decentralized governance in DeFi", - }, - { - question: "Which of the following is a feature of DeFi lending?", - options: [ - "Under-collateralization based on creditworthiness", - "Over-collateralization and no reliance on credit scores", - "Loans issued through physical banks", - "Centralized management of loan pools", - ], - correctAnswer: "Over-collateralization and no reliance on credit scores", - }, - { - question: "What is the role of a 'Keeper' in the DeFi stack?", - options: [ - "Providing liquidity to decentralized exchanges", - "Ensuring proper execution of protocol operations", - "Managing custodial funds", - "Verifying real-world identities of users", - ], - correctAnswer: "Ensuring proper execution of protocol operations", - }, - { - question: "What is the purpose of tokenization in DeFi?", - options: [ - "To centralize blockchain assets", - "To make assets accessible, transferable, and programmable", - "To reduce transaction transparency", - "To enforce regulatory compliance", - ], - correctAnswer: "To make assets accessible, transferable, and programmable", - }, - { - question: "What is a stablecoin backed by decentralized collateral?", - options: ["USDT", "USDC", "DAI", "Fiat currencies"], - correctAnswer: "DAI", - }, - { - question: "How does a flash loan differ from traditional loans?", - options: [ - "Requires lengthy application processes", - "Is non-collateralized but must be repaid in one transaction", - "Requires physical collateral for approval", - "Is only accessible to verified institutions", - ], - correctAnswer: "Is non-collateralized but must be repaid in one transaction", - }, - { - question: "What type of attack exploits higher transaction fees to prioritize a transaction?", - options: [ - "Reentrancy attack", - "Front-running attack", - "Oracle manipulation", - "Consensus attack", - ], - correctAnswer: "Front-running attack", - }, - { - question: "Which of these is an advantage of DeFi over CeFi?", - options: [ - "Higher privacy due to anonymous transactions", - "Centralized oversight of financial services", - "Reduced reliance on rent-seeking intermediaries", - "Strictly regulated governance systems", - ], - correctAnswer: "Reduced reliance on rent-seeking intermediaries", - }, - { - question: "What is Miner Extractable Value (MEV)?", - options: [ - "A measure of blockchain scalability", - "Profits extracted by miners by reordering transactions", - "Incentives given to developers for creating protocols", - "The cost of running a mining operation", - ], - correctAnswer: "Profits extracted by miners by reordering transactions", - }, - { - question: "What is the main drawback of pseudonymity in DeFi?", - options: [ - "Full anonymity for users", - "Lack of privacy due to publicly accessible transaction data", - "Regulatory overreach", - "Exclusion of smaller participants", - ], - correctAnswer: "Lack of privacy due to publicly accessible transaction data", - }, - { - question: "Which of the following is a key building block of DeFi?", - options: [ - "Traditional bank loan systems", - "Centralized liquidity pools", - "Decentralized smart contract platforms", - "Physical stock exchanges", - ], - correctAnswer: "Decentralized smart contract platforms", - }, - { - question: "What is an example of a decentralized derivative in DeFi?", - options: ["Uniswap", "Synthetix", "Bitcoin", "Aave"], - correctAnswer: "Synthetix", - }, - { - question: "Which of these is NOT a risk in DeFi?", - options: [ - "Smart contract bugs", - "Excessive regulation by governments", - "Oracle attacks", - "Front-running attacks", - ], - correctAnswer: "Excessive regulation by governments", - }, - { - question: "What is a major benefit of automated market makers (AMMs) in DeFi?", - options: [ - "Reliance on centralized order books", - "Allowing trades without relying on traditional intermediaries", - "Preventing impermanent loss", - "Fixed pricing for assets", - ], - correctAnswer: "Allowing trades without relying on traditional intermediaries", - }, - { - question: "What is the primary goal of decentralized governance in DeFi protocols?", - options: [ - "Enabling centralized control", - "Distributing decision-making power among users", - "Maximizing rent-seeking opportunities", - "Eliminating on-chain interactions", - ], - correctAnswer: "Distributing decision-making power among users", - }, - { - question: "What does composability in DeFi refer to?", - options: [ - "The ability to integrate multiple protocols seamlessly", - "Reducing collateral requirements", - "Centralizing smart contract operations", - "Eliminating cross-chain interactions", - ], - correctAnswer: "The ability to integrate multiple protocols seamlessly", - }, - { - question: "What makes DeFi transactions censorship-resistant?", - options: [ - "Regulatory compliance", - "Non-custodial smart contracts", - "KYC procedures", - "Closed-source protocol designs", - ], - correctAnswer: "Non-custodial smart contracts", - }, - { - question: "What is an oracle in the context of DeFi?", - options: [ - "A decentralized trading platform", - "A tool for aggregating and providing off-chain data to smart contracts", - "A privacy-preserving blockchain", - "A miner responsible for block creation", - ], - correctAnswer: "A tool for aggregating and providing off-chain data to smart contracts", - }, - { - question: "What are flash loans primarily used for in DeFi?", - options: [ - "Cross-border payments", - "Arbitrage opportunities and rapid fund utilization", - "Crowdfunding for blockchain projects", - "Procuring long-term loans", - ], - correctAnswer: "Arbitrage opportunities and rapid fund utilization", - }, - { - question: "How do decentralized exchanges (DEXs) differ from centralized exchanges (CEXs)?", - options: [ - "DEXs require real-world identities for trading", - "DEXs operate without custodial control over user funds", - "DEXs are more prone to regulatory interventions", - "DEXs rely heavily on centralized databases", - ], - correctAnswer: "DEXs operate without custodial control over user funds", - }, - { - question: "What is the significance of atomic transactions in DeFi?", - options: [ - "They allow partial execution of transactions", - "They ensure all actions within a transaction are executed or none at all", - "They require manual intervention for execution", - "They operate exclusively on private blockchains", - ], - correctAnswer: "They ensure all actions within a transaction are executed or none at all", - }, - { - question: "What type of stablecoin is algorithmically controlled without collateral?", - options: ["DAI", "USDT", "AMPL", "USDC"], - correctAnswer: "AMPL", - }, - { - question: "What was a notable issue with centralized exchanges (CEXs)?", - options: [ - "High transparency", - "Custodial risks and theft, like Mt. Gox", - "Low transaction fees", - "Permissionless trading", - ], - correctAnswer: "Custodial risks and theft, like Mt. Gox", - }, - { - question: "What is a common security issue in DeFi protocols?", - options: [ - "Open-source contracts", - "Reentrancy attacks", - "Permissionless access", - "Scalability concerns", - ], - correctAnswer: "Reentrancy attacks", - }, - { - question: "Which of the following is an on-chain asset management platform?", - options: ["Yearn", "Binance", "Ripple", "Ethereum"], - correctAnswer: "Yearn", - }, - { - question: "What is the main purpose of governance tokens in DeFi?", - options: [ - "To facilitate lending and borrowing", - "To enable user participation in protocol decisions", - "To secure blockchain networks", - "To increase transaction fees", - ], - correctAnswer: "To enable user participation in protocol decisions", - }, - { - question: "What is a key limitation of privacy in DeFi systems?", - options: [ - "Full encryption of transactions", - "Public visibility of balances and transaction history", - "The need for central verification systems", - "Complete anonymity for users", - ], - correctAnswer: "Public visibility of balances and transaction history", - }, - ]; - \ No newline at end of file diff --git a/packages/nextjs/app/quiz/datas/quizData.tsx b/packages/nextjs/app/quiz/datas/quizData.tsx index e92c789..b270aa4 100644 --- a/packages/nextjs/app/quiz/datas/quizData.tsx +++ b/packages/nextjs/app/quiz/datas/quizData.tsx @@ -1,4 +1,10 @@ -import { questionsExample } from "./questionsExample"; +import { DexesQuestions } from "./DexesQuestions"; +import { IntroDefiQuestions } from "./IntroDefiQuestions"; +import { LendingQuestions } from "./LendingQuestions"; +import { OraclesQuestions } from "./OracleQuestions"; +import { SecurityQuestions } from "./SecurityQuestions"; +import { StableCoinQuestions } from "./StableCoinQuestions"; +import { SyntheticsQuestions } from "./SyntheticsQuestions"; export const quizData: { id: number; @@ -12,67 +18,67 @@ export const quizData: { }[]; }[] = [ { - id: 1, - title: "DeFi Fundamentals", - description: - "Learn the foundations of decentralized finance, including key principles, concepts, and the structure of DeFi protocols like lending, borrowing, and automated market makers.", - image: "/fundamental.jpg", - questions: questionsExample, + id: 1, + title: "DeFi Fundamentals", + description: + "Test your knowledge of the foundational principles and structures of decentralized finance.", + image: "/fundamental.jpg", + questions: IntroDefiQuestions, }, { - id: 2, - title: "DeFi Contracts", - description: - "Dive into the workings of DeFi contracts, covering topics like smart contract development, yield farming mechanics, and liquidity provisioning strategies.", - image: "/contract.jpg", - questions: [], + id: 2, + title: "DeFi Contracts", + description: + "Assess your understanding of smart contracts and their role in DeFi mechanisms like yield farming and liquidity provision.", + image: "/contract.jpg", + questions: [], }, { - id: 3, - title: "Lending and Borrowing", - description: - "Gain insights into decentralized lending and borrowing platforms, exploring how interest rates are determined and best practices for leveraging these tools.", - image: "/lend.jpg", - questions: [], + id: 3, + title: "Lending and Borrowing", + description: + "Evaluate your knowledge of decentralized lending and borrowing platforms, including interest rate mechanics and strategies.", + image: "/lend.jpg", + questions: LendingQuestions, }, { - id: 5, - title: "Oracles", - description: - "Learn how blockchain oracles provide off-chain data to smart contracts, and discover their applications in DeFi, prediction markets, and more.", - image: "/Oracle.jpg", - questions: [], + id: 5, + title: "Oracles", + description: + "Test your understanding of how oracles provide off-chain data to smart contracts and their applications in DeFi.", + image: "/Oracle.jpg", + questions: OraclesQuestions, }, { - id: 4, - title: "Stablecoins", - description: - "Understand the role of stablecoins in DeFi, their mechanisms for maintaining price stability, and their importance in creating a robust financial ecosystem.", - image: "/stable.jpg", - questions: [], + id: 4, + title: "Stablecoins", + description: + "Assess your grasp of stablecoin mechanics and their role in maintaining price stability within DeFi ecosystems.", + image: "/stable.jpg", + questions: StableCoinQuestions, }, { - id: 6, - title: "Synthetics and Derivatives", - description: - "Explore synthetic assets and decentralized derivatives, understanding their role in DeFi markets and strategies for leveraging them to mitigate risks.", - image: "/synthetix.jpg", - questions: [], + id: 6, + title: "Synthetics and Derivatives", + description: + "Evaluate your knowledge of synthetic assets and decentralized derivatives within DeFi markets.", + image: "/synthetix.jpg", + questions: SyntheticsQuestions, }, { - id: 8, - title: "DEXs", - description: - "Master the operation of decentralized exchanges (DEXs), covering automated market makers (AMMs), order books, and strategies for efficient trading.", - image: "/dex.jpg", - questions: [], + id: 8, + title: "DEXs", + description: + "Test your expertise on decentralized exchanges, including AMMs, order books, and trading strategies.", + image: "/dex.jpg", + questions: DexesQuestions, }, { - id: 7, - title: "DeFi Security", - description: - "Understand the critical importance of security in DeFi, exploring smart contract vulnerabilities, best practices for audits, and how to secure your assets.", - image: "/security.jpg", - questions: [], + id: 7, + title: "DeFi Security", + description: + "Assess your understanding of DeFi security, including smart contract vulnerabilities and asset protection strategies.", + image: "/security.jpg", + questions: SecurityQuestions, }, -]; + ]; \ No newline at end of file