hackquest logo
  • HỌC
  • Khám phá khóa học
  • Xây dựng
  • Khám phá Hackathon
  • Lưu trữ dự án
  • CỘNG ĐỒNG
  • Diễn đàn
  • Sự kiện toàn cầu
  • Cộng đồng của tôi
  • Học chung
  • Trung tâm tổ chức
  • Thêm
    • Từ điển
    • Blog
    • Faucet
    • Trạm việc làm
    • Bộ công cụ báo chí
    • Người sáng lập
hackquest logo
Quay lại

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