Skip to content

Commit

Permalink
docs(flashliquidatoraavev2.sol): update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gtupak committed Nov 7, 2022
1 parent f9b2a33 commit 9ea6863
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions contracts/sapphire/FlashLiquidator/FlashLiquidatorAaveV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ import {SapphireTypes} from "../SapphireTypes.sol";
* @author ARCx
* @notice A basic flash loan based contracts that is used to liquidate borrowers of SapphireCoreV1
* contracts. It takes a flash loan to repay the user's debt, swaps the collateral to the
* repaid stablecoin, transfers the profit to the caller of the liquidate function, then repays
* the flash loan debt.
* repaid stablecoin, transfers the profit to the profit receiver set on the contract.
*/
contract FlashLiquidatorAaveV2 is FlashLoanReceiverBase, Ownable {

Expand Down Expand Up @@ -126,7 +125,7 @@ contract FlashLiquidatorAaveV2 is FlashLoanReceiverBase, Ownable {

_swapCollateralForStables(liquidationVars.collateralAsset, asset);

// transfer profit to sender
// transfer profit to the profit receiver
uint256 loanRepaymentAmount = amount + premium;
SafeERC20.safeTransfer(
IERC20Metadata(asset),
Expand Down

0 comments on commit 9ea6863

Please sign in to comment.