Skip to content

Commit

Permalink
fix description for 253 bit
Browse files Browse the repository at this point in the history
  • Loading branch information
ZumZoom committed Dec 13, 2023
1 parent 827164d commit 3c9b8ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contracts/libraries/MakerTraitsLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ type MakerTraits is uint256;
* High bits are used for flags
* 255 bit `NO_PARTIAL_FILLS_FLAG` - if set, the order does not allow partial fills
* 254 bit `ALLOW_MULTIPLE_FILLS_FLAG` - if set, the order permits multiple fills
* 253 bit - unused
* 252 bit `PRE_INTERACTION_CALL_FLAG` - if set, the order requires pre-interaction call
* 251 bit `POST_INTERACTION_CALL_FLAG` - if set, the order requires post-interaction call
* 250 bit `NEED_CHECK_EPOCH_MANAGER_FLAG` - if set, the order requires to check the epoch manager
Expand Down
2 changes: 1 addition & 1 deletion description.md
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ The `takerTraits` argument provides a number of options for the taker to choose
| --- | --- | --- | --- |
| MAKER_AMOUNT_FLAG | 255 bit | 1 | If set, the protocol implies that the passed amount is the making amount, and the taking amount will be calculated based on the making amount. Otherwise, the passed amount is the taking amount, and the making amount is calculated based on the taking amount. The amount is calculated with AmountCalculator if getters are not set, or with getters provided with an extension by the maker. |
| UNWRAP_WETH_FLAG | 254 bit | 1 | If set, the WETH will be unwrapped into ETH before sending to the taker's target address. |
| SKIP_ORDER_PERMIT_FLAG | 253 bit | 1 | If set, the order skips the maker's permit application. It can be useful to skip the maker's permit application if the permit was already applied during recursive fill. |
| | 253 bit | 1 | Unused |
| USE_PERMIT2_FLAG | 252 bit | 1 | If set, the order uses the [Uniswap Permit 2](https://github.com/Uniswap/permit2). |
| ARGS_HAS_TARGET | 251 bit | 1 | If set, then first 20 bytes of args are treated as target address for maker’s funds transfer |
| ARGS_EXTENSION_LENGTH | 224-247 | 24 | Extension calldata coded in args argument length |
Expand Down

0 comments on commit 3c9b8ab

Please sign in to comment.