Skip to content

Code4rena

Tally contest

Every publicly disclosed report for Tally contest and what kind of bugs they were.

disclosed reports
5
most reported class
Business logic
bug classes found
3
first disclosure
2021
Find Tally contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Tally contest chose to make public.

Smart contracts

Swap.sol implements potentially dangerous transfer

The Swap contract uses Solidity's transfer() to send Ether, which forwards only a fixed gas stipend. If the recipient is a contract with a fallback that needs more gas or lacks a payable fallback, the Ether transfer fails and funds may be stuck or undelivered.

Tally contest

Medium
Business logic

Users can avoid paying fees for ETH swaps

The swap function allowed users to avoid paying swap fees on ETH swaps by using a malicious contract as the buy token address, which tricked the system into treating the ETH output as a refund. An attacker could execute ETH swaps without paying the associated fees.

Tally contest

Medium
Business logic

Wrong calculation of erc20Delta and ethDelta

The contract incorrectly calculates the change in ETH and ERC20 token balances after a swap because the original balance already includes the user's input amount. This causes users to lose ETH refunds and suffer unexpected losses on arbitrage swaps between the same token.

Tally contest

High
Business logic

Unused ERC20 tokens are not refunded

The swap contract only refunds leftover ETH to the caller and never returns unused ERC20 sell tokens, so any tokens left after a swap stay stuck in the contract. An attacker or ordinary user could leave value stranded in the contract rather than receiving it back.

Tally contest

Medium