Skip to content
Business logic Audit finding Intermediate

Create a short call order with non empty floor makes the option impossible to exercise and withdraw

A short call option order with a non-empty floorTokens array cannot be exercised by the taker and cannot be withdrawn by the maker after expiry, locking the maker's ERC20 and ERC721 assets. An attacker could also grief other users by filling a short call with floor tokens that match another user's long call, causing that other user's option to become unexercisable and their funds locked.

zzzitron Follow

Originally disclosed on Code4rena

Submitted by zzzitron, also found by danb, Kenshin, Metatron, minhquanym, and PwnedNoMore

HIGH - assets can be lost

If a short call order is created with non empty floorTokens array, the taker cannot exercise. Also, the maker cannot withdraw after the expiration. The maker will still get premium when the order is filled. If the non empty floorTokens array was included as an accident, it is a loss for both parties: the taker loses premium without possible exercise, the maker loses the locked ERC20s and ERC721s.

This bug is not suitable for exploitation to get a ‘free’ premium by creating not exercisable options, because the maker will lose the ERC20s and ERC721s without getting any strike. In that sense it is similar but different issue to the Create a short put order with zero tokenAmount makes the option impossible to exercise, therefore reported separately.

Proof of Concept

The proof of concept shows a scenario where babe makes an short call order with non empty floorTokens array. Bob filled the order, and now he has long call option NFT. He wants to exercise his option and calls exercise. There are two cases.

  • case 1: he calls exercise with empty floorAssetTokenIds array
  • case 2: he calls exercise with non-empty floorAssetTokenIds array with matching length to the orders.floorTokens

In the case1, the input floorAssetTokenIds were checked to be empty for put orders, and his call passes this requirement. But eventually _transferFloorsIn was called and he gets Index out of bounds error, because floorTokens is not empty which does not match with empty floorAssetTokenIds.

// case 1
  // PuttyV2.sol: _transferFloorsIn called by exercise
  // The floorTokens and floorTokenIds do not match the lenghts
  // floorTokens.length is not zero, while floorTokenIds.length is zero

       ERC721(floorTokens[i]).safeTransferFrom(from, address(this), floorTokenIds[i]);

In the case2, the input floorAssetTokenIds were checked to be empty for put orders, but it is not empty. So it reverts.

// case2
// PuttyV2.sol: exercise
// non empty floorAssetTokenIds array is passed for put option, it will revert

        !order.isCall
            ? require(floorAssetTokenIds.length == order.floorTokens.length, "Wrong amount of floor tokenIds")
            : require(floorAssetTokenIds.length == 0, "Invalid floor tokenIds length");

After the option is expired, the maker - babe is trying to withdraw but fails due to the same issue with the case1.

// maker trying to withdraw
// PuttyV2.sol: withdraw

  _transferFloorsOut(order.floorTokens, positionFloorAssetTokenIds[floorPositionId]);

Note on the PoC:

  • The test for case1 is commented out because foundry could not catch the revert. But by running the test with un-commenting these lines will show that the call reverts with Index out of bounds.
  • For the same reason the withdraw also is commented out
  • The reference case just shows that it works as intended when the order does not contain non-empty floorTokens.

Tools Used

Foundry.

Recommended Mitigation Steps

It happens because the fillOrder does not ensure the order.floorTokens to be empty when the order is short call.

STYJ (warden) commented:

Note that it is possible to cause loss of funds for others through this.

Assume that maker (A) creates a long call and taker (B) fills it, transferring floor tokens (XYZ) into putty.

If maker (C) creates a short call with floorTokens (XYZ), taker (D) is able to fill and exercise his long call since XYZ already resides on Putty. This will however invalidate the options pair that was created between A and B since A cannot exercise and B cannot withdraw.

outdoteth (Putty Finance) commented:

Agree that this should be marked as high severity given the exploit scenario provided by @STYJ above.

outdoteth (Putty Finance) confirmed and commented:

Report: Short call with floorTokens will result in a revert when exercising.

HickupHH3 (judge) commented:

Agreed, all wardens gave the same scenario that leads to a direct loss of NFTs and premium, but @STYJ’s exploit scenario raises the gravity of the situation since users can be griefed.

outdoteth (Putty Finance) resolved:

PR with fix: https://github.com/outdoteth/putty-v2/pull/1.

hyh (warden) reviewed mitigation:

Fixed by prohibiting non-empty order.floorTokens for short calls.

