Putty position tokens may be minted to non ERC721 receivers
The Putty protocol mints ERC721 position tokens using an unsafe mint function that does not verify the recipient can handle ERC721 tokens. If a maker or taker is a contract unable to receive ERC721 tokens, their position tokens may become locked and nontransferable, preventing them from exercising or withdrawing assets.
Originally disclosed on Code4rena
Submitted by horsefacts, also found by 0xc0ffEE, 0xsanson, berndartmueller, BowTiedWardens, csanuragjain, defsec, IllIllI, joestakey, Kenshin, Picodes, shenwilly, Sm4rty, unforgiven, and xiaoming90
Vulnerability Details
Putty uses ERC721 safeTransfer and safeTransferFrom throughout the codebase to ensure that ERC721 tokens are not transferred to non ERC721 receivers. However, the initial position mint in fillOrder uses _mint rather than _safeMint and does not check that the receiver accepts ERC721 token transfers:
// create long/short position for maker
_mint(order.maker, uint256(orderHash));
// create opposite long/short position for taker
bytes32 oppositeOrderHash = hashOppositeOrder(order);
positionId = uint256(oppositeOrderHash);
_mint(msg.sender, positionId);
function _mint(address to, uint256 id) internal override {
require(to != address(0), "INVALID_RECIPIENT");
require(_ownerOf[id] == address(0), "ALREADY_MINTED");
_ownerOf[id] = to;
emit Transfer(address(0), to, id);
}
Impact
If a maker or taker are a contract unable to receive ERC721 tokens, their options positions may be locked and nontransferable. If the receiving contract does not provide a mechanism for interacting with Putty, they will be unable to exercise their position or withdraw assets.
Recommendation
Consider implementing the require check in Solmate’s ERC721#_safeMint in your own mint function:
function _safeMint(address to, uint256 id) internal virtual {
_mint(to, id);
require(
to.code.length == 0 ||
ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
ERC721TokenReceiver.onERC721Received.selector,
"UNSAFE_RECIPIENT"
);
}
However, note that calling _safeMint introduces a reentrancy opportunity! If you make this change, ensure that the mint is treated as an interaction rather than an effect, and consider adding a reentrancy guard:
/* ~~~ EFFECTS ~~~ */
// create opposite long/short position for taker
bytes32 oppositeOrderHash = hashOppositeOrder(order);
positionId = uint256(oppositeOrderHash);
// save floorAssetTokenIds if filling a long call order
if (order.isLong && order.isCall) {
positionFloorAssetTokenIds[uint256(orderHash)] = floorAssetTokenIds;
}
// save the long position expiration
positionExpirations[order.isLong ? uint256(orderHash) : positionId] = block.timestamp + order.duration;
emit FilledOrder(orderHash, floorAssetTokenIds, order);
/* ~~~ INTERACTIONS ~~~ */
_safeMint(order.maker, uint256(orderHash));
_safeMint(msg.sender, positionId);
Alternatively, document the design decision to use _mint and the associated risk for end users.
outdoteth (Putty Finance) acknowledged, but disagreed with severity and commented:
It’s unlikely a contract will have all the setup required to interact with PuttyV2 but not be able to handle ERC721 tokens. Adding a check via safeMint adds a gas overhead as well as another re-entrancy attack vector so there is a tradeoff (as noted in the issue report^^).
Report: Contracts that can’t handle ERC721 tokens will lose their Putty ERC721 position tokens.
In addition, some contracts may have custom logic in their
onERC721Received()implementation that is triggered only by the safe methods and not their “unsafe” counterparts.
Context
Putty is an options protocol for ERC721 tokens. A user can fill an order and, in return, receives an on-chain position token that represents their long or short side of the trade. Those position tokens are themselves ERC721 tokens, issued by the PuttyV2Nft contract, and they are what the holder later uses to exercise the position or withdraw the underlying assets.
The codebase generally takes care to use the safe transfer variants (safeTransfer and safeTransferFrom) so that ERC721 tokens are never sent to a contract that cannot receive them. The finding is that the initial position mint inside fillOrder does not follow that convention.
Setup
The report is a Code4rena audit finding against the Putty codebase at commit [redacted]. The relevant files are:
contracts/src/PuttyV2.sol, specifically the position mint infillOrder(lines 302 to 308).contracts/src/PuttyV2Nft.sol, specifically the overridden_mint(lines 11 to 18).
No accounts, tooling or deployment steps are described; the analysis is a source review of those two functions. The precondition for the issue is that either the maker or the taker is a contract unable to receive ERC721 tokens.
Finding it
The researcher compared the transfer behaviour used elsewhere in the codebase with the mint behaviour used when a position is first created. Everywhere else, the safe variants are used so that a recipient contract is asked whether it accepts the token. The initial position mint in fillOrder instead calls _mint directly, so no acceptance check happens.
From PuttyV2#fillOrder:
// create long/short position for maker
_mint(order.maker, uint256(orderHash));
// create opposite long/short position for taker
bytes32 oppositeOrderHash = hashOppositeOrder(order);
positionId = uint256(oppositeOrderHash);
_mint(msg.sender, positionId);
Both sides of the trade are minted with _mint: the maker receives the position keyed by orderHash, and the taker (msg.sender) receives the position keyed by the hash of the opposite order. Neither call checks the recipient.
The overridden mint in PuttyV2Nft confirms that no such check exists in the implementation either:
function _mint(address to, uint256 id) internal override {
require(to != address(0), "INVALID_RECIPIENT");
require(_ownerOf[id] == address(0), "ALREADY_MINTED");
_ownerOf[id] = to;
emit Transfer(address(0), to, id);
}
The only guards are that the recipient is not the zero address and that the position id has not already been minted. There is no call to onERC721Received and no check of the recipient's code length, so a contract recipient is treated exactly like an externally owned account.
Exploitation
This is not an attack by a third party; the risk is that a contract recipient's position becomes locked. The steps describe the conditions under which the lock occurs.
Step 1: a contract fills or makes an order
A maker or taker that is a contract, and that is unable to receive ERC721 tokens, calls into fillOrder (or has an order filled on its behalf as maker). Because the mint path uses _mint, the call succeeds and the position token is assigned to the contract's address.
Step 2: the position is stranded
The contract now owns a Putty position token, but the standard receiver callback was never invoked. The position may be locked and nontransferable.
Step 3: the position cannot be used
If the receiving contract also has no mechanism for interacting with Putty, it cannot exercise the position or withdraw the assets behind it. The position exists on-chain but is effectively unusable.
Root cause
The mistake is the use of _mint rather than a safe mint for the initial position creation in fillOrder. The codebase's own convention of using safe transfers does not protect this path, because the position tokens are created rather than transferred, and the custom _mint in PuttyV2Nft performs no recipient check. Existing defences (the zero-address and already-minted requires) only prevent invalid ids and zero recipients; they say nothing about whether the recipient can handle an ERC721 token.
Impact
If a maker or taker is a contract unable to receive ERC721 tokens, their options positions may be locked and non-transferable. If that contract provides no mechanism for interacting with Putty, the holder will be unable to exercise the position or withdraw assets. The severity is bounded by how likely such a contract is: the protocol team argued that a contract with all the setup needed to interact with PuttyV2 but no ability to handle ERC721 tokens is unlikely.
Fix
The recommendation is to add the recipient check from Solmate's ERC721#_safeMint to the project's own mint function:
function _safeMint(address to, uint256 id) internal virtual {
_mint(to, id);
require(
to.code.length == 0 ||
ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
ERC721TokenReceiver.onERC721Received.selector,
"UNSAFE_RECIPIENT"
);
}
The report warns that adopting _safeMint introduces a reentrancy opportunity, because the receiver callback hands control to the recipient mid-transaction. If the change is made, the mint should be treated as an interaction rather than an effect, and a reentrancy guard should be considered. The suggested ordering moves the state updates and the FilledOrder event ahead of the mints:
/* ~~~ EFFECTS ~~~ */
// create opposite long/short position for taker
bytes32 oppositeOrderHash = hashOppositeOrder(order);
positionId = uint256(oppositeOrderHash);
// save floorAssetTokenIds if filling a long call order
if (order.isLong && order.isCall) {
positionFloorAssetTokenIds[uint256(orderHash)] = floorAssetTokenIds;
}
// save the long position expiration
positionExpirations[order.isLong ? uint256(orderHash) : positionId] = block.timestamp + order.duration;
emit FilledOrder(orderHash, floorAssetTokenIds, order);
/* ~~~ INTERACTIONS ~~~ */
_safeMint(order.maker, uint256(orderHash));
_safeMint(msg.sender, positionId);
As an alternative, the report suggests documenting the design decision to use _mint and the associated risk for end users.
The Putty team acknowledged the finding but disagreed with the severity, noting that a contract with all the setup required to interact with PuttyV2 but no ability to handle ERC721 tokens is unlikely, and that a safe mint adds gas overhead and another reentrancy vector, so there is a tradeoff. The judge added that some contracts may implement custom logic in onERC721Received() that is triggered only by the safe methods and not by the unsafe ones, which is a further reason the check matters.
Variants to test
- Other mint paths in the same protocol. Look for every
_mintcall that creates a position, receipt or share token. A positive result is a mint to an arbitrary recipient with noonERC721Receivedcheck and no code-length check. - Custom token implementations that override
_mint. Where a project replaces a library's mint with its own, compare it against the library's_safeMint. A positive result is an override that keeps the zero-address and duplicate-id requires but drops the receiver callback. - Contracts as order makers. Check whether orders can be created by contracts (for example through a router or vault) and whether the resulting position is minted to that contract. A positive result is a position owned by a contract with no transfer or exercise path.
- Receiver-dependent logic. For protocols that rely on
onERC721Receivedto register deposits, check whether any path mints without invoking it. A positive result is a token that exists on-chain but is invisible to the receiving contract's accounting.
Hunting notes
This class of bug hides in the gap between a codebase's transfer convention and its mint convention. Auditors and hunters should grep for _mint( and _safeMint( side by side: if the codebase uses safe transfers everywhere but plain _mint for creation, that asymmetry is the signal. Custom token contracts that override library internals are the other common location, because the override can silently drop the safety check while keeping the obvious requires.
The impact case here rests on a concrete failure mode: a position token that is locked, non-transferable and unusable because the owning contract has no way to exercise or withdraw. The judge added that some contracts may have custom logic in onERC721Received() triggered only by the safe methods. The protocol team's counterargument, that such a contract is unlikely to have the rest of the Putty integration in place, is the main reason the severity was contested, so a hunter pursuing a similar finding should show a realistic contract that would end up in this state rather than a purely hypothetical one.
What happened, in plain words
Putty is a service on a blockchain that lets people trade options on digital collectibles. An option is a contract that gives someone the right to buy or sell something later at an agreed price. In Putty, the thing being traded is an ERC721 token, which is the standard format for a unique digital item (often called an NFT).
When someone fills an order on Putty, the service gives them a position token. This is a receipt that records which side of the trade they are on, long or short, and it is what they later hand back to exercise the option or to collect the assets behind it. Position tokens are themselves ERC721 tokens, created by a contract called PuttyV2Nft.
ERC721 has a safety feature. When a token is sent to a contract (a program living on the blockchain, rather than a person's wallet), the sender can ask the receiving contract a question first: "do you know how to handle this token?" The receiving contract answers through a function called onERC721Received. If it does not answer correctly, the transfer is refused. This stops tokens being sent into a contract that would not know what to do with them, where they would be stuck forever.
The finding is that Putty uses this safety check almost everywhere, but not when it first creates a position token. It uses a plain creation function, _mint, which skips the question. So a contract that cannot handle ERC721 tokens can end up owning a position token it can never move, use or cash in.
Background: the pieces involved
A few ideas are needed before the code makes sense.
- Smart contract: a program stored on a blockchain. It runs automatically and anyone can call it. Think of it as a vending machine: you press a button, it does exactly what its code says, with no human in the middle.
- ERC721 token: a standard for unique tokens on a blockchain. Each token has an owner and an id number. The standard defines functions for transferring tokens and for asking a contract whether it accepts them.
- Mint: to create a token for the first time and assign it to an address. Minting is different from transferring: a transfer moves an existing token, a mint brings a new one into existence.
- Safe transfer: a transfer that first asks the receiving contract whether it can handle the token. If the contract does not answer correctly, the transfer fails and nothing changes.
- Position token: Putty's receipt for a trade. Holding it is what gives you the right to exercise the option or withdraw the assets.
- Maker and taker: the two sides of an order. The maker places the order, the taker fills it.
- Reentrancy: a bug where a contract calls out to another contract in the middle of its work, and that other contract calls back in before the first one has finished, catching it in a half-updated state. It is like a shop assistant going to the back room to fetch an item while the customer, left alone at the till, rings up their own refund.
Setup
This is an audit finding from Code4rena, a service where independent researchers review a project's code and report problems. The review looked at the Putty codebase at a specific saved version, identified by the commit [redacted]. A commit is a snapshot of a code repository, so this identifies exactly which version was examined.
Two files matter:
contracts/src/PuttyV2.sol, specifically the part of thefillOrderfunction that creates position tokens (lines 302 to 308).contracts/src/PuttyV2Nft.sol, specifically the custom_mintfunction (lines 11 to 18).
No accounts, tools or deployment steps are involved. The researcher read the source code and compared two behaviours: how Putty moves tokens around, and how Putty creates them. The condition needed for the problem to occur is that either the maker or the taker is a contract that cannot handle ERC721 token transfers.
Finding it
The researcher compared the way the codebase moves tokens with the way it creates them.
Everywhere else, Putty uses the safe transfer functions, safeTransfer and safeTransferFrom. These ask the receiving contract whether it accepts the token before completing the transfer. The initial position creation inside fillOrder does not do this: it calls _mint directly, so no question is asked.
From PuttyV2#fillOrder:
// create long/short position for maker
_mint(order.maker, uint256(orderHash));
// create opposite long/short position for taker
bytes32 oppositeOrderHash = hashOppositeOrder(order);
positionId = uint256(oppositeOrderHash);
_mint(msg.sender, positionId);
Line by line:
_mint(order.maker, uint256(orderHash));creates a position token for the maker.order.makeris the address of the person or contract that placed the order.orderHashis a fingerprint of the order, and it is converted to a number to serve as the token's id. The comment above it says this is the maker's long or short position.bytes32 oppositeOrderHash = hashOppositeOrder(order);computes the fingerprint of the matching order on the other side of the trade.bytes32is a fixed-size data type for a 32-byte value, which is what a hash is.positionId = uint256(oppositeOrderHash);turns that fingerprint into a number and stores it as the id for the taker's position token._mint(msg.sender, positionId);creates the taker's position token.msg.senderis whoever called the function, in this case the taker.
Neither _mint call checks anything about the recipient. The maker and the taker are simply handed tokens.
The custom mint in PuttyV2Nft confirms that no check exists inside the implementation either:
function _mint(address to, uint256 id) internal override {
require(to != address(0), "INVALID_RECIPIENT");
require(_ownerOf[id] == address(0), "ALREADY_MINTED");
_ownerOf[id] = to;
emit Transfer(address(0), to, id);
}
Line by line:
function _mint(address to, uint256 id) internal override {declares the function.tois the recipient address,idis the token id.internalmeans only this contract and contracts built on top of it can call it.overridemeans it replaces a function of the same name inherited from a parent contract.require(to != address(0), "INVALID_RECIPIENT");refuses to mint to the zero address, a special address used to mean "nobody". If the condition fails, the whole call is cancelled and the messageINVALID_RECIPIENTis returned.require(_ownerOf[id] == address(0), "ALREADY_MINTED");refuses to mint an id that already has an owner._ownerOfis an internal record of who owns which id. If the id is already taken, the call fails withALREADY_MINTED._ownerOf[id] = to;records the new owner for this id.emit Transfer(address(0), to, id);announces the creation.emitpublishes an event, a log entry that outside observers can read. The standard for ERC721 says a creation is announced as a transfer from the zero address to the new owner.
The only guards are that the recipient is not the zero address and that the id has not been used before. There is no call to onERC721Received and no check of whether the recipient is a contract at all. A contract recipient is treated exactly like an ordinary wallet.
Exploitation
This is not an attack by a stranger against a victim; the risk is that a contract recipient's position becomes locked. The steps below describe the conditions under which the lock happens.
Step 1: a contract fills or makes an order
A maker or taker that is a contract, and that cannot receive ERC721 tokens, calls fillOrder, or has an order filled on its behalf as maker. Because the creation path uses _mint, the call succeeds and the position token is assigned to the contract's address. No question was asked, so nothing stopped it.
Step 2: the position is stranded
The contract now owns a Putty position token, but the standard receiver callback was never invoked. The position may be locked and cannot be transferred out.
Step 3: the position cannot be used
If the receiving contract also has no mechanism for interacting with Putty, it cannot exercise the position or withdraw the assets behind it. The position exists on the blockchain, visible to anyone, but it is effectively unusable.
Root cause
The mistake is using _mint instead of a safe mint when the initial position is created in fillOrder. The codebase's own habit of using safe transfers does not protect this path, because position tokens are created rather than transferred, and the custom _mint in PuttyV2Nft performs no recipient check. The existing defences, the zero-address and already-minted requirements, only prevent invalid ids and empty recipients. They say nothing about whether the recipient can handle an ERC721 token.
Impact
If a maker or taker is a contract unable to receive ERC721 tokens, their options positions may be locked and non-transferable. If that contract provides no mechanism for interacting with Putty, the holder will be unable to exercise the position or withdraw assets. How serious this is depends on how likely such a contract is. The protocol team argued that it is unlikely a contract will have all the setup required to interact with PuttyV2 but not be able to handle ERC721 tokens.
Fix
The recommendation is to add the recipient check from Solmate's ERC721#_safeMint to the project's own mint function. Solmate is a library of reusable contract code, and its safe mint is the version that asks the receiving contract whether it accepts the token.
function _safeMint(address to, uint256 id) internal virtual {
_mint(to, id);
require(
to.code.length == 0 ||
ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
ERC721TokenReceiver.onERC721Received.selector,
"UNSAFE_RECIPIENT"
);
}
Line by line:
function _safeMint(address to, uint256 id) internal virtual {declares a safe mint.virtualmeans contracts built on top of this one are allowed to replace it._mint(to, id);performs the ordinary creation first, exactly as before.require(starts a check that must pass for the whole call to succeed.to.code.length == 0 ||is the first half of the condition.to.code.lengthis the length of the code stored at the recipient's address. An ordinary wallet has no code, so its length is zero. The||means "or": if the recipient is a wallet, the check passes immediately and no question is asked.ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==is the second half, used only when the recipient is a contract. It calls the recipient'sonERC721Receivedfunction, passing the caller, the zero address (because this is a creation, not a transfer), the token id, and empty extra data.ERC721TokenReceiver.onERC721Received.selector,compares the answer with the standard expected value. Aselectoris the short identifier of a function, and a contract that accepts ERC721 tokens must return exactly this value to prove it understood the question."UNSAFE_RECIPIENT"is the error message if the recipient is a contract that does not answer correctly. The whole call is then cancelled.
The report warns that adopting _safeMint introduces a reentrancy opportunity, because the receiver callback hands control to the recipient in the middle of the transaction. If the change is made, the mint should be treated as an interaction rather than an effect, and a reentrancy guard should be considered. In plain terms: finish all your own bookkeeping first, then talk to the outside world. The suggested ordering moves the state updates and the FilledOrder event ahead of the mints:
/* ~~~ EFFECTS ~~~ */
// create opposite long/short position for taker
bytes32 oppositeOrderHash = hashOppositeOrder(order);
positionId = uint256(oppositeOrderHash);
// save floorAssetTokenIds if filling a long call order
if (order.isLong && order.isCall) {
positionFloorAssetTokenIds[uint256(orderHash)] = floorAssetTokenIds;
}
// save the long position expiration
positionExpirations[order.isLong ? uint256(orderHash) : positionId] = block.timestamp + order.duration;
emit FilledOrder(orderHash, floorAssetTokenIds, order);
/* ~~~ INTERACTIONS ~~~ */
_safeMint(order.maker, uint256(orderHash));
_safeMint(msg.sender, positionId);
Line by line:
- The
EFFECTScomment marks the section where the contract changes its own records. Doing this first means that if anything later calls back in, the records are already consistent. bytes32 oppositeOrderHash = hashOppositeOrder(order);andpositionId = uint256(oppositeOrderHash);compute the taker's position id, as before.if (order.isLong && order.isCall) {checks whether this is a long call order, meaning both flags on the order are true.positionFloorAssetTokenIds[uint256(orderHash)] = floorAssetTokenIds;stores the floor asset token ids for that order, if the condition held.positionExpirations[order.isLong ? uint256(orderHash) : positionId] = block.timestamp + order.duration;records when the position expires. The? :is a compact if/else: use the maker's id if the order is long, otherwise the taker's id.block.timestampis the current time according to the blockchain, andorder.durationis how long the position lasts.emit FilledOrder(orderHash, floorAssetTokenIds, order);announces that the order was filled.- The
INTERACTIONScomment marks the section where the contract talks to other contracts. This is where the safe mints now sit, last. _safeMint(order.maker, uint256(orderHash));and_safeMint(msg.sender, positionId);create both position tokens using the safe version, so a contract recipient is asked whether it accepts the token.
As an alternative, the report suggests documenting the design decision to use _mint and the associated risk for end users.
The Putty team acknowledged the finding but disagreed with the severity. They noted that a contract with all the setup required to interact with PuttyV2, but no ability to handle ERC721 tokens, is unlikely, and that a safe mint adds gas overhead and another reentrancy vector, so there is a tradeoff. Gas is the fee paid for computation on the blockchain, so extra checks cost the user money. The judge added that some contracts may implement custom logic in onERC721Received() that is triggered only by the safe methods and not by the unsafe ones.
Variants to test
These are the places a researcher would look for the same pattern elsewhere.
- Other mint paths in the same protocol. Look for every
_mintcall that creates a position, receipt or share token. A positive result is a mint to an arbitrary recipient with noonERC721Receivedcheck and no code-length check. - Custom token implementations that override
_mint. Where a project replaces a library's mint with its own, compare it against the library's_safeMint. A positive result is an override that keeps the zero-address and duplicate-id requirements but drops the receiver callback. - Contracts as order makers. Check whether orders can be created by contracts, for example through a router or a vault, and whether the resulting position is minted to that contract. A positive result is a position owned by a contract with no transfer or exercise path.
- Receiver-dependent logic. For protocols that rely on
onERC721Receivedto register deposits, check whether any path mints without invoking it. A positive result is a token that exists on-chain but is invisible to the receiving contract's accounting.
Hunting notes
This class of bug hides in the gap between a codebase's transfer convention and its mint convention. Auditors and hunters should search for _mint( and _safeMint( side by side: if the codebase uses safe transfers everywhere but plain _mint for creation, that asymmetry is the signal. Custom token contracts that override library internals are the other common location, because the override can silently drop the safety check while keeping the obvious requirements.
The impact case here rests on a concrete failure mode: a position token that is locked, non-transferable and unusable because the owning contract has no way to exercise or withdraw. The judge noted that contracts may implement custom logic in onERC721Received() that only the safe methods trigger. The protocol team's counterargument, that such a contract is unlikely to have the rest of the Putty integration in place, is the main reason the severity was contested, so a hunter pursuing a similar finding should show a realistic contract that would end up in this state rather than a purely hypothetical one.
Glossary
- Audit: a review of a project's code by independent researchers looking for security problems.
- Blockchain: a shared, append-only record of transactions maintained by many computers, where programs called smart contracts run.
- Code4rena: a service that runs contests in which researchers audit a project's code and submit findings.
- Commit: a saved snapshot of a code repository, identified by a long hexadecimal string.
- Contract (smart contract): a program stored on a blockchain that runs automatically when called.
- ERC721: the standard format for unique tokens on a blockchain, defining ownership, transfers and the receiver check.
- Event: a log entry a contract publishes so that outside observers can see something happened.
- Gas: the fee paid for computation on a blockchain; more work costs more.
- Hash: a short fingerprint computed from data, used here to derive token ids from orders.
- Interaction: in the checks-effects-interactions pattern, a call out to another contract, which should come after all of the caller's own bookkeeping is finished.
- Maker: the party that places an order.
onERC721Received: the function a contract implements to say it accepts ERC721 tokens; the safe transfer and safe mint functions call it.- Option: a contract giving the right to buy or sell something later at an agreed price.
- Position token: Putty's ERC721 receipt recording which side of a trade the holder is on.
- Reentrancy: a bug where a contract calls out to another contract mid-work and is called back into before it has finished, catching it in a half-updated state.
require: a check in a contract that cancels the whole call if its condition is false.- Safe transfer / safe mint: a transfer or creation that first asks a contract recipient whether it can handle the token, and fails if it cannot.
- Selector: the short identifier of a function, used to confirm a contract returned the expected answer.
- Solmate: a library of reusable smart contract code.
- Taker: the party that fills an order.
- Zero address: a special address meaning "nobody", used as a placeholder in token standards.