Prime (PRIME) Smart Contract Audit

 Project Background

Website Details

  • Echelon is a platform focused on advancing web3 gaming by integrating blockchain features. It provides a frictionless and compelling utility for the PRIME token, enhancing game experiences. The platform aims to enable games to leverage blockchain technology, with the “Parallel TCG” game as an example of its capabilities. Echelon invites developers to build and enhance their games using its infrastructure.

Website: echelon.io

Code Details

  • The `PrimeToken` smart contract continues to integrate various functionalities from OpenZeppelin, LayerZero’s OFT, and custom logic specific to the Echelon ecosystem. Below is an explanation of the contract and its key components, along with some clarifications and improvements where necessary.
  • Imports and Inheritance:
    • ReentrancyGuard: Protects against reentrant calls to functions.
    • OFT: Extends ERC20 functionality to support omnichain token transfers via LayerZero.
    • Context: Provides information about the current execution context (e.g., msg.sender and msg.data).
    • ERC2771Recipient: Allows the contract to accept meta-transactions.
    • EchelonGateways and IPrimeToken: Custom interfaces and contracts specific to the Echelon ecosystem.
  • setTrustedForwarder Function: Allows the contract owner to update the trusted forwarder address.
  • invokeEchelon Function: Enables users to send PRIME and native tokens to the Echelon ecosystem. It validates inputs, performs token transfers, and calls the handler’s custom logic.
  • addEchelonHandlerContract Function: Allows the owner to register new handler contracts, ensuring no existing gateways are overwritten.
  • Send Function: The Uses LayerZero’s OFT functionality to bridge tokens to another chain.
  • Meta-Transaction Support: Overrides `_msgSender` and `_msgData` to correctly handle meta-transactions.
  • The `PrimeToken` contract effectively integrates cross-chain token functionality with meta-transaction support and custom logic handling for the Echelon ecosystem. It ensures secure and efficient handling of token transfers and custom logic invocations, making it a versatile solution for decentralized applications.

Audit Summary

  • We observed 1 Informational issue in the smart contracts. but those are not critical.
  • The security state of the reviewed smart contract, based on standard audit procedure scope, is “Secured”.

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.

Audit Report in PDF


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 *

8 + 3 =