Skip to content

Commit

Permalink
style: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bayological committed Aug 2, 2023
1 parent ea144e7 commit 8374c6a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 0 additions & 2 deletions contracts/swap/BiPoolManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,8 @@ contract BiPoolManager is IExchangeProvider, IBiPoolManager, Initializable, Owna
external
onlyOwner
{

require(tokens.length == precisionMultipliers.length, "tokens and precisionMultipliers must be the same length");
for (uint256 i = 0; i < tokens.length; i++) {

require(
reserve.isStableAsset(tokens[i]) || reserve.isCollateralAsset(tokens[i]),
"token must be a reserve stable or collateral"
Expand Down
12 changes: 10 additions & 2 deletions test/swap/BiPoolManager.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ contract BiPoolManagerTest is Test {
BiPoolManager biPoolManager;
MockBreakerBox breaker;

function newMockERC20(string memory name, string memory symbol, uint256 decimals) internal returns (MockERC20 token) {
function newMockERC20(
string memory name,
string memory symbol,
uint256 decimals
) internal returns (MockERC20 token) {
token = new MockERC20(name, symbol, decimals);
vm.label(address(token), symbol);
}
Expand Down Expand Up @@ -891,7 +895,11 @@ contract BiPoolManagerTest_bucketUpdates is BiPoolManagerTest_withExchange {
changePrank(broker);
}

function swap(bytes32 exchangeId_cUSD_CELO, uint256 amountIn, uint256 amountOut) internal {
function swap(
bytes32 exchangeId_cUSD_CELO,
uint256 amountIn,
uint256 amountOut
) internal {
BiPoolManager.PoolExchange memory exchange = biPoolManager.getPoolExchange(exchangeId_cUSD_CELO);
mockGetAmountOut(constantProduct, amountOut);
biPoolManager.swapIn(exchangeId_cUSD_CELO, exchange.asset0, exchange.asset1, amountIn);
Expand Down

0 comments on commit 8374c6a

Please sign in to comment.