Other option types do need floorTokens: long calls’ taker provides floor tokens on filling, while long put owner brings in the floor tokens on exercise, taking the strike. Short put owner can thereafter retrieve the tokens on withdraw.


The original report as published on Code4rena, by zzzitron. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

Context

Putty is an on-chain options protocol. A maker creates an order, a taker fills it, and the resulting position is represented as an NFT that can later be exercised or withdrawn. Orders come in four shapes: long call, short call, long put and short put. The floorTokens array on an order is meant to carry floor assets that back certain option types, and the contract moves those floor assets in and out with _transferFloorsIn and _transferFloorsOut.

This report concerns short call orders. In a short call the maker locks ERC20s and ERC721s and receives a premium when a taker fills the order. The taker receives a long call option NFT and can exercise it later. The finding is that a short call created with a non-empty floorTokens array produces an option that can never be exercised, and whose locked assets can never be withdrawn after expiry.

The same issue was found independently by danb, Kenshin, Metatron, minhquanym and PwnedNoMore. It was rated HIGH, with the note that assets can be lost.

Setup

The proof of concept was written as a Foundry test against the PuttyV2 contract. The scenario uses two parties: babe, the maker, and Bob, the taker. Babe creates a short call order with a non-empty floorTokens array. Bob fills the order and holds a long call option NFT. The test file is referenced as 2022-07-puttyv2.t.sol, with the main scenario at lines 153 to 202 and a reference case at lines 204 to 226.

No special accounts, headers or versions beyond the Foundry toolchain are described.

Finding it

The researcher noticed that fillOrder does not check that order.floorTokens is empty when the order is a short call. Because the floor array is accepted at fill time, the resulting position carries floor tokens that the exercise and withdraw paths cannot handle for a call option. The exercise path treats a call as requiring an empty floorAssetTokenIds array, while the withdraw path passes the stored floor tokens straight into _transferFloorsOut. The two expectations do not line up, so both paths revert.

The researcher explicitly separates this from a related issue, Create a short put order with zero tokenAmount makes the option impossible to exercise, and reports it on its own. The report also notes that this bug is not attractive as a way to obtain a free premium by creating non-exercisable options, because the maker loses the ERC20s and ERC721s without receiving any strike.

Exploitation

Step 1: the maker creates a short call with a non-empty floor array

Babe creates a short call order and includes a non-empty floorTokens array. The order is accepted and can be filled. The report does not show the order parameters themselves.

Step 2: the taker fills the order

Bob fills the order and receives a long call option NFT. The maker still receives the premium when the order is filled. Bob now wants to exercise, and calls exercise. There are two cases depending on what he passes for floorAssetTokenIds.

Step 3: case 1, exercise with an empty floorAssetTokenIds array

The input floorAssetTokenIds is checked to be empty for put orders, and Bob's empty array passes that requirement. The call then reaches _transferFloorsIn, where the lengths of floorTokens and floorTokenIds do not match: floorTokens.length is not zero while floorTokenIds.length is zero. The transfer reverts with Index out of bounds.

Text
// case 1
  // PuttyV2.sol: _transferFloorsIn called by exercise
  // The floorTokens and floorTokenIds do not match the lenghts
  // floorTokens.length is not zero, while floorTokenIds.length is zero

       ERC721(floorTokens[i]).safeTransferFrom(from, address(this), floorTokenIds[i]);

Step 4: case 2, exercise with a non-empty floorAssetTokenIds array

Bob passes a floorAssetTokenIds array whose length matches orders.floorTokens. The same check that requires an empty array for put orders now rejects the non-empty input, so the call reverts before any transfer.

Text
// case2
// PuttyV2.sol: exercise
// non empty floorAssetTokenIds array is passed for put option, it will revert

        !order.isCall
            ? require(floorAssetTokenIds.length == order.floorTokens.length, "Wrong amount of floor tokenIds")
            : require(floorAssetTokenIds.length == 0, "Invalid floor tokenIds length");

Step 5: the maker tries to withdraw after expiry

After the option expires, babe tries to withdraw the locked assets. The withdraw path calls _transferFloorsOut with the stored floor tokens and the position's floor asset token IDs, and fails for the same reason as case 1.

Text
// maker trying to withdraw
// PuttyV2.sol: withdraw

  _transferFloorsOut(order.floorTokens, positionFloorAssetTokenIds[floorPositionId]);

Notes on the proof of concept

The test for case 1 is commented out because Foundry could not catch the revert. Running the test with those lines uncommented shows the call reverting with Index out of bounds. The withdraw test is commented out for the same reason. The reference case shows that everything works as intended when the order does not contain a non-empty floorTokens array.

