Skip to content

cypherpulse/Rebase-Token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

895 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rebase Token

Ethereum Solidity

Description

Rebase Token (RBT) is an ERC20-compliant smart contract built using OpenZeppelin, Solidity, and Foundry. It is designed for extensibility, security, and ease of integration into Ethereum-based DeFi protocols. The contract provides a robust foundation for projects requiring a standard ERC20 token, with the flexibility to add rebase or other advanced tokenomics features.

Table of Contents

Features

  • ERC20 standard compliance
  • Built with OpenZeppelin contracts
  • Designed for extensibility (e.g., rebase logic)
  • Secure and gas-efficient
  • Fully tested with Foundry

Architecture

The following diagram illustrates the high-level architecture of the Rebase Token contract:

classDiagram
	ERC20 <|-- RebaseToken
	class ERC20 {
		+balanceOf(address)
		+transfer(address, uint256)
		+approve(address, uint256)
		+transferFrom(address, address, uint256)
		+totalSupply()
	}
	class RebaseToken {
		+constructor(initialSupply)
		+_mint(address, uint256)
	}
Loading

Getting Started

Prerequisites

Installation

  1. Clone the repository:
    git clone <repo-url>
    cd Rebase-Token
  2. Install dependencies:
    forge install

Development

  • Main contract: src/RebaseToken.sol
  • Uses OpenZeppelin's ERC20 implementation
  • All contracts are written in Solidity ^0.8.20

Testing

Run the test suite using Foundry:

forge test

Test files are located in the test/ directory.

Contributing

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/your-feature)
  3. Commit your changes
  4. Push to the branch (git push origin feature/your-feature)
  5. Open a pull request

Please ensure your code follows the project's style and passes all tests.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Rebase Token (`RBT`) is an ERC20-compliant smart contract built using OpenZeppelin, Solidity, and Foundry. It is designed for extensibility, security, and ease of integration into Ethereum-based DeFi protocols.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors