21 January 2022
Live since
KYC required
Maximum bounty

Program Overview

Tinyman is a decentralised exchange (DEX) on Algorand. More specifically, it is an Automated Market Maker (AMM) exchange employing the Constant Product Market Maker algorithm.

The exchange is fully decentralized and non-custodial. Funds are held in permissionless smart contract accounts. This means the only methods to withdraw funds from the pool accounts are those encoded in the smart contract. At a high level this code only allows withdrawals in exchange for an appropriate amount of another asset or by the liquidity owners in exchange for their Pool Tokens.

Furthermore the contracts are fully permissionless. This means that any account can create a pool by issuing the correct set of transactions. It means that no account has authority over the pool's assets or functionality. This also means there is no mechanism to revert or adjust transactions even if they are made in error.

The contracts are also fully immutable. This means no account has the authority to update or delete the contracts that control the pools. This means that funds cannot be stolen by an update to the contracts.

For more information about Tinyman, please visit https://tinyman.org/.

This bug bounty program is focused on their smart contracts and is focused on preventing:

  • Thefts and freezing of liquidity pools
  • Unauthorized and fraudulent calls to Tinyman v1.1 smart contracts

Rewards by Threat Level

Rewards are distributed according to the impact of the vulnerability based on the Immunefi Vulnerability Severity Classification System. This is a simplified 5-level scale, with separate scales for websites/apps and smart contracts/blockchains, encompassing everything from consequence of exploitation to privilege required to likelihood of a successful exploit.

No PoC is required, but all bug reports must be detailed with either step-by-step exploit instructions or pointers to specific lines of code in order to be considered for a reward. The Tinyman team may ask for further explanations for bug reports to prove validity.

Tinyman will also issue an NFT reward for valid High severity reports, and a single edition Tinyman NFT reward for valid Critical severity reports.

The following impacts are considered to be out of scope of this bug bounty program:

  • Issues due to Freeze or Clawback of pooled assets
  • Rounding issues when swapping/minting/burning with <1000 microunits of an asset
  • Overflow errors when attempting to swap/mint/burn very large amounts
  • Attacks against accounts not created from the Pool LogicSig Template
  • MEV style attacks
  • Pool ratio/price manipulation due to donations to the pool account

All known issues listed here are also considered as out-of-scope of the bug bounty program: https://github.com/tinymanorg/docs/tree/main/known-issues.

Payouts are handled by the Tinyman team directly and are denominated in USD. However, payouts are done in USDC or ALGO, at the discretion of the team.

Smart Contract

USD $100,000
USD $10,000
USD $5,000
USD $1,000

Assets in scope

This bug bounty program applies only for Tinyman v1.1 contracts which includes validator approval, validator clear state and pool logic sig (stateless) programs. The Pool accounts are LogicSignature Contract accounts. The unique LogicSignature contract for each is generated from pool_logicsig.teal.tmpl. It does not exist on-chain.

Prioritized Vulnerabilities

Only the following impacts are accepted within this bug bounty program. All other impacts are not considered as in-scope, even if they affect something in the assets in scope table.

Smart Contracts/Blockchain

  • Theft of pooled assets
  • Theft of Pool Tokens (LP tokens)
  • Theft of excess amounts
  • Theft of protocol fee Pool Tokens
  • Taking signer authority of pool accounts
  • Modification/deletion of Validator App
  • Making pool accounts pay unnecessary fees
  • Causing a pool account to become unable to process further operations
  • Bootstrapping a pool with incorrect Pool Token properties
  • Loss of funds due to flaws in implementation of calculations

Out of Scope & Rules

The following vulnerabilities are excluded from the rewards for this bug bounty program:

  • Attacks that the reporter has already exploited themselves, leading to damage
  • Attacks requiring access to leaked keys/credentials
  • Attacks requiring access to privileged addresses (governance, strategist)

Smart Contracts and Blockchain

  • Incorrect data supplied by third party oracles
    • Not to exclude oracle manipulation/flash loan attacks
  • Basic economic governance attacks (e.g. 51% attack)
  • Lack of liquidity
  • Best practice critiques
  • Sybil attacks
  • Centralization risks

The following activities are prohibited by this bug bounty program:

  • Any testing with mainnet or public testnet contracts; all testing should be done on private testnets
  • Any testing with pricing oracles or third party smart contracts
  • Attempting phishing or other social engineering attacks against our employees and/or customers
  • Any testing with third party systems and applications (e.g. browser extensions) as well as websites (e.g. SSO providers, advertising networks)
  • Any denial of service attacks
  • Automated testing of services that generates significant amounts of traffic
  • Public disclosure of an unpatched vulnerability in an embargoed bounty