You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f4485ee
Browse filesBrowse the repository at this point in the historyBrowse files
* @notice The amount of DSC to mint is based on the amount of collateral deposited and the price feed of the collateral and depositedCollateralValue > desiredDscAmount
144
176
*/
145
-
function mintDSC(uint256amount) externalmoreThanZero(amount) nonReentrant{
177
+
function mintDSC(uint256amount) publicmoreThanZero(amount) nonReentrant{
146
178
s_DscMinted[msg.sender] += amount;
147
179
revertIfHealthIsBroken(msg.sender);
148
180
bool minted = i_dsc.mint(msg.sender, amount);
@@ -151,7 +183,14 @@ contract DSCEngine is ReentrancyGuard {
151
183
}
152
184
}
153
185
154
-
function burnDsc() external {}
186
+
function burnDsc(uint256amountToBurn) publicmoreThanZero(amountToBurn){
0 commit comments