Skip to content

Commit

Permalink
style: remove lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtekgrinder committed Aug 27, 2024
1 parent e6b9237 commit df6b9c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions contracts/helpers/ARebalancerFlashloan.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ contract ARebalancerFlashloan is Rebalancer, IERC3156FlashBorrower {
IERC20(AGTOKEN).safeApprove(address(_flashloan), type(uint256).max);
}

/// @notice Burns `amountStablecoins` for one collateral asset, swap for asset then mints stablecoins from the proceeds of the
/// swap
/// @notice Burns `amountStablecoins` for one collateral asset, swap for asset then mints stablecoins
/// from the proceeds of the swap.
/// @dev If `increase` is 1, then the system tries to increase its exposure to the yield bearing asset which means
/// burning stablecoin for the liquid asset, swapping for the yield bearing asset, then minting the stablecoin
/// @dev This function reverts if the second stablecoin mint gives less than `minAmountOut` of stablecoins
Expand Down
4 changes: 1 addition & 3 deletions contracts/interfaces/IRebalancerFlashloan.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ import { IERC3156FlashBorrower } from "oz/interfaces/IERC3156FlashBorrower.sol";
/// @title IRebalancer
/// @author Angle Labs, Inc.
interface IRebalancerFlashloan is IRebalancer, IERC3156FlashBorrower {
/// @notice Burns `amountStablecoins` for one collateral asset, swap for asset then mints stablecoins from the proceeds of the
/// swap
/// @notice Burns `amountStablecoins` for one collateral asset and use the proceeds to mint the other collateral asset

Check failure on line 11 in contracts/interfaces/IRebalancerFlashloan.sol

View workflow job for this annotation

GitHub Actions / lint

Line length must be no more than 120 but current length is 122
/// @dev If `increase` is 1, then the system tries to increase its exposure to the yield bearing asset which means
/// burning stablecoin for the liquid asset, swapping for the yield bearing asset, then minting the stablecoin
/// @dev This function reverts if the second stablecoin mint gives less than `minAmountOut` of stablecoins
/// @dev This function reverts if the swap slippage is higher than `maxSlippage`
function adjustYieldExposure(
uint256 amountStablecoins,
uint8 increase,
Expand Down

0 comments on commit df6b9c6

Please sign in to comment.