Skip to content

Commit

Permalink
refine code based on comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alex0207s committed Jul 17, 2024
1 parent e7cf3c4 commit fe5a6f4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions contracts/RFQ.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ import { SignatureValidator } from "./libraries/SignatureValidator.sol";
contract RFQ is IRFQ, Ownable, TokenCollector, EIP712 {
using Asset for address;

/// @dev Flag indicating whether contract sender is allowed.
/// @dev Flag used to mark contract allowance in `RFQOffer.flag`.
/// The left-most bit (bit 255) of the RFQOffer.flags represents whether the contract sender is allowed.
uint256 private constant FLG_ALLOW_CONTRACT_SENDER = 1 << 255;

/// @dev Flag indicating whether partial fill is allowed.
/// @dev Flag used to mark partial fill allowance in `RFQOffer.flag`.
/// The second left-most bit (bit 254) of the RFQOffer.flags represents whether partial fill is allowed.
uint256 private constant FLG_ALLOW_PARTIAL_FILL = 1 << 254;

/// @dev Flag indicating whether market maker receives WETH.
/// @dev Flag used to mark market maker receives WETH in `RFQOffer.flag`.
/// The third left-most bit (bit 253) of the RFQOffer.flags represents whether the market maker receives WETH.
uint256 private constant FLG_MAKER_RECEIVES_WETH = 1 << 253;

IWETH public immutable weth;
Expand Down

0 comments on commit fe5a6f4

Please sign in to comment.