@@ -213,18 +213,18 @@ contract BorrowerOperations is LiquityBase, BorrowerOperationsStorage, CheckCont
213213 emit ZUSDBorrowingFeePaid (_sender, vars.ZUSDFee);
214214 }
215215
216- /// Send ETH as collateral to a trove
216+ /// Send RBTC as collateral to a trove
217217 function addColl (address _upperHint , address _lowerHint ) external payable override {
218218 _adjustTrove (msg .sender , 0 , 0 , false , _upperHint, _lowerHint, 0 );
219219 }
220220
221- /// Send ETH as collateral to a trove. Called by only the Stability Pool.
222- function moveETHGainToTrove (address _borrower , address _upperHint , address _lowerHint ) external payable override {
221+ /// Send RBTC as collateral to a trove. Called by only the Stability Pool.
222+ function moveRBTCGainToTrove (address _borrower , address _upperHint , address _lowerHint ) external payable override {
223223 _requireCallerIsStabilityPool ();
224224 _adjustTrove (_borrower, 0 , 0 , false , _upperHint, _lowerHint, 0 );
225225 }
226226
227- /// Withdraw ETH collateral from a trove
227+ /// Withdraw RBTC collateral from a trove
228228 function withdrawColl (uint _collWithdrawal , address _upperHint , address _lowerHint ) external override {
229229 _adjustTrove (msg .sender , _collWithdrawal, 0 , false , _upperHint, _lowerHint, 0 );
230230 }
@@ -282,12 +282,12 @@ contract BorrowerOperations is LiquityBase, BorrowerOperationsStorage, CheckCont
282282 _requireNonZeroAdjustment (_collWithdrawal, _ZUSDChange);
283283 _requireTroveisActive (contractsCache.troveManager, _borrower);
284284
285- // Confirm the operation is either a borrower adjusting their own trove, or a pure ETH transfer from the Stability Pool to a trove
285+ // Confirm the operation is either a borrower adjusting their own trove, or a pure RBTC transfer from the Stability Pool to a trove
286286 assert (_sender == _borrower || (_sender == stabilityPoolAddress && _value > 0 && _ZUSDChange == 0 ));
287287
288288 contractsCache.troveManager.applyPendingRewards (_borrower);
289289
290- // Get the collChange based on whether or not ETH was sent in the transaction
290+ // Get the collChange based on whether or not RBTC was sent in the transaction
291291 (vars.collChange, vars.isCollIncrease) = _getCollChange (_value, _collWithdrawal);
292292
293293 vars.netDebtChange = _ZUSDChange;
@@ -327,7 +327,7 @@ contract BorrowerOperations is LiquityBase, BorrowerOperationsStorage, CheckCont
327327 emit ZUSDBorrowingFeePaid (_sender, vars.ZUSDFee);
328328
329329 // Use the unmodified _ZUSDChange here, as we don't send the fee to the user
330- _moveTokensAndETHfromAdjustment (
330+ _moveTokensAndRBTCfromAdjustment (
331331 contractsCache.activePool,
332332 contractsCache.zusdToken,
333333 _sender,
@@ -382,14 +382,14 @@ contract BorrowerOperations is LiquityBase, BorrowerOperationsStorage, CheckCont
382382 _repayZUSD (activePoolCached, zusdTokenCached, gasPoolAddress, ZUSD_GAS_COMPENSATION);
383383
384384 // Send the collateral back to the user
385- activePoolCached.sendETH (msg .sender , coll);
385+ activePoolCached.sendRBTC (msg .sender , coll);
386386 }
387387
388388 /**
389389 * Claim remaining collateral from a redemption or from a liquidation with ICR > MCR in Recovery Mode
390390 */
391391 function claimCollateral () external override {
392- // send ETH from CollSurplus Pool to owner
392+ // send RBTC from CollSurplus Pool to owner
393393 collSurplusPool.claimColl (msg .sender );
394394 }
395395
@@ -449,7 +449,7 @@ contract BorrowerOperations is LiquityBase, BorrowerOperationsStorage, CheckCont
449449 return (newColl, newDebt);
450450 }
451451
452- function _moveTokensAndETHfromAdjustment
452+ function _moveTokensAndRBTCfromAdjustment
453453 (
454454 IActivePool _activePool ,
455455 IZUSDToken _zusdToken ,
@@ -472,14 +472,14 @@ contract BorrowerOperations is LiquityBase, BorrowerOperationsStorage, CheckCont
472472 if (_isCollIncrease) {
473473 _activePoolAddColl (_activePool, _collChange);
474474 } else {
475- _activePool.sendETH (_borrower, _collChange);
475+ _activePool.sendRBTC (_borrower, _collChange);
476476 }
477477 }
478478
479- /// Send ETH to Active Pool and increase its recorded ETH balance
479+ /// Send RBTC to Active Pool and increase its recorded RBTC balance
480480 function _activePoolAddColl (IActivePool _activePool , uint _amount ) internal {
481481 (bool success , ) = address (_activePool).call {value: _amount}("" );
482- require (success, "BorrowerOps: Sending ETH to ActivePool failed " );
482+ require (success, "BorrowerOps: Sending RBTC to ActivePool failed " );
483483 }
484484
485485 /// Issue the specified amount of ZUSD to _account and increases the total active debt (_netDebtIncrease potentially includes a ZUSDFee)
0 commit comments