hackquest logo
  • 学习
  • 课程探索
  • 实战
  • 探索黑客松
  • 往期项目
  • 社区
  • 论坛
  • 全球活动
  • 我的社区
  • 共学营
  • 组织中心
  • 更多
    • 词汇表
    • 博客
    • 水龙头
    • 工作机会
    • 媒体工具包
    • 创始人
hackquest logo
返回

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