Skip to content

Commit

Permalink
require of withdraw_filter() improved, format type: uint8
Browse files Browse the repository at this point in the history
  • Loading branch information
KenatSF committed Feb 17, 2023
1 parent b7ddc4f commit d5c3bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/Flashy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ contract Flashy is FlashLoanReceiverBase, newFilter {
return withdraw_weth(_percentage);
} else {
// The lines below are not the best way to proceed, because of we've aumented the number of txs however the payment for the minner is only allowed with WETH
require((0 <= _dex) && (_dex < 3), "Invalid dex option for withdraw ETH!");
require(_dex < 3, "Invalid dex option for withdraw ETH!");
if (DEX_Selection.SUSHI == DEX_Selection(_dex)) {
sushi(_token, address(weth), IERC20(_token).balanceOf(address(this)));
return withdraw_weth(_percentage);
Expand Down

1 comment on commit d5c3bb3

@Levyshow10
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I Want To Buy It Today,
Usdt or btc flash binance
Call Me On Whatsapp +5527992283699
[email protected]

Please sign in to comment.