Skip to content

PresearchOfficial/PRE-Token-Base

Repository files navigation

Presearch Token for Base/Optimism network

Presearch ERC-20 Token. Deployed on the Base Sepolia at
Token Address: 0xc0C034725e4eC6DDd23B8D4e6412094BcfB3F5D6

Presearch ERC-20 Token. Deployed on the Base Mainnet at
Token Address: 0x3816dD4bd44c8830c2FA020A5605bAC72FA3De7A

Overview

This is the source code for the PRE Token Base/Optimism, which powers the Presearch platform at https://presearch.com

The smart contract provides a secure and upgradeable token, which will ultimately enable fully decentralized governance over all utility of the token during phase III of the project. To learn more about Presearch, our plans, and the role of the PRE token, please see our Vision Paper: https://presearch.io/vision.pdf

Audit

The PRE Token Base smart contract was audited by MantisecLabs from March 28th - April 4th, 2024 (based on initial commit e3f8792 and revalidtion commit db3b0ce).

  • MantisecLabs checked all aspects related to the ERC20 standard compatibility and other known ERC20 pitfalls/vulnerabilities, and no issues were found in these areas.
  • MantisecLabs also examined other areas such as coding practices and business logic. 1 High priority finding were found in EIP3009.sol function CancelAuthorization, which was a typo during rewritting contract for solidity 0.8.24.
  • Overall, MantisecLabs reported also 3 Low priority findings related to gas optimizations of contract execution.

Presearch implemented fix for typo in CancelAuthorization (High priority finding) and all of the Low priority findings of MantisecLabs on April 3rd, 2024 (commit db3b0ce) prior to deploying the token smart contract on April 04th, 2024 to the Base Mainnet.

The final audit report reflecting the token deployment was completed on April 04th, 2024 and can be found in the audit folder: PRE Token Base Smart Contract Audit Report.

Setup

  1. run npm install hardhat -g
  2. run npm install
  3. run hardhat compile

Local Testing

  1. run hardhat compile --all
  2. run hardhat test

BTW contract itself does not mint any tokens by default so for testing of the contract features/functionality its good to mint some tokens during inicialization or utilize the native bridge functionality of its more convenient

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published