The vault creation function used a token transfer library that does not verify the token address contains code, so a vault could be created for a non-existent token with a fake balance. An attacker could set traps for future tokens deployed at the same address on the same network, later withdrawing real tokens deposited by other users.
The createVault function in a smart contract did not check the return value of an ERC20 transfer, allowing a vault to be created without depositing tokens. An attacker could then buy and exercise options on that empty vault, receiving the buyer's payment while the buyer gets no tokens.
The Cally contract allowed creating a vault with itself as the token, so the vault's ownership was immediately transferred to the contract. This made the vault unusable and locked any ETH deposited by users who bought or exercised options.
The Cally contract records the full amount of an ERC20 token transferred into a vault, but fee-on-transfer tokens deliver less than that amount, so the contract's balance is lower than the sum of recorded vault amounts. An attacker can create a vault with the same fee token and withdraw the recorded amount, making the contract pay the transfer fee and potentially causing other users' withdrawals to fail.
The vault contract records the initial deposit amount and later transfers only that fixed amount, ignoring any growth from rebasing tokens. As a result, rewards that accrue to the vault cannot be withdrawn by either the option seller or the owner and remain locked forever.
The buyOption() function only checked that the ETH sent was at least the premium, so a user could accidentally send more than required. Any excess was transferred to the vault creator rather than refunded, leaking value from the buyer.
A vault's duration in days is stored as an 8-bit integer, and when multiplied by the number of seconds in a day, the result overflows if the duration is 195 days or more. This causes the option purchase to revert, making the vault unusable and locking the creator's funds until they withdraw.
The contract owner can change the fee rate at any time, including after vaults are created. By setting a very high fee rate, the owner can take almost all of the exercise payment that should go to the option seller.
The Dutch auction price calculation reaches the reserve strike before the full 24-hour duration, leaving the price constant for the remaining time. This reduces the effective auction period and can cause options to be filled at unfavourable prices for the vault creator.
The owner can set the fee rate to a value greater than 100%, causing the subtraction in the exercise function to underflow and revert. This prevents buyers from exercising their options, allowing the owner to collect premiums without risk.
The createVault function did not check that the amount was greater than zero, so a user could create unlimited zero-value vaults. This could clutter the front-end and let a user accidentally buy a call on a worthless vault.
The Cally contract used transferFrom instead of safeTransferFrom for ERC721 transfers, which bypasses the onERC721Received callback. This could cause NFTs with receiver logic to be stuck or mishandled when used as call options.
CC
Cally contest
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.