Skip to content

Commit ee1eafc

Browse files
authored
Merge pull request #13704 from Shiva-Sai-ssb/fix-13649
add stablecoins quiz [Fixes #13649]
2 parents 27d9269 + a66c73d commit ee1eafc

File tree

6 files changed

+195
-3
lines changed

6 files changed

+195
-3
lines changed

src/components/Quiz/stories/QuizzesStats.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const meta = {
2020
wallets: [false, 0],
2121
web3: [false, 0],
2222
daos: [false, 0],
23+
stablecoins: [false, 0],
2324
},
2425
totalCorrectAnswers: 0,
2526
},

src/data/quizzes/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ const quizzes = {
5050
title: "run-a-node",
5151
questions: ["l001", "l002", "l003", "l004", "l005", "l006"],
5252
},
53+
stablecoins: {
54+
title: "stablecoins",
55+
questions: ["m001", "m002", "m003", "m004", "m005"],
56+
},
5357
} satisfies RawQuizzes
5458

5559
export const ethereumBasicsQuizzes: QuizzesSection[] = [
@@ -83,6 +87,11 @@ export const usingEthereumQuizzes: QuizzesSection[] = [
8387
{
8488
id: "nfts",
8589
level: "beginner",
90+
next: "stablecoins",
91+
},
92+
{
93+
id: "stablecoins",
94+
level: "beginner",
8695
next: "layer-2",
8796
},
8897
{

src/data/quizzes/questionBank.ts

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,6 +1479,137 @@ const questionBank = {
14791479
],
14801480
correctAnswerId: "l006-b",
14811481
},
1482+
// Stablecoins
1483+
m001: {
1484+
prompt: "m001-prompt",
1485+
answers: [
1486+
{
1487+
id: "m001-a",
1488+
label: "m001-a-label",
1489+
explanation: "m001-a-explanation",
1490+
},
1491+
{
1492+
id: "m001-b",
1493+
label: "m001-b-label",
1494+
explanation: "m001-b-explanation",
1495+
},
1496+
{
1497+
id: "m001-c",
1498+
label: "m001-c-label",
1499+
explanation: "m001-c-explanation",
1500+
},
1501+
{
1502+
id: "m001-d",
1503+
label: "m001-d-label",
1504+
explanation: "m001-d-explanation",
1505+
},
1506+
],
1507+
correctAnswerId: "m001-a",
1508+
},
1509+
m002: {
1510+
prompt: "m002-prompt",
1511+
answers: [
1512+
{
1513+
id: "m002-a",
1514+
label: "m002-a-label",
1515+
explanation: "m002-a-explanation",
1516+
},
1517+
{
1518+
id: "m002-b",
1519+
label: "m002-b-label",
1520+
explanation: "m002-b-explanation",
1521+
},
1522+
{
1523+
id: "m002-c",
1524+
label: "m002-c-label",
1525+
explanation: "m002-c-explanation",
1526+
},
1527+
{
1528+
id: "m002-d",
1529+
label: "m002-d-label",
1530+
explanation: "m002-d-explanation",
1531+
},
1532+
],
1533+
correctAnswerId: "m002-c",
1534+
},
1535+
m003: {
1536+
prompt: "m003-prompt",
1537+
answers: [
1538+
{
1539+
id: "m003-a",
1540+
label: "m003-a-label",
1541+
explanation: "m003-a-explanation",
1542+
},
1543+
{
1544+
id: "m003-b",
1545+
label: "m003-b-label",
1546+
explanation: "m003-b-explanation",
1547+
},
1548+
{
1549+
id: "m003-c",
1550+
label: "m003-c-label",
1551+
explanation: "m003-c-explanation",
1552+
},
1553+
{
1554+
id: "m003-d",
1555+
label: "m003-d-label",
1556+
explanation: "m003-d-explanation",
1557+
},
1558+
],
1559+
correctAnswerId: "m003-d",
1560+
},
1561+
m004: {
1562+
prompt: "m004-prompt",
1563+
answers: [
1564+
{
1565+
id: "m004-a",
1566+
label: "m004-a-label",
1567+
explanation: "m004-a-explanation",
1568+
},
1569+
{
1570+
id: "m004-b",
1571+
label: "m004-b-label",
1572+
explanation: "m004-b-explanation",
1573+
},
1574+
{
1575+
id: "m004-c",
1576+
label: "m004-c-label",
1577+
explanation: "m004-c-explanation",
1578+
},
1579+
{
1580+
id: "m004-d",
1581+
label: "m004-d-label",
1582+
explanation: "m004-d-explanation",
1583+
},
1584+
],
1585+
correctAnswerId: "m004-b",
1586+
},
1587+
m005: {
1588+
prompt: "m005-prompt",
1589+
answers: [
1590+
{
1591+
id: "m005-a",
1592+
label: "m005-a-label",
1593+
explanation: "m005-a-explanation",
1594+
},
1595+
{
1596+
id: "m005-b",
1597+
label: "m005-b-label",
1598+
explanation: "m005-b-explanation",
1599+
},
1600+
{
1601+
id: "m005-c",
1602+
label: "m005-c-label",
1603+
explanation: "m005-c-explanation",
1604+
},
1605+
{
1606+
id: "m005-d",
1607+
label: "m005-d-label",
1608+
explanation: "m005-d-explanation",
1609+
},
1610+
],
1611+
correctAnswerId: "m005-d",
1612+
},
14821613
} as const satisfies QuestionBank
14831614

14841615
export default questionBank

src/intl/en/learn-quizzes.json

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,5 +523,50 @@
523523
"l006-prompt": "Running a node earns network rewards",
524524
"l006-a-label": "True",
525525
"l006-a-explanation": "Simply running client software does not earn you rewards. To earn rewards, you must also be staking.",
526-
"l006-b-label": "False"
526+
"l006-b-label": "False",
527+
"m001-prompt": "What are stablecoins?",
528+
"m001-a-label": "Cryptocurrencies with low price volatility, their value is steady and similar to traditional currencies",
529+
"m001-a-explanation": "Correct! Stablecoins are designed to address the volatility issue common in many cryptocurrencies.",
530+
"m001-b-label": "Digital representations of gold",
531+
"m001-b-explanation": "This is incorrect. While some stablecoins might be backed by precious metals, they can also be backed by fiat currency or other cryptocurrencies.",
532+
"m001-c-label": "A new type of credit card",
533+
"m001-c-explanation": "This is incorrect. Stablecoins are a type of cryptocurrency, not a credit card.",
534+
"m001-d-label": "A replacement for ether",
535+
"m001-d-explanation": "This is incorrect. Stablecoins are not designed to replace ether (ETH). They are another token on the Ethereum network designed to maintain steady value over time.",
536+
"m002-prompt": "Which of the following is a stablecoin?",
537+
"m002-a-label": "US Dollar",
538+
"m002-a-explanation": "This is incorrect. While stablecoins can represent the US dollar, a US dollar is not a cryptocurrency.",
539+
"m002-b-label": "AAVE token",
540+
"m002-b-explanation": "This is incorrect. AAVE is a governance token for the Aave protocol, which provides marketplaces for stablecoins, but AAVE itself is not a stablecoin.",
541+
"m002-c-label": "Dai",
542+
"m002-c-explanation": "Correct! Dai is probably the most famous decentralized stablecoin, and its value is roughly 1 US Dollar.",
543+
"m002-d-label": "Ether",
544+
"m002-d-explanation": "This is incorrect. Ether is the native currency of the Ethereum network, but it is not intended to be stable.",
545+
"m003-prompt": "What can stablecoins be used for?",
546+
"m003-a-label": "To protect its users from volatile changes in price",
547+
"m003-a-explanation": "Not quite. This answer is partially correct, but it's only one of the many things stablecoins can be used for.",
548+
"m003-b-label": "To buy things on the internet anywhere in the world",
549+
"m003-b-explanation": "Not quite. This answer is partially correct, but it's only one of the many things stablecoins can be used for.",
550+
"m003-c-label": "To earn money by lending to others",
551+
"m003-c-explanation": "Not quite. This answer is partially correct, but it's only one of the many things stablecoins can be used for.",
552+
"m003-d-label": "All of the above",
553+
"m003-d-explanation": "Correct! Stablecoins can be used to hold cryptocurrency with less volatility, transact globally on the internet, and earn interest when you lend them out.",
554+
"m004-prompt": "What makes stablecoins unique?",
555+
"m004-a-label": "It is a token that is tied to an asset in the real world",
556+
"m004-a-explanation": "This is incorrect. While many stablecoins are pegged to real-world assets, this characteristic is not exclusive to stablecoins (e.g., ETH-collateralized tokens).",
557+
"m004-b-label": "It is a cryptocurrency token specifically designed to keep its value steady",
558+
"m004-b-explanation": "Correct! Stablecoins are designed to keep their value relatively stable, typically pegged to assets like currencies (e.g., 1 USDC = 1 US dollar), but not all stablecoins follow this model (e.g., RAI).",
559+
"m004-c-label": "It is capable of being sent over the internet",
560+
"m004-c-explanation": "This is incorrect. While this is a capability, it is not unique to stablecoins.",
561+
"m004-d-label": "It can be used on the Ethereum network.",
562+
"m004-d-explanation": "This is incorrect. Many other cryptocurrency tokens can be used on the Ethereum network.",
563+
"m005-prompt": "What is NOT a way to get stablecoins?",
564+
"m005-a-label": "Swap them with other tokens",
565+
"m005-a-explanation": "Incorrect, this is a way to get stablecoins. One of the most common ways people acquire stablecoins is by swapping their existing cryptocurrencies for stablecoins.",
566+
"m005-b-label": "Borrow them",
567+
"m005-b-explanation": "Incorrect, this is a way to get stablecoins. You can borrow some stablecoins by using your existing cryptocurrencies, such as ether, as collateral. You will need to pay the borrowed stablecoins back to reclaim your locked collateral.",
568+
"m005-c-label": "Buy them from an exchange",
569+
"m005-c-explanation": "Incorrect, this is a way to get stablecoins. Many exchanges and wallets let you buy stablecoins directly. Geographical restrictions may apply for centralized exchanges.",
570+
"m005-d-label": "Mine them",
571+
"m005-d-explanation": "Correct! Unlike bitcoin, you are unable to mine stablecoins."
527572
}

src/lib/utils/translations.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ const getRequiredNamespacesForPath = (relativePath: string) => {
206206
path.startsWith("/wallets/") ||
207207
path.startsWith("/web3/") ||
208208
path.startsWith("/what-is-ethereum/") ||
209-
path.startsWith("/quizzes/")
209+
path.startsWith("/quizzes/") ||
210+
path.startsWith("/stablecoins/")
210211
) {
211212
requiredNamespaces = [...requiredNamespaces, "learn-quizzes"]
212213
}

src/pages/stablecoins.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import Text from "@/components/OldText"
3030
import PageHero from "@/components/PageHero"
3131
import PageMetadata from "@/components/PageMetadata"
3232
import ProductList from "@/components/ProductList"
33+
import { StandaloneQuizWidget } from "@/components/Quiz/QuizWidget"
3334
import StablecoinAccordion from "@/components/StablecoinAccordion"
3435
import StablecoinBoxGrid from "@/components/StablecoinBoxGrid"
3536
import StablecoinsTable from "@/components/StablecoinsTable"
@@ -282,7 +283,10 @@ const StablecoinsPage = ({ markets, marketsHasError }) => {
282283
t("page-stablecoins-crypto-backed-con-1"),
283284
t("page-stablecoins-crypto-backed-con-2"),
284285
],
285-
links: [{ text: "Dai", url: "https://makerdao.com/en/" }],
286+
links: [
287+
{ text: "DAI", url: "https://makerdao.com/en/" },
288+
{ text: "RAI", url: "https://reflexer.finance/" },
289+
],
286290
},
287291
{
288292
title: t("page-stablecoins-precious-metals"),
@@ -773,6 +777,7 @@ const StablecoinsPage = ({ markets, marketsHasError }) => {
773777
</Flex>
774778
</Box>
775779
<Content>
780+
<StandaloneQuizWidget quizKey="stablecoins" />
776781
<FeedbackCard />
777782
</Content>
778783
</Page>

0 commit comments

Comments
 (0)