Several external functions that use 0x quotes are not marked payable, so they cannot accept the ETH protocol fee required by some quotes. This makes those functions incompatible with such quotes, potentially causing wasted gas or bad rates for users.
The refund of unspent protocol fees in ETH was calculated incorrectly, resulting in a zero refund to the sender. Instead, the refunded amount was included in the bought tokens sent to the receiver, meaning the sender lost the refund.
The _swapPTsForTarget function always attempts to redeem mature PTs even when redemption is restricted for the adapter, causing the function to fail. An attacker could not exploit this directly, but users would be unable to swap PTs for the target asset when redemption is restricted.
The sponsorSeries() function incorrectly transfers the stake token instead of the sell token when a user tries to swap another token for the stake token, causing the transaction to fail unless a permit is used. An attacker could not exploit this; it is a functional bug that prevents legitimate sponsorship.
The contract uses transfer to send ETH, which forwards a fixed 2300 gas stipend. If gas costs change, integrations with smart contracts could break because the recipient may not have enough gas to execute its fallback function.
Several periphery functions move the full specified amount of a sell token into the contract but do not guarantee the swap quote consumes all of it, so leftover tokens can remain stuck in the contract. An attacker or unlucky user could lose those excess funds instead of having them returned to the receiver.
The roll function in AutoRoller deposits a very small first amount and mints shares to the zero address, but the underlying ERC4626 deposit reverts when the previewed share amount rounds down to zero. An attacker could inflate the vault's space token balance so the share calculation truncates to zero, making roll revert and preventing a new sponsored series from starting.
The vault's share price can be manipulated by the first depositor making a large initial deposit, causing later depositors to receive very few shares for their assets. An attacker could exploit this to force future depositors to deposit huge amounts or receive an unfair share.
An AutoRoller calculates a future maturity date and tries to create a new series at that date, but the system only allows one series per adapter and maturity. An attacker can create a second AutoRoller on the same adapter that first creates the target maturity, causing the original AutoRoller to revert every time it tries to roll.
RollerUtils stored the Divider contract address as a hardcoded constant, and that address was the Goerli testnet one rather than the correct mainnet address. Because the wrong address makes the series lookup revert, the AutoRoller cooldown cycle could never complete, and for combineRestricted adapters liquidity providers could be left unable to withdraw their funds.
The AutoRoller contract's eject function transfers the entire target asset balance of the contract to the caller, which includes yield collected from all YTs in the pool, not just the caller's share. An attacker could call eject to steal the yield belonging to other users.
The contract calls ERC20 transfer without checking the return value, so tokens that return false instead of reverting can cause silent failures. This could leave tokens stuck in the contract after shares are burned.
The approve function on the RollerPeriphery contract was public and callable by anyone, so an attacker could call it with a zero amount and reset an existing allowance. This could block deposits and minting through the vault.