New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

boa-contracts

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boa-contracts

BOSAGORA Token and TokenSwap Contracts

latest
Source
npmnpm
Version
1.0.9
Version published
Maintainers
1
Created
Source

BOSAGORA Token and TokenSwap Contracts

This repository contains the smart contracts for the BOSAGORA (BOA) token and its token swap functionality.

Overview

The project consists of two main contracts:

  • BOSAGORA.sol: The main token contract implementing the BOSAGORA (BOA) token
  • TokenSwap.sol: A contract for swapping old tokens for new tokens with a burning mechanism

Features

BOSAGORA Token

  • Fixed maximum supply of 4.95 billion BOA tokens
  • 7 decimal places
  • MultiSig wallet ownership
  • Controlled minting functionality
  • Ownership transfer capability
  • ReentrancyGuard protection

TokenSwap Contract

  • 1:1 token swap ratio
  • Burning mechanism for old tokens
  • MultiSig wallet ownership
  • Pausable functionality
  • Token rescue capability
  • ReentrancyGuard protection
  • Decimals compatibility check

Security Features

  • ReentrancyGuard implementation to prevent reentrancy attacks
  • MultiSig wallet ownership for enhanced security
  • Pausable functionality for emergency situations
  • Safe token transfer and burning mechanisms
  • Clear error messages and rollback capabilities
  • Gas-optimized implementation

Technical Details

Dependencies

  • OpenZeppelin Contracts
  • MultiSig Wallet Contracts

Solidity Version

  • ^0.8.2

Key Components

  • ERC20 implementation
  • ReentrancyGuard
  • Pausable (TokenSwap)
  • MultiSig wallet integration

Development

Prerequisites

  • Node.js
  • npm or yarn
  • Hardhat

Installation

npm install
# or
yarn install

Testing

npx hardhat test

Compilation

npx hardhat compile

Contract Addresses

  • BOSAGORA Token: [Address to be added]
  • TokenSwap Contract: [Address to be added]

License

MIT License

Author

BOSAGORA Foundation

FAQs

Package last updated on 03 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts