hackquest logo
  • Learn
  • Explore Course
  • Build
  • Explore Hackathon
  • Project Archive
  • Community
  • Forum
  • Global Event
  • My Community
  • Co-learning
  • Organization Hub
  • More
    • Glossary
    • Blog
    • Faucet
    • Job Station
    • Press Kit
    • Founder
hackquest logo
Back

DAI - Part 2

In Part 2 of the DAI course, we will continue to build the StableCoin contract, focusing on the mint and burn functions.

DAI - Part 2

Language

Solidity

Total Length

1.3h

Part of Learning Track

Build on Ethereum + 1

What You'll Learn

Implementation of setting token prices, minting stablecoins with preconditions, and defining functions for burning stablecoins

mint
burn
collateralization ratio

Syllabus

Price Oracle

Develop a function to inform the contract about the current price of the collateral.

Collateralization Ratio

Define and set up the collateralization ratio, a crucial metric for the stability of the contract.

MintStableCoin - Section 1

Begin the process of writing the 'mintStableCoin' function, focusing on its initial development.

MintStableCoin - Section 2

Finalize the 'mintStableCoin' function, ensuring its complete functionality for issuing stablecoins.

BurnStableCoin - Section 1

Start writing the 'burnStableCoin' function, laying the groundwork for coin destruction mechanisms.

burnStableCoin - 2

Complete the 'burnStableCoin' function, enabling the burning of StableCoins within the contract.

Language

Solidity

Total Length

1.3h

Part of Learning Track

Build on Ethereum + 1