Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kopy-kat committed Oct 12, 2024
1 parent ff6bd8a commit 67a5c02
Show file tree
Hide file tree
Showing 32 changed files with 90 additions and 270 deletions.
4 changes: 1 addition & 3 deletions src/accounts/nexus/interfaces/INexusBootstrap.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ interface INexusBootstrap {
/// @notice Prepares calldata for the initNexusWithSingleValidator function.
/// @param validator The configuration for the validator module.
/// @return init The prepared calldata for initNexusWithSingleValidator.
function getInitNexusWithSingleValidatorCalldata(
BootstrapConfig calldata validator
)
function getInitNexusWithSingleValidatorCalldata(BootstrapConfig calldata validator)
external
view
returns (bytes memory init);
Expand Down
4 changes: 1 addition & 3 deletions src/integrations/interfaces/IFLParamGetter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
pragma solidity ^0.8.10;

abstract contract IFLParamGetter {
function getFlashLoanParams(
bytes memory _data
)
function getFlashLoanParams(bytes memory _data)
public
view
virtual
Expand Down
32 changes: 8 additions & 24 deletions src/integrations/interfaces/ILendingPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ abstract contract ILendingPool {
function getReserves() external view virtual returns (address[] memory);

/// @param _reserve underlying token address
function getReserveData(
address _reserve
)
function getReserveData(address _reserve)
external
view
virtual
Expand All @@ -76,9 +74,7 @@ abstract contract ILendingPool {
); // timestamp of the last update of reserve data

/// @param _user users address
function getUserAccountData(
address _user
)
function getUserAccountData(address _user)
external
view
virtual
Expand Down Expand Up @@ -118,9 +114,7 @@ abstract contract ILendingPool {
bool usageAsCollateralEnabled
); // Whether the user's current reserve is enabled as a collateral

function getReserveConfigurationData(
address _reserve
)
function getReserveConfigurationData(address _reserve)
external
view
virtual
Expand All @@ -138,9 +132,7 @@ abstract contract ILendingPool {
// ------------------ LendingPoolCoreData ------------------------
function getReserveATokenAddress(address _reserve) public view virtual returns (address);

function getReserveConfiguration(
address _reserve
)
function getReserveConfiguration(address _reserve)
external
view
virtual
Expand All @@ -155,17 +147,13 @@ abstract contract ILendingPool {
virtual
returns (uint256);

function getReserveCurrentLiquidityRate(
address _reserve
)
function getReserveCurrentLiquidityRate(address _reserve)
public
view
virtual
returns (uint256);

function getReserveCurrentVariableBorrowRate(
address _reserve
)
function getReserveCurrentVariableBorrowRate(address _reserve)
public
view
virtual
Expand All @@ -175,18 +163,14 @@ abstract contract ILendingPool {

function getReserveAvailableLiquidity(address _reserve) public view virtual returns (uint256);

function getReserveTotalBorrowsVariable(
address _reserve
)
function getReserveTotalBorrowsVariable(address _reserve)
public
view
virtual
returns (uint256);

// ---------------- LendingPoolDataProvider ---------------------
function calculateUserGlobalData(
address _user
)
function calculateUserGlobalData(address _user)
public
view
virtual
Expand Down
36 changes: 9 additions & 27 deletions src/integrations/interfaces/aave/ILendingPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ abstract contract ILendingPool {
function getReserves() external view virtual returns (address[] memory);

/// @param _reserve underlying token address
function getReserveData(
address _reserve
)
function getReserveData(address _reserve)
external
view
virtual
Expand All @@ -69,9 +67,7 @@ abstract contract ILendingPool {
); // timestamp of the last update of reserve data

/// @param _user users address
function getUserAccountData(
address _user
)
function getUserAccountData(address _user)
external
view
virtual
Expand Down Expand Up @@ -111,9 +107,7 @@ abstract contract ILendingPool {
bool usageAsCollateralEnabled
); // Whether the user's current reserve is enabled as a collateral

function getReserveConfigurationData(
address _reserve
)
function getReserveConfigurationData(address _reserve)
external
view
virtual
Expand All @@ -130,9 +124,7 @@ abstract contract ILendingPool {

// ------------------ LendingPoolCoreData ------------------------
function getReserveATokenAddress(address _reserve) public view virtual returns (address);
function getReserveConfiguration(
address _reserve
)
function getReserveConfiguration(address _reserve)
external
view
virtual
Expand All @@ -146,41 +138,31 @@ abstract contract ILendingPool {
virtual
returns (uint256);

function getReserveCurrentLiquidityRate(
address _reserve
)
function getReserveCurrentLiquidityRate(address _reserve)
public
view
virtual
returns (uint256);
function getReserveCurrentVariableBorrowRate(
address _reserve
)
function getReserveCurrentVariableBorrowRate(address _reserve)
public
view
virtual
returns (uint256);
function getReserveCurrentStableBorrowRate(
address _reserve
)
function getReserveCurrentStableBorrowRate(address _reserve)
public
view
virtual
returns (uint256);
function getReserveTotalLiquidity(address _reserve) public view virtual returns (uint256);
function getReserveAvailableLiquidity(address _reserve) public view virtual returns (uint256);
function getReserveTotalBorrowsVariable(
address _reserve
)
function getReserveTotalBorrowsVariable(address _reserve)
public
view
virtual
returns (uint256);

// ---------------- LendingPoolDataProvider ---------------------
function calculateUserGlobalData(
address _user
)
function calculateUserGlobalData(address _user)
public
view
virtual
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ abstract contract IAaveProtocolDataProviderV2 {

function getAllATokens() external view virtual returns (TokenData[] memory);

function getReserveConfigurationData(
address asset
)
function getReserveConfigurationData(address asset)
external
view
virtual
Expand All @@ -31,9 +29,7 @@ abstract contract IAaveProtocolDataProviderV2 {
bool isFrozen
);

function getReserveData(
address asset
)
function getReserveData(address asset)
external
view
virtual
Expand Down Expand Up @@ -69,9 +65,7 @@ abstract contract IAaveProtocolDataProviderV2 {
bool usageAsCollateralEnabled
);

function getReserveTokensAddresses(
address asset
)
function getReserveTokensAddresses(address asset)
external
view
virtual
Expand Down
12 changes: 3 additions & 9 deletions src/integrations/interfaces/aaveV2/ILendingPoolV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,7 @@ interface ILendingPoolV2 {
* @return healthFactor the current health factor of the user
*
*/
function getUserAccountData(
address user
)
function getUserAccountData(address user)
external
view
returns (
Expand Down Expand Up @@ -461,9 +459,7 @@ interface ILendingPoolV2 {
* @return The configuration of the reserve
*
*/
function getConfiguration(
address asset
)
function getConfiguration(address asset)
external
view
returns (DataTypes.ReserveConfigurationMap memory);
Expand All @@ -474,9 +470,7 @@ interface ILendingPoolV2 {
* @return The configuration of the user
*
*/
function getUserConfiguration(
address user
)
function getUserConfiguration(address user)
external
view
returns (DataTypes.UserConfigurationMap memory);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ pragma solidity ^0.8.10;

abstract contract IPriceOracleGetterAave {
function getAssetPrice(address _asset) external view virtual returns (uint256);
function getAssetsPrices(
address[] calldata _assets
)
function getAssetsPrices(address[] calldata _assets)
external
view
virtual
Expand Down
16 changes: 4 additions & 12 deletions src/integrations/interfaces/aaveV3/IPoolV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -574,9 +574,7 @@ interface IPoolV3 {
* @return healthFactor The current health factor of the user
*
*/
function getUserAccountData(
address user
)
function getUserAccountData(address user)
external
view
returns (
Expand Down Expand Up @@ -650,9 +648,7 @@ interface IPoolV3 {
* @return The configuration of the reserve
*
*/
function getConfiguration(
address asset
)
function getConfiguration(address asset)
external
view
returns (DataTypes.ReserveConfigurationMap memory);
Expand All @@ -663,9 +659,7 @@ interface IPoolV3 {
* @return The configuration of the user
*
*/
function getUserConfiguration(
address user
)
function getUserConfiguration(address user)
external
view
returns (DataTypes.UserConfigurationMap memory);
Expand Down Expand Up @@ -766,9 +760,7 @@ interface IPoolV3 {
* @param id The id of the category
* @return The configuration data of the category
*/
function getEModeCategoryData(
uint8 id
)
function getEModeCategoryData(uint8 id)
external
view
returns (DataTypes.EModeCategory memory);
Expand Down
4 changes: 1 addition & 3 deletions src/integrations/interfaces/aaveV3/IRewardsController.sol
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,7 @@ interface IRewardsController is IRewardsDistributor {
* as "rewardsList"
*
*/
function claimAllRewardsToSelf(
address[] calldata assets
)
function claimAllRewardsToSelf(address[] calldata assets)
external
returns (address[] memory rewardsList, uint256[] memory claimedAmounts);
}
4 changes: 1 addition & 3 deletions src/integrations/interfaces/balancer/IVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ interface IVault {
bool toInternalBalance;
}

function getPoolTokens(
bytes32 poolId
)
function getPoolTokens(bytes32 poolId)
external
view
returns (address[] memory tokens, uint256[] memory balances, uint256 lastChangeBlock);
Expand Down
4 changes: 1 addition & 3 deletions src/integrations/interfaces/chainlink/IAggregatorV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ interface IAggregatorV3 {
// getRoundData and latestRoundData should both raise "No data present"
// if they do not have data to report, instead of returning unset values
// which could be misinterpreted as actual reported values.
function getRoundData(
uint80 _roundId
)
function getRoundData(uint80 _roundId)
external
view
returns (
Expand Down
4 changes: 1 addition & 3 deletions src/integrations/interfaces/compound/ICToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ abstract contract ICToken is IERC20 {

function underlying() external virtual returns (address);

function getAccountSnapshot(
address account
)
function getAccountSnapshot(address account)
external
view
virtual
Expand Down
4 changes: 1 addition & 3 deletions src/integrations/interfaces/compound/IComptroller.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ abstract contract IComptroller {

function markets(address account) public view virtual returns (bool, uint256);

function getAccountLiquidity(
address account
)
function getAccountLiquidity(address account)
external
view
virtual
Expand Down
Loading

0 comments on commit 67a5c02

Please sign in to comment.