Coder Social home page Coder Social logo

pre-token-base's Introduction

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 initialization or utilize the native bridge functionality of its more convenient

pre-token-base's People

Contributors

vladimirklimo avatar

Watchers

Trey Grainger avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.