Skip to content

Commit

Permalink
Remove logs and adjust github workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoopmann committed Feb 25, 2024
1 parent 4431dba commit c4fe350
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: test
on: workflow_dispatch

env:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
FOUNDRY_PROFILE: ci

jobs:
Expand Down
12 changes: 0 additions & 12 deletions test/AuctionBot.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,9 @@ contract TestAuctionBot is Test {
}

function _fulfillComponentBidViaBalancer(address componentAddress, uint256 componentQuantityPercentage, IUniswapV3Pool pool, bytes32 balancerPoolId) internal {
console.log("Fulfilling bid for component: ", componentAddress);
(bool isSellAuction, uint256 componentQuantityTotal) = auctionRebalanceModule.getAuctionSizeAndDirection(dsEthAddress, componentAddress);

uint256 componentQuantity = componentQuantityTotal * componentQuantityPercentage / 100;
console.log("componentQuantity: ", componentQuantity);
console.log("isSellAuction: ", isSellAuction);

uint256 quoteQuantityLimit = isSellAuction ? type(uint256).max : 0;

Expand All @@ -157,23 +154,16 @@ contract TestAuctionBot is Test {
balancerPoolId
);

console.log("Profit: ", componentBalanceAfter);
}

function _fulfillComponentBid(address componentAddress, uint256 componentQuantityPercentage, IUniswapV3Pool pool) internal {
console.log("Fulfilling bid for component: ", componentAddress);
(bool isSellAuction, uint256 componentQuantityTotal) = auctionRebalanceModule.getAuctionSizeAndDirection(dsEthAddress, componentAddress);

console.log("isSellAuction: ", isSellAuction);
uint256 componentQuantity = componentQuantityTotal * componentQuantityPercentage / 100;
console.log("componentQuantity: ", componentQuantity);

uint256 quoteQuantityLimit = isSellAuction ? type(uint256).max : 0;

uint256 uniswapPrice = _getUniswapPrice(pool, componentAddress);
console.log("uniswapPrice: ", uniswapPrice);
console.log("quoteAssetQuantityUniswapPrice: ", uniswapPrice * componentQuantity / 1e18);
console.log("quoteAssetBalance: ", IERC20(wethAddress).balanceOf(dsEthAddress));

IAuctionRebalanceModule.BidInfo memory bidPreview = auctionRebalanceModule.getBidPreview(
dsEthAddress,
Expand All @@ -184,8 +174,6 @@ contract TestAuctionBot is Test {
isSellAuction
);

console.log("bidPreview.componentPrice: ", bidPreview.componentPrice);
console.log("bidPreview.quantitySentBySet", bidPreview.quantitySentBySet);


vm.prank(arbBotOwner);
Expand Down

0 comments on commit c4fe350

Please sign in to comment.