Root cause

The root cause is that fillOrder does not ensure that order.floorTokens is empty when the order is a short call. The exercise path for calls requires floorAssetTokenIds.length == 0, while the withdraw path forwards the stored floor tokens into _transferFloorsOut. A short call that carries floor tokens therefore satisfies neither path: exercise fails on the length mismatch, and withdraw fails on the same mismatch. The existing length checks in exercise only validate the caller's input against the order, not whether a call order should have floor tokens at all.

Impact

If a short call order is created with a non-empty floorTokens array, the taker cannot exercise and the maker cannot withdraw after expiration. If the non-empty array was included by accident, both parties lose: the taker loses the premium without any possible exercise, and the maker loses the locked ERC20s and ERC721s.

The report also records a griefing scenario raised during review. Maker A creates a long call and taker B fills it, transferring floor tokens (XYZ) into Putty. If maker C then creates a short call with floor tokens (XYZ), taker D can fill and exercise his long call because XYZ already resides on Putty. This invalidates the options pair between A and B, since A cannot exercise and B cannot withdraw. The judge noted that this scenario raises the severity because users can be griefed.

Fix

The recommended mitigation is for fillOrder to ensure that order.floorTokens is empty when the order is a short call. The Putty Finance team resolved the issue with a pull request that prohibits non-empty order.floorTokens for short calls. A reviewer confirmed the fix and noted that other option types do need floorTokens: a long call's taker provides floor tokens on filling, a long put owner brings in the floor tokens on exercise and takes the strike, and a short put owner can retrieve the tokens on withdraw.

Variants to test

  1. Create a short call with a non-empty floorTokens array and attempt to exercise with an empty floorAssetTokenIds array. A positive result is a revert such as Index out of bounds from the floor transfer.
  2. Create the same order and attempt to exercise with a floorAssetTokenIds array matching the length of floorTokens. A positive result is a revert on the call-side length check.
  3. Let the option expire and attempt to withdraw. A positive result is a revert in the floor transfer-out path.
  4. Repeat the griefing scenario: have one maker create a long call and a taker fill it with floor tokens, then have another maker create a short call with the same floor tokens and a taker fill and exercise it. A positive result is that the first pair can no longer be exercised or withdrawn.

Hunting notes

This kind of bug tends to hide where a single order structure is reused across option types with different expectations about optional arrays. During review, compare the validation in the fill path with the assumptions in the exercise and withdraw paths: if one path requires an array to be empty and another forwards it unconditionally, a mismatch is likely. The report demonstrated the direct loss for the two parties, and a warden's griefing scenario raised the severity because users can be griefed.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 14 min read.

What happened, in plain words

Putty is a program that runs on a blockchain (a shared computer that many people can use but nobody can quietly change). It lets two strangers make a deal about a financial product called an option. One person, the maker, writes the deal and locks up some valuable digital items as collateral. Another person, the taker, pays a small fee called a premium to accept the deal. The taker then holds a digital receipt, an NFT (a unique token on the blockchain that proves ownership), which they can later exercise to claim what the deal promised, or the maker can withdraw the collateral once the deal has expired.

This report is about one specific kind of deal, a short call. In a short call the maker locks up two kinds of digital assets: ERC20 tokens (fungible tokens, like ordinary currency, where every unit is the same) and ERC721 tokens (unique tokens, like a collectible card, where each one is different). The taker pays the premium and gets a long call option NFT. If everything works, the taker exercises later and the maker keeps the premium.

The bug is simple to state: if the maker creates a short call order that includes a non-empty floorTokens array (a list of extra "floor" assets attached to the order), the resulting option can never be exercised. Worse, after the option expires, the maker can never withdraw the locked ERC20s and ERC721s either. The assets are stuck forever. The maker still gets the premium when the order is filled, but the collateral is lost.

The same problem was found independently by several researchers: danb, Kenshin, Metatron, minhquanym and PwnedNoMore, alongside zzzitron who wrote this report. It was rated HIGH severity, with the note that assets can be lost.

Background you need first

