File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -149,8 +149,8 @@ contract DSCEngine is ReentrancyGuard {
149
149
}
150
150
151
151
/*
152
- * @param tokenCollateralAddress: The ERC20 token address of the collateral you're depositing
153
- * @param amountCollateral: The amount of collateral you're depositing
152
+ * @param tokenCollateralAddress: The ERC20 token address of the collateral you're withdrawing
153
+ * @param amountCollateral: The amount of collateral you're withdrawing
154
154
* @param amountDscToBurn: The amount of DSC you want to burn
155
155
* @notice This function will withdraw your collateral and burn DSC in one transaction
156
156
*/
@@ -190,7 +190,7 @@ contract DSCEngine is ReentrancyGuard {
190
190
/*
191
191
* @notice careful! You'll burn your DSC here! Make sure you want to do this...
192
192
* @dev you might want to use this if you're nervous you might get liquidated and want to just burn
193
- * you DSC but keep your collateral in.
193
+ * your DSC but keep your collateral in.
194
194
*/
195
195
function burnDsc (uint256 amount ) external moreThanZero (amount) {
196
196
_burnDsc (amount, msg .sender , msg .sender );
@@ -250,7 +250,7 @@ contract DSCEngine is ReentrancyGuard {
250
250
///////////////////
251
251
/*
252
252
* @param amountDscToMint: The amount of DSC you want to mint
253
- * You can only mint DSC if you hav enough collateral
253
+ * You can only mint DSC if you have enough collateral
254
254
*/
255
255
function mintDsc (uint256 amountDscToMint ) public moreThanZero (amountDscToMint) nonReentrant {
256
256
s_DSCMinted[msg .sender ] += amountDscToMint;
You can’t perform that action at this time.
0 commit comments