Uniswap Token Smart Contract Audit

Project Background

  • This Solidity code defines a contract named `Uni`, which represents a token with functionalities like minting, transferring, approvals, and delegation. Let’s break down its key components:
    • SafeMath Library: This library contains arithmetic functions (`add`, `sub`, `mul`, `div`, `mod`) with overflow/underflow checks to prevent common vulnerabilities like integer overflow/underflow.
    • Uni Contract:
      • Token Metadata: It defines constants for the token’s name, symbol, and decimals.
      • Total Supply: The total token supply is set to 1 billion `UNI` tokens.
      • Minting: The contract allows minting new tokens by a designated `minter`. Minting is subject to certain conditions like a minimum time between mints, a minting cap, and a delay before minting starts.
      • Token Balances and Allowances: Balances and allowances are managed using mappings.
      • Delegation: The contract supports the delegation of voting power. Each address can delegate its voting power to another address.
      • Checkpoint Mechanism: It maintains a historical record of voting power for each address to support delegation.
      • Functions: Functions like `transfer`, `transferFrom`, `approve`, `permit`, `delegate`, and `getCurrentVotes` are provided for token transfers, approvals, and delegation.
    • Modifiers: 
      • require: Used throughout the contract to validate conditions, reverting the transaction if the condition is not met.
    • Events: Events are emitted to log important contract state changes like transfers, approvals, and delegation changes.
  • Overall, this contract provides a standard ERC-20 token functionality along with delegation and permit functionalities, implementing various safety measures to prevent common vulnerabilities.
  • The Uniswap Token smart contracts offer functions such as updating minter addresses and minting new tokens.

Website: uniswap.org

Executive Audit Summary

  • According to the standard audit assessment, the Customer`s solidity smart contracts are “Secured”.  Also, these contracts contain owner control, which does not make them fully decentralized.
  • We used various tools like Slither, Solhint and Remix IDE. At the same time this finding is based on critical analysis of the manual audit.
  • We found 0 critical, 0 high, 0 medium,  0 low and 4 very low-level issues.

Audit Report in PDF


Audit Report Flip book

Please wait while flipbook is loading. For more related info, FAQs and issues please refer to DearFlip WordPress Flipbook Plugin Help documentation.

Leave a Reply

Your email address will not be published. Required fields are marked *

13 − three =