Before walking through the bug, here are the ideas the report relies on, explained from scratch.

  • Blockchain: a shared ledger that many computers keep copies of. Once something is written, it is very hard to change. Programs that run on it are called smart contracts.
  • Smart contract: a program that lives on the blockchain and runs automatically. Putty is a smart contract (specifically PuttyV2).
  • ERC20 token: a fungible token. Think of it like a currency: one unit is interchangeable with another.
  • ERC721 token: a unique token, often used for collectibles or digital art. Each one has its own identity.
  • NFT: a non-fungible token, usually an ERC721. In this report, the option position itself is represented as an NFT, so the taker holds a token that proves they own the option.
  • Option: a deal that gives one side the right (not the obligation) to do something later, usually to buy or sell an asset at an agreed price. The agreed price is called the strike.
  • Call option: the right to buy something at the strike price.
  • Put option: the right to sell something at the strike price.
  • Long and short: the long side holds the option and can exercise it. The short side wrote the option and has locked collateral to back it.
  • Maker and taker: the maker creates the order. The taker accepts (fills) it and pays the premium.
  • Premium: the fee the taker pays the maker for taking on the deal.
  • Exercise: the taker uses the option to claim what the deal promised.
  • Withdraw: after the option expires, the maker takes back the collateral that was locked.
  • Floor tokens: extra assets attached to an order. In some option types they are needed as backing. In a short call they should not be there at all, and that is the heart of the bug.
  • Array: an ordered list of items. floorTokens is an array: it can be empty (no items) or non-empty (one or more items).
  • Revert: when a smart contract refuses to continue and undoes everything it did in that call. It is like a cashier refusing a transaction and handing everything back.
  • Foundry: a tool for writing and running tests against smart contracts. The proof of concept here is a Foundry test.
  • Proof of concept (PoC): a small, runnable demonstration that shows a bug is real.
  • Griefing: deliberately causing harm to other users, often without gaining anything yourself.

The setup

The proof of concept is a Foundry test written against the PuttyV2 contract. Two parties appear in it:

  1. babe, the maker, who creates the short call order with a non-empty floorTokens array.
  2. Bob, the taker, who fills the order and receives a long call option NFT.

The test file is referenced as 2022-07-puttyv2.t.sol. The main scenario sits at lines 153 to 202, and a reference case at lines 204 to 226. The report does not describe any special accounts, HTTP headers or software versions beyond the Foundry toolchain.

How the researcher found it

The researcher looked at the code path that fills an order, fillOrder, and noticed it does not check that order.floorTokens is empty when the order is a short call. Because the floor array is accepted at fill time, the resulting position carries floor tokens that the exercise and withdraw paths cannot handle for a call option.

Two other code paths then disagree with each other:

  • The exercise path treats a call as requiring an empty floorAssetTokenIds array.
  • The withdraw path passes the stored floor tokens straight into _transferFloorsOut.

Because the two paths expect different things, both of them revert. The option is stuck.

The researcher also explicitly separates this from a related issue, Create a short put order with zero tokenAmount makes the option impossible to exercise, and reports it on its own. The report also notes that this bug is not attractive as a way to get a free premium by creating non-exercisable options, because the maker loses the ERC20s and ERC721s without receiving any strike.

Walking through the exploit

Step 1: the maker creates a short call with a non-empty floor array

Babe creates a short call order and includes a non-empty floorTokens array. The order is accepted and can be filled. The report does not show the order parameters themselves, so we do not know the specific tokens or amounts used.

Why this matters: the contract does not reject this order at fill time, because a short call is not supposed to carry floor tokens. So the bad order goes through.

Step 2: the taker fills the order

Bob fills the order and receives a long call option NFT. The maker still receives the premium when the order is filled. Bob now wants to exercise, and calls exercise. There are two cases depending on what he passes for floorAssetTokenIds.

Why this matters: Bob has paid real money (the premium) for an option that, as we will see, cannot be used. He does not know this yet.

Step 3: case 1, exercise with an empty floorAssetTokenIds array

The input floorAssetTokenIds is checked to be empty for put orders, and Bob's empty array passes that requirement. The call then reaches _transferFloorsIn, where the lengths of floorTokens and floorTokenIds do not match: floorTokens.length is not zero while floorTokenIds.length is zero. The transfer reverts with Index out of bounds.

Text
// case 1
  // PuttyV2.sol: _transferFloorsIn called by exercise
  // The floorTokens and floorTokenIds do not match the lenghts
  // floorTokens.length is not zero, while floorTokenIds.length is zero

       ERC721(floorTokens[i]).safeTransferFrom(from, address(this), floorTokenIds[i]);

Line by line:

  • The first three lines are comments (they start with //) explaining the situation. They are not executed.
  • ERC721(floorTokens[i]) takes the item at position i in the floorTokens list and treats it as an ERC721 token contract. In plain words: "the collectible at slot i".
  • .safeTransferFrom(from, address(this), floorTokenIds[i]) asks that collectible to move itself from from (the person exercising) to address(this) (the Putty contract). The third argument, floorTokenIds[i], is the identifier of the specific collectible being moved.
  • The problem: floorTokens has at least one item, so i starts at 0 and the code tries to read floorTokenIds[0]. But floorTokenIds is empty, so there is no slot 0. The program stops with Index out of bounds, which means "you asked for an item in a list that does not exist".

Why this step was taken: the researcher wanted to show that the most natural thing a taker would do (pass an empty list, because a call should not need floor tokens) still fails, and fails deep inside the transfer code rather than at a clean validation check.

Step 4: case 2, exercise with a non-empty floorAssetTokenIds array

Bob passes a floorAssetTokenIds array whose length matches orders.floorTokens. The same check that requires an empty array for put orders now rejects the non-empty input, so the call reverts before any transfer.

Text
// case2
// PuttyV2.sol: exercise
// non empty floorAssetTokenIds array is passed for put option, it will revert

        !order.isCall
            ? require(floorAssetTokenIds.length == order.floorTokens.length, "Wrong amount of floor tokenIds")
            : require(floorAssetTokenIds.length == 0, "Invalid floor tokenIds length");

Line by line:

  • !order.isCall means "if this order is not a call" (in other words, it is a put). The ! flips true to false and false to true.
  • The ? and : form a conditional expression: if the condition is true, run the first branch; otherwise run the second.
  • First branch (put orders): require(floorAssetTokenIds.length == order.floorTokens.length, "Wrong amount of floor tokenIds") checks that the number of floor asset IDs the caller supplied matches the number of floor tokens on the order. If not, it reverts with the message Wrong amount of floor tokenIds.
  • Second branch (call orders): require(floorAssetTokenIds.length == 0, "Invalid floor tokenIds length") checks that the caller supplied no floor asset IDs at all. If they supplied any, it reverts with Invalid floor tokenIds length.

So for a call, the contract insists on an empty list. Bob tried to be helpful and supply a matching list, but the contract refuses. There is no input that works.

Why this step was taken: the researcher wanted to rule out the obvious workaround. If the empty list fails, maybe a matching list works? It does not, and the report shows exactly why.

Step 5: the maker tries to withdraw after expiry

After the option expires, babe tries to withdraw the locked assets. The withdraw path calls _transferFloorsOut with the stored floor tokens and the position's floor asset token IDs, and fails for the same reason as case 1.

Text
// maker trying to withdraw
// PuttyV2.sol: withdraw

  _transferFloorsOut(order.floorTokens, positionFloorAssetTokenIds[floorPositionId]);

Line by line:

  • The two comment lines say what is happening: the maker is trying to withdraw.
  • _transferFloorsOut(...) is the internal function that moves floor assets out of the contract back to the maker.
  • order.floorTokens is the list of floor tokens stored on the order. It is non-empty, because that is the whole problem.
  • positionFloorAssetTokenIds[floorPositionId] looks up the floor asset IDs recorded for this position. For this position, that list is empty, because the taker never successfully supplied any.
  • The same length mismatch as in case 1 occurs inside _transferFloorsOut, so the withdraw reverts.

Why this step was taken: the researcher wanted to show that the damage is not limited to the taker. Even after the option expires and the maker is entitled to take the collateral back, the contract still refuses.

Notes on the proof of concept

The test for case 1 is commented out because Foundry could not catch the revert. Running the test with those lines uncommented shows the call reverting with Index out of bounds. The withdraw test is commented out for the same reason. The reference case shows that everything works as intended when the order does not contain a non-empty floorTokens array.

In plain words: Foundry could not catch the revert, so the researcher left the failing lines commented out and noted that uncommenting them shows the revert. The reference case is a control: it proves the normal path works, so the failure is specific to the bad order shape.

Root cause

The root cause is that fillOrder does not ensure that order.floorTokens is empty when the order is a short call. The exercise path for calls requires floorAssetTokenIds.length == 0, while the withdraw path forwards the stored floor tokens into _transferFloorsOut. A short call that carries floor tokens therefore satisfies neither path: exercise fails on the length mismatch, and withdraw fails on the same mismatch. The existing length checks in exercise only validate the caller's input against the order, not whether a call order should have floor tokens at all.

A simple comparison: imagine a form that asks for a postal code, but the system also stores a list of previous addresses. One part of the system insists the list must be empty, while another part tries to read the first item from it. If the list has items, the first part refuses and the second part crashes. Neither part checks whether the list should have been there in the first place.

Impact

If a short call order is created with a non-empty floorTokens array, the taker cannot exercise and the maker cannot withdraw after expiration. If the non-empty array was included by accident, both parties lose: the taker loses the premium without any possible exercise, and the maker loses the locked ERC20s and ERC721s.

The report also records a griefing scenario raised during review. Maker A creates a long call and taker B fills it, transferring floor tokens (XYZ) into Putty. If maker C then creates a short call with floor tokens (XYZ), taker D can fill and exercise his long call because XYZ already resides on Putty. This invalidates the options pair between A and B, since A cannot exercise and B cannot withdraw. The judge noted that this scenario raises the severity because users can be griefed.

In plain words: the first scenario is an accident that hurts both sides. The second scenario is worse, because a short call reusing floor tokens already sitting in the contract lets someone else exercise against those tokens and leaves the original pair stuck.

The fix

The recommended mitigation is for fillOrder to ensure that order.floorTokens is empty when the order is a short call. The Putty Finance team resolved the issue with a pull request that prohibits non-empty order.floorTokens for short calls. A reviewer confirmed the fix and noted that other option types do need floorTokens: a long call's taker provides floor tokens on filling, a long put owner brings in the floor tokens on exercise and takes the strike, and a short put owner can retrieve the tokens on withdraw.

In plain words: the fix is to reject the bad order shape at the door. If a short call arrives with floor tokens attached, the contract refuses it, so the impossible position can never be created.

Variants to test

If you want to reproduce or extend this finding, here are the cases the report suggests checking:

  1. Create a short call with a non-empty floorTokens array and attempt to exercise with an empty floorAssetTokenIds array. A positive result is a revert such as Index out of bounds from the floor transfer.
  2. Create the same order and attempt to exercise with a floorAssetTokenIds array matching the length of floorTokens. A positive result is a revert on the call-side length check.
  3. Let the option expire and attempt to withdraw. A positive result is a revert in the floor transfer-out path.
  4. Repeat the griefing scenario: have one maker create a long call and a taker fill it with floor tokens, then have another maker create a short call with the same floor tokens and a taker fill and exercise it. A positive result is that the first pair can no longer be exercised or withdrawn.

Hunting notes

This kind of bug tends to hide where a single order structure is reused across option types with different expectations about optional arrays. During review, compare the validation in the fill path with the assumptions in the exercise and withdraw paths: if one path requires an array to be empty and another forwards it unconditionally, a mismatch is likely. The report demonstrated the direct loss for the two parties, and a warden's griefing scenario raised the severity because users can be griefed.

In plain words: when you audit a contract, look for places where the same data structure is used by several features that disagree about what is allowed. A check in one place and an unchecked assumption in another is a classic recipe for a stuck state.

Glossary

  • Array: an ordered list of items, which can be empty or contain one or more entries.
  • Blockchain: a shared, hard-to-change ledger kept by many computers.
  • Call option: the right to buy an asset at an agreed price.
  • Collateral: assets locked up to guarantee a deal.
  • ERC20: a standard for fungible tokens, where each unit is interchangeable.
  • ERC721: a standard for unique tokens, where each token has its own identity.
  • Exercise: the taker using the option to claim what the deal promised.
  • Floor tokens: extra assets attached to an order, needed by some option types but not by a short call.
  • Foundry: a toolchain for writing and running smart contract tests.
  • Griefing: deliberately causing harm to other users, often without personal gain.
  • Long: the side that holds the option and can exercise it.
  • Maker: the party that creates an order and locks collateral.
  • NFT: a non-fungible token, a unique digital token.
  • Option: a deal giving one side the right to do something later at an agreed price.
  • Premium: the fee the taker pays the maker for the deal.
  • Proof of concept (PoC): a small runnable demonstration that a bug is real.
  • Put option: the right to sell an asset at an agreed price.
  • Revert: a smart contract refusing to continue and undoing its changes in that call.
  • Short: the side that wrote the option and locked collateral to back it.
  • Smart contract: a program that runs on a blockchain.
  • Strike: the agreed price in an option deal.
  • Taker: the party that accepts (fills) an order and pays the premium.
  • Withdraw: the maker taking back collateral after the option expires.

More by zzzitron

View all

21 more disclosed reports, best first.

More from Putty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.